This repository was archived by the owner on Feb 4, 2022. It is now read-only.
File tree 2 files changed +15
-5
lines changed
Software/examples/AGT_iridiumSleep_Test
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -79,25 +79,35 @@ void IridiumSBD::configureSleepPin()
79
79
.eIntDir = 0x0 , // NO interrupts
80
80
.eGPRdZero = AM_HAL_GPIO_PIN_RDZERO_ZERO // when read read zero
81
81
};
82
+ delay (10 );
82
83
pin_config (PinName (this ->sleepPin ), PadDef); // Make the pin a tri-state output
83
- delay (1 );
84
+ delay (10 );
84
85
diagprint (F (" custom configureSleepPin: sleepPin configured\r\n " ));
86
+ delay (10 );
85
87
}
86
88
87
89
// Overwrite IridiumSBD::setSleepPin with a custom function
88
90
void IridiumSBD::setSleepPin (uint8_t enable)
89
91
{
92
+ delay (10 );
90
93
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
+
92
98
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 );
96
100
diagprint (F (" custom setSleepPin: sleepPin set " ));
97
101
if (enable == HIGH)
98
102
diagprint (F (" HIGH\r\n " ));
99
103
else
100
104
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 );
101
111
}
102
112
103
113
void gnssON (void ) // Enable power for the GNSS
You can’t perform that action at this time.
0 commit comments