Microprocessor 2 Labs v2.0
Microprocessor 2 Lab Documenation
Loading...
Searching...
No Matches
main.c File Reference
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "driver/led.h"
Include dependency graph for main.c:

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
 

Macro Definition Documentation

◆ DISABLE_ALARM_PIN

#define DISABLE_ALARM_PIN   0 /* Disable alarm pin */

◆ ESP_INTR_FLAG_DEFAULT

#define ESP_INTR_FLAG_DEFAULT   0 /* Interrupt flag configuration */

◆ ONBOARD_LED

#define ONBOARD_LED   2 /* Onboard led */

◆ SMOKE_DETECTOR_PIN

#define SMOKE_DETECTOR_PIN   0 /* Smoke detector pin */

Function Documentation

◆ app_main()

void app_main ( void )

◆ fire_alarm_interrupt_setup()

void fire_alarm_interrupt_setup ( fire_alarm_t *const alarm)

Set up fire alarm interrupt.

Parameters
alarmpointer to fire alarm object
Returns
None

Variable Documentation

◆ utep_alarm

fire_alarm_t utep_alarm