Use a macro for HAL header redirection (#10380)

This commit is contained in:
Chris Pepper
2018-04-13 02:25:08 +01:00
committed by Scott Lahteine
parent 12785583d0
commit cc6d41e1d3
51 changed files with 152 additions and 285 deletions

View File

@ -886,6 +886,6 @@
// Note: default SPI pins are defined in the HAL
#include "../HAL/HAL_spi_pins.h"
#include HAL_PATH(../HAL, spi_pins.h)
#endif // __PINS_H__

View File

@ -100,14 +100,13 @@ const PinInfo pin_array[] PROGMEM = {
};
#include "../HAL/HAL_pinsDebug.h" // get the correct support file for this CPU
#include HAL_PATH(../HAL, pinsDebug.h) // get the correct support file for this CPU
static void print_input_or_output(const bool isout) {
serialprintPGM(isout ? PSTR("Output = ") : PSTR("Input = "));
}
// pretty report with PWM info
inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = false, const char *start_string = "") {
char buffer[MAX_NAME_LENGTH + 1]; // for the sprintf statements