# HG changeset patch # User Ethan Zonca # Date 2024-01-15 14:16:47 # Node ID a02651c5dd9bc268fb4ab2d451d0ca2ddd587049 # Parent 17740c77dca191caf75b93357bb6f1635086f7dd Add missing includes and update readme diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # Protofusion ESP32S3 Template ## Configure +Set target with `idf.y set-target esp32s3` + Run menuconfig with `idf.py menuconfig` and choose the Protofusion menu option. -Set target with `idf.y set-target esp32s3` Rename the project by editing CMakeLists.txt and change `project(protofusion_template)` to reflect your project name @@ -11,7 +12,13 @@ Note that clean doesn't always clean eve ## Build and Flash -Build the project and flash it to the board, then run monitor tool to view serial output: +Build the project + +```bash +idf.py build +``` + +Flash to board and run monitor tool to view serial output: ```bash idf.py flash monitor diff --git a/main/can.c b/main/can.c --- a/main/can.c +++ b/main/can.c @@ -5,6 +5,9 @@ #include "can.h" #include "esp_log.h" #include "driver/twai.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "freertos/event_groups.h" // EMZ FIXME #define TX_GPIO_NUM 5 diff --git a/main/wifi.c b/main/wifi.c --- a/main/wifi.c +++ b/main/wifi.c @@ -9,7 +9,9 @@ #include "lwip/err.h" #include "lwip/sys.h" #include "display.h" - +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "freertos/event_groups.h" // Private variables