Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 135ec48

Browse files
committed
Update AGT_iridiumSleep_Test
1 parent 5543cee commit 135ec48

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

Software/examples/AGT_iridiumSleep_Test/AGT_iridiumSleep_Test.ino

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,25 +79,35 @@ void IridiumSBD::configureSleepPin()
7979
.eIntDir = 0x0, // NO interrupts
8080
.eGPRdZero = AM_HAL_GPIO_PIN_RDZERO_ZERO // when read read zero
8181
};
82+
delay(10);
8283
pin_config(PinName(this->sleepPin), PadDef); // Make the pin a tri-state output
83-
delay(1);
84+
delay(10);
8485
diagprint(F("custom configureSleepPin: sleepPin configured\r\n"));
86+
delay(10);
8587
}
8688

8789
// Overwrite IridiumSBD::setSleepPin with a custom function
8890
void IridiumSBD::setSleepPin(uint8_t enable)
8991
{
92+
delay(10);
9093
am_hal_gpio_state_write(PinName(this->sleepPin), AM_HAL_GPIO_OUTPUT_TRISTATE_DISABLE);
91-
delay(1);
94+
delay(10);
95+
diagprint(F("custom setSleepPin: sleepPin tristate_disable\r\n"));
96+
delay(10);
97+
9298
am_hal_gpio_state_write(PinName(this->sleepPin), enable == HIGH ? AM_HAL_GPIO_OUTPUT_SET : AM_HAL_GPIO_OUTPUT_CLEAR);
93-
delay(1);
94-
am_hal_gpio_state_write(PinName(this->sleepPin), AM_HAL_GPIO_OUTPUT_TRISTATE_ENABLE);
95-
delay(1);
99+
delay(10);
96100
diagprint(F("custom setSleepPin: sleepPin set "));
97101
if (enable == HIGH)
98102
diagprint(F("HIGH\r\n"));
99103
else
100104
diagprint(F("LOW\r\n"));
105+
delay(10);
106+
107+
am_hal_gpio_state_write(PinName(this->sleepPin), AM_HAL_GPIO_OUTPUT_TRISTATE_ENABLE);
108+
delay(10);
109+
diagprint(F("custom setSleepPin: sleepPin tristate_enable\r\n"));
110+
delay(10);
101111
}
102112

103113
void gnssON(void) // Enable power for the GNSS
Binary file not shown.

0 commit comments

Comments
 (0)