ReactESP 3.0.1
Asynchronous programming for the ESP microcontrollers
Loading...
Searching...
No Matches
main.cpp File Reference
#include <Arduino.h>
#include <ReactESP.h>
#include "esp_system.h"
#include "esp_pm.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define LED_PIN   2
 
#define OUT_PIN   18
 
#define INPUT_PIN1   12
 
#define INPUT_PIN2   13
 
#define NUM_TIMERS   20
 

Functions

void reporter ()
 
void setup_timers (EventLoop &event_loop)
 
void setup_io_pins (EventLoop *event_loop)
 
void setup_serial (EventLoop &event_loop)
 
void setup_tick (EventLoop &event_loop)
 
void execute_task (void *arg)
 
void setup ()
 
void loop ()
 

Variables

int tick_counter = 0
 
int timer_ticks [NUM_TIMERS]
 
EventLoop event_loop
 

Macro Definition Documentation

◆ INPUT_PIN1

#define INPUT_PIN1   12

Definition at line 10 of file main.cpp.

◆ INPUT_PIN2

#define INPUT_PIN2   13

Definition at line 11 of file main.cpp.

◆ LED_PIN

#define LED_PIN   2

Definition at line 8 of file main.cpp.

◆ NUM_TIMERS

#define NUM_TIMERS   20

Definition at line 14 of file main.cpp.

◆ OUT_PIN

#define OUT_PIN   18

Definition at line 9 of file main.cpp.

Function Documentation

◆ execute_task()

void execute_task ( void * arg)

Definition at line 109 of file main.cpp.

Here is the call graph for this function:

◆ loop()

void loop ( )

Definition at line 146 of file main.cpp.

Here is the call graph for this function:

◆ reporter()

void reporter ( )

Definition at line 21 of file main.cpp.

Here is the caller graph for this function:

◆ setup()

void setup ( )

Definition at line 124 of file main.cpp.

Here is the call graph for this function:

◆ setup_io_pins()

void setup_io_pins ( EventLoop * event_loop)

Definition at line 51 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_serial()

void setup_serial ( EventLoop & event_loop)

Definition at line 82 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_tick()

void setup_tick ( EventLoop & event_loop)

Definition at line 102 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_timers()

void setup_timers ( EventLoop & event_loop)

Definition at line 35 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ event_loop

EventLoop event_loop

Definition at line 19 of file main.cpp.

◆ tick_counter

int tick_counter = 0

Definition at line 16 of file main.cpp.

◆ timer_ticks

int timer_ticks[NUM_TIMERS]

Definition at line 17 of file main.cpp.