diff options
Diffstat (limited to 'include/heartbeat.hpp')
| -rw-r--r-- | include/heartbeat.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/heartbeat.hpp b/include/heartbeat.hpp new file mode 100644 index 0000000..f724c8f --- /dev/null +++ b/include/heartbeat.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "hardware/gpio.h" +#include <stdio.h> +#include "pico/time.h" + +#define HEART_RATE_HZ 5 + +void heartbeat_initialize(int gpio); + +#if (USE_FREERTOS == 1) +#include "FreeRTOS.h" +#include "FreeRTOSConfig.h" +#include "portmacro.h" +#include "projdefs.h" +#include "serial.hpp" +#include "task.h" +#include "semphr.h" + +void heartbeat_task( void *pvParameters ); +#endif |
