X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/19d56e392f87341e7abb26639e9b257aa78d4c92..c346d702533dcb7ed5f4554409cda7cf6867e6a6:/bmc/chassis.c diff --git a/bmc/chassis.c b/bmc/chassis.c index 1b6822e..29541f2 100644 --- a/bmc/chassis.c +++ b/bmc/chassis.c @@ -1,6 +1,8 @@ #include +#include #include +#include "config.h" #include "chassis.h" #ifdef __AVR_ATmega16__ @@ -20,70 +22,99 @@ #define _CDDR(port) __CDDR(port) #define CDDR _CDDR(CHASSISPORT) +static volatile int power_cnt = 0; +static volatile int reset_cnt = 0; +static volatile int power_cycle = 0; + static void chassis_set_pins(uint8_t pins, uint8_t state); void chassis_init() { chassis_set_pins((1<