esp32-warm-water
esp32 based project for the control of a heating element based on temperature
|
implementation for wrapper component which assists in setting up timers More...
#include "timer.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "esp_log.h"
#include "esp_sleep.h"
#include "sdkconfig.h"
Go to the source code of this file.
Functions | |
void | general_timer_init (esp_timer_handle_t timer, void(timer_callback)(void *arg), bool periodic, int period_in_millis, char *timer_name) |
void | general_timer_deinit (esp_timer_handle_t timer) |
implementation for wrapper component which assists in setting up timers
Definition in file timer.c.
void general_timer_deinit | ( | esp_timer_handle_t | timer | ) |
void general_timer_init | ( | esp_timer_handle_t | timer, |
void(timer_callback)(void *arg) | , | ||
bool | periodic, | ||
int | period_in_millis, | ||
char * | timer_name | ||
) |
set up a periodic or oneshot timer
timer | a locally defined timer passed through to this function |
timer_callback | a callback function with the params (void *arg) which is called when the alarm triggers |
periodic | a boolean checking whether the timer should be set up to be reset when it is triggered |
period_in_millis | the period between start and trigger |
timer_name | a name for the timer for the sake of debugging |
Definition at line 51 of file timer.c.