Skip to content

Commit 132ca72

Browse files
T1000-E: ensure rails off and radio idle before system off; fix button wake pin
1 parent 8462393 commit 132ca72

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

variants/t1000-e/T1000eBoard.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class T1000eBoard : public mesh::MainBoard {
5656
digitalWrite(GPS_RESET, LOW);
5757
digitalWrite(GPS_SLEEP_INT, LOW);
5858
digitalWrite(GPS_RTC_INT, LOW);
59+
digitalWrite(GPS_EN, LOW);
5960
pinMode(GPS_RESETB, OUTPUT);
6061
digitalWrite(GPS_RESETB, LOW);
6162
#endif
@@ -68,6 +69,13 @@ class T1000eBoard : public mesh::MainBoard {
6869
digitalWrite(PIN_3V3_EN, LOW);
6970
#endif
7071

72+
#ifdef PIN_3V3_ACC_EN
73+
digitalWrite(PIN_3V3_ACC_EN, LOW);
74+
#endif
75+
#ifdef SENSOR_EN
76+
digitalWrite(SENSOR_EN, LOW);
77+
#endif
78+
7179
// set led on and wait for button release before poweroff
7280
#ifdef LED_PIN
7381
digitalWrite(LED_PIN, HIGH);
@@ -80,7 +88,7 @@ class T1000eBoard : public mesh::MainBoard {
8088
#endif
8189

8290
#ifdef BUTTON_PIN
83-
nrf_gpio_cfg_sense_input(digitalPinToInterrupt(BUTTON_PIN), NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_HIGH);
91+
nrf_gpio_cfg_sense_input(BUTTON_PIN, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_HIGH);
8492
#endif
8593

8694
sd_power_system_off();

0 commit comments

Comments
 (0)