From 09a7bcdb40aff0ef406999935c027ec933ac8ca6 Mon Sep 17 00:00:00 2001 From: hhvrc Date: Tue, 12 Nov 2024 21:35:52 +0100 Subject: [PATCH] upload test --- platformio.ini | 100 ------------------------------------------------- src/main.cpp | 5 +++ 2 files changed, 5 insertions(+), 100 deletions(-) diff --git a/platformio.ini b/platformio.ini index 65f58785..36a3f507 100644 --- a/platformio.ini +++ b/platformio.ini @@ -47,102 +47,12 @@ check_skip_packages = true check_flags = cppcheck: --std=c++20 -j 8 --suppress=*:*/.pio/* --suppress=*:*/include/serialization/_fbs/* -; https://docs.platformio.org/en/stable/boards/espressif32/wemos_d1_mini32.html -[env:Wemos-D1-Mini-ESP32] -board = Wemos-D1-Mini-ESP32 -custom_openshock.chip = ESP32 -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_GPIO=2 - -DOPENSHOCK_RF_TX_GPIO=15 - -; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s2_mini.html -[env:Wemos-Lolin-S2-Mini] -board = Wemos-Lolin-S2-Mini ; override -custom_openshock.chip = ESP32-S2 -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_GPIO=15 - -; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s3.html -[env:Wemos-Lolin-S3] -board = Wemos-Lolin-S3 ; override -custom_openshock.chip = ESP32-S3 -custom_openshock.flash_size = 16MB -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_WS2812B=38 - -; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s3_mini.html -[env:Wemos-Lolin-S3-Mini] -board = lolin_s3_mini ; builtin -custom_openshock.chip = ESP32-S3 -custom_openshock.flash_size = 4MB -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_WS2812B=47 - -DOPENSHOCK_LED_FLIP_RG_CHANNELS=1 - -DARDUINO_USB_CDC_ON_BOOT=1 - -; https://www.waveshare.com/wiki/ESP32-S3-Zero -[env:Waveshare_esp32_s3_zero] -board = esp32-s3-devkitc-1 -custom_openshock.chip = ESP32-S3 -custom_openshock.flash_size = 4MB -build_flags = ${env.build_flags} - -DOPENSHOCK_RF_TX_GPIO=1 - -DOPENSHOCK_LED_WS2812B=21 - -DOPENSHOCK_LED_FLIP_RG_CHANNELS=1 - -DARDUINO_USB_CDC_ON_BOOT=1 - -[env:Pishock-2023] -board = Wemos-D1-Mini-ESP32 ; override -custom_openshock.chip = ESP32 -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_GPIO=2 - -DOPENSHOCK_RF_TX_GPIO=12 - -[env:Pishock-Lite-2021] -board = Wemos-D1-Mini-ESP32 ; override -custom_openshock.chip = ESP32 -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_GPIO=2 - -DOPENSHOCK_RF_TX_GPIO=15 - ; https://docs.platformio.org/en/latest//boards/espressif32/seeed_xiao_esp32c3.html [env:Seeed-Xiao-ESP32C3] board = seeed_xiao_esp32c3 ; builtin custom_openshock.chip = ESP32-C3 custom_openshock.flash_size = 4MB -; https://docs.platformio.org/en/latest//boards/espressif32/seeed_xiao_esp32s3.html -[env:Seeed-Xiao-ESP32S3] -board = seeed_xiao_esp32s3 ; builtin -custom_openshock.chip = ESP32-S3 -custom_openshock.flash_size = 8MB -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_GPIO=21 - -; https://docs.platformio.org/en/latest//boards/espressif32/dfrobot_firebeetle2_esp32e.html -[env:DFRobot-Firebeetle2-ESP32E] -board = dfrobot_firebeetle2_esp32e ; builtin -custom_openshock.chip = ESP32 -custom_openshock.flash_size = 4MB -build_flags = ${env.build_flags} - -DOPENSHOCK_RF_TX_GPIO=13 - -DOPENSHOCK_LED_WS2812B=5 - -DOPENSHOCK_LED_GPIO=2 - -; https://github.com/OpenShock/Hardware/tree/main/Core -; 8MB Flash, assume no PSRAM. -; Uses now-blacklisted pins for RF TX and Status LED. -[env:OpenShock-Core-V1] -board = esp32-s3-devkitc-1 ; builtin -custom_openshock.chip = ESP32-S3 -custom_openshock.flash_size = 8MB -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_WS2812B=48 - -DOPENSHOCK_LED_GPIO=35 - -DOPENSHOCK_RF_TX_GPIO=15 - -DOPENSHOCK_ESTOP_PIN=13 - -DARDUINO_USB_CDC_ON_BOOT=1 - ; https://github.com/OpenShock/Hardware/tree/main/Core%20v2 ; 8MB Flash, assume no PSRAM. [env:OpenShock-Core-V2] @@ -156,16 +66,6 @@ build_flags = ${env.build_flags} -DOPENSHOCK_ESTOP_PIN=38 -DARDUINO_USB_CDC_ON_BOOT=1 -; https://docs.platformio.org/en/stable/boards/espressif32/nodemcu-32s.html -[env:NodeMCU-32S] -board = nodemcu-32s -custom_openshock.chip = ESP32 -build_flags = ${env.build_flags} - -DOPENSHOCK_LED_GPIO=2 - -; TODO: -; https://docs.platformio.org/en/latest/boards/espressif32/upesy_wroom.html;upesy-esp32-wroom-devkit - [env:fs] custom_openshock.chip = ESP32 custom_openshock.flash_size = 4MB diff --git a/src/main.cpp b/src/main.cpp index aa187ee6..0bb8bc6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -128,3 +128,8 @@ void loop() // Kill the loop task (Arduino is stinky) vTaskDelete(nullptr); } + +static_assert(sizeof(int) == 4); +static_assert(sizeof(long) == 4); +static_assert(sizeof(long int) == 4); +static_assert(sizeof(long long) == 8);