diff --git a/.github/workflows/esp32_build.yaml b/.github/workflows/esp32_build.yaml index 2858e37..1a75b26 100644 --- a/.github/workflows/esp32_build.yaml +++ b/.github/workflows/esp32_build.yaml @@ -16,7 +16,8 @@ jobs: strategy: matrix: idf_ver: [release-v5.4, latest] - idf_target: [esp32, esp32s3, esp32c3] + idf_target: + [esp32, esp32c3, esp32c5, esp32c6, esp32h2, esp32p4, esp32s3] runs-on: ubuntu-latest diff --git a/components/remote_control/include/remote_control.h b/components/remote_control/include/remote_control.h index a6b5eb6..4ba66e4 100644 --- a/components/remote_control/include/remote_control.h +++ b/components/remote_control/include/remote_control.h @@ -1,3 +1,3 @@ #pragma once -void ble_init(void *args); +void ble_init(void); diff --git a/components/remote_control/remote_control.c b/components/remote_control/remote_control.c index 9542986..aa677dc 100644 --- a/components/remote_control/remote_control.c +++ b/components/remote_control/remote_control.c @@ -3,7 +3,6 @@ #include "esp_event.h" #include "esp_log.h" -#include "esp_nimble_hci.h" #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h" #include "freertos/task.h" @@ -171,7 +170,7 @@ void host_task(void *param) // is executed } -void ble_init(void *args) +void ble_init(void) { nimble_port_init(); ble_svc_gap_device_name_set("Miniature Town"); diff --git a/main/main.c b/main/main.c index cda6723..5715c09 100644 --- a/main/main.c +++ b/main/main.c @@ -1,13 +1,8 @@ -#include "led_matrix.h" #include "persistence.h" #include "remote_control.h" -#include "freertos/FreeRTOS.h" -#include "freertos/task.h" - void app_main(void) { persistence_init("miniature_town"); - - ble_init(NULL); + ble_init(); } diff --git a/sdkconfig.defaults.esp32c5 b/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000..ffc7b7f --- /dev/null +++ b/sdkconfig.defaults.esp32c5 @@ -0,0 +1,2 @@ +# default ESP target +CONFIG_IDF_TARGET="esp32c5" diff --git a/sdkconfig.defaults.esp32c6 b/sdkconfig.defaults.esp32c6 new file mode 100644 index 0000000..a7b537a --- /dev/null +++ b/sdkconfig.defaults.esp32c6 @@ -0,0 +1,2 @@ +# default ESP target +CONFIG_IDF_TARGET="esp32c6" diff --git a/sdkconfig.defaults.esp32h2 b/sdkconfig.defaults.esp32h2 new file mode 100644 index 0000000..04069a9 --- /dev/null +++ b/sdkconfig.defaults.esp32h2 @@ -0,0 +1,2 @@ +# default ESP target +CONFIG_IDF_TARGET="esp32h2" diff --git a/sdkconfig.defaults.esp32p4 b/sdkconfig.defaults.esp32p4 new file mode 100644 index 0000000..091f4b8 --- /dev/null +++ b/sdkconfig.defaults.esp32p4 @@ -0,0 +1,2 @@ +# default ESP target +CONFIG_IDF_TARGET="esp32p4"