SingingCat 0
application
powerup.h
1#ifndef POWERUP_H
2#define POWERUP_H
3
4#define POWERUP_COLDSTART 1
5#define POWERUP_CLI 2
6#define POWERUP_LOOP 3
7
8void powerup_init();
9void check_power_on_loop();
10void send_power_up(int reason); // send powerup message
11void send_power_up_now(int reason); // send powerup message now, no matter if we sent it before
12int powerup_status(); // status of powerup
13int powerup_delivered(); // return >0 if powerup was delivered
14#endif