]> www.average.org Git - pulsecounter.git/blobdiff - Hal/Hal.h
pass its id to the handler
[pulsecounter.git] / Hal / Hal.h
index 374daf5f9e37b56d745240b3d5b2a5e4e2bb098b..9af8ec811cc1745daca6aedcb13f449177cc4935 100644 (file)
--- a/Hal/Hal.h
+++ b/Hal/Hal.h
@@ -26,9 +26,7 @@
 extern "C" {
 #endif
 
-extern int32_t buttonCnt;
-
-typedef void (*Hal_Handler)(void);
+typedef void (*Hal_Handler)(uint8_t id);
 
 /**
  * --------- Hal_buttonEnable ---------
@@ -49,7 +47,7 @@ typedef void (*Hal_Handler)(void);
  *   BUTTON interrupt enabled
  *
  **/
-extern void Hal_buttonEnable(Hal_Handler handler);
+extern void Hal_buttonEnable(void (*handler)(void));
 /**
  * --------- Hal_connected ---------
  *