This commit is contained in:
parent
4340080cde
commit
aa6c1892b2
|
@ -34,13 +34,13 @@ void setHellen176LedPins() {
|
|||
|
||||
// this should be called before setHellenXXXLedPins()
|
||||
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
|
||||
static const brain_pin_e led1Pins[2] = {
|
||||
// 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
|
||||
GPIOG_0,
|
||||
H144_LED1_RED,
|
||||
};
|
||||
int padState[2];
|
||||
// check each mcu module type sequentially
|
||||
|
|
|
@ -15,6 +15,8 @@ void setHellen176LedPins();
|
|||
|
||||
void detectHellenBoardType();
|
||||
|
||||
#define H144_LED1_RED GPIOG_0
|
||||
#define H176_LED1_RED GPIOH_8
|
||||
|
||||
#define H144_LS_1 GPIOG_7
|
||||
#define H144_LS_2 GPIOG_8
|
||||
|
|
Loading…
Reference in New Issue