X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=msp430%2FPulsecounter-Prog.c;fp=msp430%2FPulsecounter-Prog.c;h=e9280d7e100cb78c84d1d65615286c535be8036c;hp=11c704b70f34c05eca71ac6ade732c7d2a8a7e4e;hb=4e9dda3367ff17c80358426a6b4126704741c0b1;hpb=edfc471b90c3057b75c03fc29a43fabfb20b8721 diff --git a/msp430/Pulsecounter-Prog.c b/msp430/Pulsecounter-Prog.c index 11c704b..e9280d7 100644 --- a/msp430/Pulsecounter-Prog.c +++ b/msp430/Pulsecounter-Prog.c @@ -2,7 +2,7 @@ #include "Hal.h" static void gpioHandler(uint8_t id); -static void tickHandler(void); +static void tickHandler(uint16_t clock); static int32_t cold = 0; static int32_t hot = 0; static bool connected = false; @@ -61,7 +61,7 @@ static void gpioHandler(uint8_t id) { } } -static void tickHandler(void) { +static void tickHandler(uint16_t clock) { uint8_t i; Hal_tickStop(); @@ -112,3 +112,11 @@ void Pulsecounter_coldTick_fetch(Pulsecounter_coldTick_t* const output) { void Pulsecounter_hotTick_fetch(Pulsecounter_hotTick_t* const output) { *output = hot; } + +void Pulsecounter_coldJitter_fetch(Pulsecounter_coldJitter_t* output) { + *output = Hal_gpioCount(1); +} + +void Pulsecounter_hotJitter_fetch(Pulsecounter_hotJitter_t* output) { + *output = Hal_gpioCount(2); +}