Implementation of the Pomodoro technique on the ESP-32 microcontroller.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
394 B
Raw

//#pragma once
#ifndef TIMER_SETUP_H
#define TIMER_SETUP_H
#include <stdint.h>
#include <FreeRTOS.h>
#include <freertos/semphr.h>
#include <esp32-hal-timer.h>
extern hw_timer_t * timer;
extern volatile SemaphoreHandle_t timerSemaphore;
extern portMUX_TYPE timerMux;
extern volatile uint32_t isrCounter;
extern volatile uint32_t lastIsrAt;
void IRAM_ATTR onTimer();
void setupTimer();
#endif