add more MCUs

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-05-29 15:56:13 +02:00
parent 26e47a8cf9
commit d8d85ac333
8 changed files with 13 additions and 10 deletions

View File

@@ -16,7 +16,8 @@ jobs:
strategy: strategy:
matrix: matrix:
idf_ver: [release-v5.4, latest] idf_ver: [release-v5.4, latest]
idf_target: [esp32, esp32s3, esp32c3] idf_target:
[esp32, esp32c3, esp32c5, esp32c6, esp32h2, esp32p4, esp32s3]
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
void ble_init(void *args); void ble_init(void);

View File

@@ -3,7 +3,6 @@
#include "esp_event.h" #include "esp_event.h"
#include "esp_log.h" #include "esp_log.h"
#include "esp_nimble_hci.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h" #include "freertos/event_groups.h"
#include "freertos/task.h" #include "freertos/task.h"
@@ -171,7 +170,7 @@ void host_task(void *param)
// is executed // is executed
} }
void ble_init(void *args) void ble_init(void)
{ {
nimble_port_init(); nimble_port_init();
ble_svc_gap_device_name_set("Miniature Town"); ble_svc_gap_device_name_set("Miniature Town");

View File

@@ -1,13 +1,8 @@
#include "led_matrix.h"
#include "persistence.h" #include "persistence.h"
#include "remote_control.h" #include "remote_control.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
void app_main(void) void app_main(void)
{ {
persistence_init("miniature_town"); persistence_init("miniature_town");
ble_init();
ble_init(NULL);
} }

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32c5"

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32c6"

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32h2"

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32p4"