This commit is contained in:
Bob-the-Kuhn
2018-01-01 16:11:56 -06:00
parent d80c4f1a6e
commit adb9ecf3cc
9 changed files with 224 additions and 16 deletions

View File

@@ -248,8 +248,12 @@ constexpr pin_t adc_pin_table[] = {
#endif
};
constexpr int16_t NUM_ANALOG_INPUTS = COUNT(adc_pin_table);
#if SERIAL_PORT != 0
#define NUM_ANALOG_INPUTS 8
#else
#define NUM_ANALOG_INPUTS 6
#endif
// P0.6 thru P0.9 are for the onboard SD card
// P0.29 and P0.30 are for the USB port
#define HAL_SENSITIVE_PINS P0_06, P0_07, P0_08, P0_09, P0_29, P0_30