Mbed support removed
Rationale: The support for both Zephyr and Mbed made the code confusing, especially because of many ifdefs. Zephyr RTOS is the future!
This commit is contained in:
+10
-104
@@ -10,18 +10,10 @@
|
||||
# Select the charge controller hardware by uncommenting one of the following lines
|
||||
default_envs =
|
||||
# mppt-2420-lc-v0.10
|
||||
# mppt-2420-lc-v0.10-zephyr
|
||||
# mppt-2420-hpx-v0.1-zephyr
|
||||
# mppt-1210-hus-v0.2
|
||||
# mppt-2420-hpx-v0.1
|
||||
# mppt-1210-hus-v0.4
|
||||
# mppt-1210-hus-v0.6
|
||||
# mppt-1210-hus-v0.7
|
||||
# mppt-1210-hus-v0.4-zephyr
|
||||
# mppt-1210-hus-v0.7-zephyr
|
||||
# pwm-2420-lus-v0.2
|
||||
# pwm-2420-lus-v0.3
|
||||
# pwm-2420-lus-v0.3-bl
|
||||
# pwm-2420-lus-v0.3-zephyr
|
||||
# unit-test-native
|
||||
|
||||
# Or create your own custom.ini file to overwrite settings in this file, e.g. for board selection.
|
||||
@@ -33,10 +25,10 @@ extra_configs =
|
||||
[env]
|
||||
|
||||
# select specific stm32 version, as automatic updates of mbed could break compatibility
|
||||
platform = ststm32@~5.3.0
|
||||
#platform = https://github.com/platformio/platform-ststm32.git
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
#platform = ststm32@~5.3.0
|
||||
|
||||
framework = mbed
|
||||
framework = zephyr
|
||||
|
||||
#upload_protocol = mbed
|
||||
upload_protocol = stlink
|
||||
@@ -44,10 +36,6 @@ upload_protocol = stlink
|
||||
|
||||
#debug_tool = jlink
|
||||
|
||||
# Custom upload tools (overwrites upload_protocol)
|
||||
#upload_command = st-flash write $SOURCE 0x8000000
|
||||
#upload_command = dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D $SOURCE
|
||||
|
||||
# Custom Serial Monitor baud rate
|
||||
monitor_speed = 115200
|
||||
|
||||
@@ -56,16 +44,13 @@ build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
-D TURN_OFF_MBED_DEPRECATED_WARNING
|
||||
-D DEBUG_PRINT_FLAGS=0x7
|
||||
-D MBED_BUILD_PROFILE_RELEASE
|
||||
# -D MBED_BUILD_PROFILE_DEBUG
|
||||
|
||||
build_unflags = -std=gnu++98 -std=gnu++14
|
||||
extra_scripts =
|
||||
pre:linker_flags_newlib-nano.py
|
||||
generate_version_file.py
|
||||
|
||||
lib_ignore = ESP32
|
||||
|
||||
check_tool = cppcheck, clangtidy
|
||||
check_flags =
|
||||
cppcheck: --enable=warning,style,performance,portability,information,missingInclude -j 7
|
||||
@@ -76,106 +61,28 @@ check_flags =
|
||||
|
||||
# https://github.com/LibreSolar/MPPT-2420-LC/tree/5bc39183c8
|
||||
[env:mppt-2420-lc-v0.10]
|
||||
board = nucleo_f072rb
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_MPPT_2420_LC_0V10
|
||||
|
||||
[env:mppt-2420-lc-v0.10-zephyr]
|
||||
board = mppt_2420_lc_0v10
|
||||
framework = zephyr
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
# https://github.com/LibreSolar/MPPT-1210-HUS/tree/586626f3d8
|
||||
[env:mppt-1210-hus-v0.2]
|
||||
board = nucleo_f072rb
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_MPPT_1210_HUS_0V2
|
||||
|
||||
# https://github.com/LibreSolar/MPPT-1210-HUS/tree/63e5842671
|
||||
[env:mppt-1210-hus-v0.4]
|
||||
board = nucleo_l073rz
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_MPPT_1210_HUS_0V4
|
||||
|
||||
# https://github.com/LibreSolar/mppt-1210-hus/releases/tag/v0.6
|
||||
[env:mppt-1210-hus-v0.6]
|
||||
board = nucleo_l073rz
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_MPPT_1210_HUS_0V7
|
||||
board = mppt_1210_hus_0v4
|
||||
|
||||
# https://github.com/LibreSolar/MPPT-1210-HUS
|
||||
[env:mppt-1210-hus-v0.7]
|
||||
board = nucleo_l073rz
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_MPPT_1210_HUS_0V7
|
||||
|
||||
[env:mppt-1210-hus-v0.4-zephyr]
|
||||
board = mppt_1210_hus_0v4
|
||||
framework = zephyr
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
[env:mppt-1210-hus-v0.7-zephyr]
|
||||
board = mppt_1210_hus_0v7
|
||||
framework = zephyr
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
[env:mppt-2420-hpx-v0.1-zephyr]
|
||||
[env:mppt-2420-hpx-v0.1]
|
||||
board = mppt_2420_hpx
|
||||
framework = zephyr
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
# https://github.com/LibreSolar/PWM-2420-LUS
|
||||
[env:pwm-2420-lus-v0.2]
|
||||
board = nucleo_l073rz
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_PWM_2420_LUS_0V2
|
||||
|
||||
[env:pwm-2420-lus-v0.3]
|
||||
board = nucleo_l073rz
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_PWM_2420_LUS_0V3
|
||||
|
||||
[env:pwm-2420-lus-v0.3-zephyr]
|
||||
board = pwm_2420_lus_0v3
|
||||
framework = zephyr
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
[env:pwm-2420-lus-v0.3-bl]
|
||||
board = nucleo_l073rz
|
||||
board = pwm_2420_lus_0v3
|
||||
build_flags = ${env.build_flags}
|
||||
-D CONFIG_BOARD_PWM_2420_LUS_0V3
|
||||
-D BOOTLOADER_ENABLED
|
||||
-Wl,-T'"$PROJECT_DIR\STM32L073XZ.ld.link_script.ld"',-v
|
||||
-Wl,-T'"$PROJECT_DIR/boards/STM32L073XZ.ld.link_script.ld"',-v
|
||||
|
||||
[env:unit-test-native]
|
||||
platform = native
|
||||
@@ -189,5 +96,4 @@ build_flags =
|
||||
-D DEBUG_PRINT_FLAGS=0xF
|
||||
# include src directory (otherwise unit-tests will only include lib directory)
|
||||
test_build_project_src = true
|
||||
lib_ignore = ESP32
|
||||
extra_scripts =
|
||||
|
||||
Reference in New Issue
Block a user