#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/uart.h"
#include "driver/gpio.h"
#include "driver/adc.h"
#include "sdkconfig.h"
#include <string.h>
#include "esp_log.h"
#include "inc/accelerometer.h"
#include "inc/pressure_sensor.h"
#include "inc/led.h"
#include "inc/servo.h"
#include "inc/button.h"
#include "inc/serial_communication.h"
#include "inc/elevator.h"
#include "inc/HAL_driver.h"
Functions | |
void | task1 (void *pvParameter) |
task1 will run the dispatcher that will send data to task 2 More... | |
void | task2 (void *pvParameter) |
task 2 will receive data from task 1 and update the elevator for the FSM to run More... | |
void | task3 (void *pvParameter) |
task 3 will run the FSM More... | |
void | elevatorButtonInterrupt (void *arg) |
elevatorButtonInterrupt interrupt routine that will update the elevator floor from the cart More... | |
void | task4 (void *pvParameter) |
task4 read all the sensors of the elevator More... | |
void | task5 (void *pvParameter) |
task5 debugging task will print data to UART 2 More... | |
void | app_main (void) |
Variables | |
Accelerometer | acc |
PressureSensor | pressSens |
Servo | SG90 |
SerialComm | externalSerial |
Led | floorLed [] |
Led | emergencyLed |
Led | arrow [] |
Button | elevatorButton [] |
SerialComm | dispatcher |
Button | emergencyButton |
Button | hc_sr501 |
Elevator | myElevator |
int | floorLedSize |
int | arrowSize |
int | elevatorButtonSize |
Button | dispatcherCallButton [] |
int | dispatcherCallButtonSize |
QueueHandle_t | myQueue |
QueueHandle_t | dispatcherQueue |
void app_main | ( | void | ) |
void elevatorButtonInterrupt | ( | void * | arg | ) |
elevatorButtonInterrupt interrupt routine that will update the elevator floor from the cart
arg | arguments pass to the task |
void task1 | ( | void * | pvParameter | ) |
task1 will run the dispatcher that will send data to task 2
pvParameter | arguments pass to the task |
void task2 | ( | void * | pvParameter | ) |
task 2 will receive data from task 1 and update the elevator for the FSM to run
pvParameter | arguments pass to the task |
void task3 | ( | void * | pvParameter | ) |
task 3 will run the FSM
pvParameter | arguments pass to the task |
void task4 | ( | void * | pvParameter | ) |
task4 read all the sensors of the elevator
pvParameter | arguments pass to the task |
void task5 | ( | void * | pvParameter | ) |
task5 debugging task will print data to UART 2
pvParameter | arguments pass to the task |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
QueueHandle_t dispatcherQueue |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
QueueHandle_t myQueue |
|
extern |
|
extern |