#include <stdio.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "driver/gpio.h"#include "driver/led.h"
Data Structures | |
| struct | fire_alarm_t |
| Fire alarm object. More... | |
Macros | |
| #define | ESP_INTR_FLAG_DEFAULT 0 /* Interrupt flag configuration */ |
| #define | ONBOARD_LED 2 /* Onboard led */ |
| #define | SMOKE_DETECTOR_PIN 0 /* Smoke detector pin */ |
| #define | DISABLE_ALARM_PIN 0 /* Disable alarm pin */ |
Functions | |
| void | fire_alarm_interrupt_setup (fire_alarm_t *const alarm) |
| Set up fire alarm interrupt. | |
| void | app_main (void) |
Variables | |
| fire_alarm_t | utep_alarm |
| #define DISABLE_ALARM_PIN 0 /* Disable alarm pin */ |
| #define ESP_INTR_FLAG_DEFAULT 0 /* Interrupt flag configuration */ |
| #define ONBOARD_LED 2 /* Onboard led */ |
| #define SMOKE_DETECTOR_PIN 0 /* Smoke detector pin */ |
| void app_main | ( | void | ) |
| void fire_alarm_interrupt_setup | ( | fire_alarm_t *const | alarm | ) |
Set up fire alarm interrupt.
| alarm | pointer to fire alarm object |
| fire_alarm_t utep_alarm |