rusefillc 2022-01-16 14:51:26 -05:00
parent 4340080cde
commit aa6c1892b2
2 changed files with 5 additions and 3 deletions

View File

@ -34,13 +34,13 @@ void setHellen176LedPins() {
// this should be called before setHellenXXXLedPins() // this should be called before setHellenXXXLedPins()
void detectHellenBoardType() { void detectHellenBoardType() {
// we test the LED1 pin because the red LED used has the smallest voltage drop, // we test the red LED1 pin because the red LED used has the smallest voltage drop,
// and thus can be detected more accurately // and thus can be detected more accurately
static const brain_pin_e led1Pins[2] = { static const brain_pin_e led1Pins[2] = {
// LED1 pin of the 176-pin mcu module (we check it first!) // LED1 pin of the 176-pin mcu module (we check it first!)
GPIOH_8, H176_LED1_RED,
// LED1 pin of the 144-pin mcu module // LED1 pin of the 144-pin mcu module
GPIOG_0, H144_LED1_RED,
}; };
int padState[2]; int padState[2];
// check each mcu module type sequentially // check each mcu module type sequentially

View File

@ -15,6 +15,8 @@ void setHellen176LedPins();
void detectHellenBoardType(); void detectHellenBoardType();
#define H144_LED1_RED GPIOG_0
#define H176_LED1_RED GPIOH_8
#define H144_LS_1 GPIOG_7 #define H144_LS_1 GPIOG_7
#define H144_LS_2 GPIOG_8 #define H144_LS_2 GPIOG_8