X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/93402c2ce5aadfca70133b3e6a43352b0e29cddc..989281f290d774ce78f71c8a420870987407a831:/bmc/chassis.c diff --git a/bmc/chassis.c b/bmc/chassis.c index ed24063..2259d86 100644 --- a/bmc/chassis.c +++ b/bmc/chassis.c @@ -2,6 +2,7 @@ #include #include +#include "config.h" #include "chassis.h" #ifdef __AVR_ATmega16__ @@ -23,6 +24,7 @@ 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); @@ -32,9 +34,9 @@ void chassis_init() CDDR |= ((1<