summaryrefslogtreecommitdiff
path: root/include/heartbeat.hpp
blob: f724c8f8d102591347ebd88628e0bd1feefa06ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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