From: Michael Gernoth Date: Mon, 23 Aug 2010 11:02:52 +0000 (+0200) Subject: use CTC unit to generate correct timings for power/reset X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/93402c2ce5aadfca70133b3e6a43352b0e29cddc use CTC unit to generate correct timings for power/reset --- diff --git a/bmc/chassis.c b/bmc/chassis.c index 1b6822e..ed24063 100644 --- a/bmc/chassis.c +++ b/bmc/chassis.c @@ -1,4 +1,5 @@ #include +#include #include #include "chassis.h" @@ -20,12 +21,22 @@ #define _CDDR(port) __CDDR(port) #define CDDR _CDDR(CHASSISPORT) +static volatile int power_cnt = 0; +static volatile int reset_cnt = 0; + static void chassis_set_pins(uint8_t pins, uint8_t state); void chassis_init() { chassis_set_pins((1<