powerreset 2.0.0.0
|
Power Reset Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
powerreset_state_t | pwr_state |
powerreset_state_t | rst_state |
powerreset_state_t | new_pwr_state |
powerreset_state_t | new_rst_state |
Power Reset Click example.
Reads PWR and RST pin states and performs a control of the timer counter depending on the pressed button.
The demo application is composed of two sections :
Initializes device and logger module, prints Initialization done message.
Checks the states of the PWR and RST pins and logs every change.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
powerreset_state_t new_pwr_state |
powerreset_state_t new_rst_state |
powerreset_state_t pwr_state |
powerreset_state_t rst_state |