From 20d1999949fbc1ec2085326626b6ecd4fff061ef Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Fri, 21 Oct 2022 14:41:49 +0200 Subject: [PATCH 01/36] Update version 2.7.0 for local dev --- README.md | 2 +- engine/core/src/luos_engine.c | 2 +- examples/apps/alarm_controller/library.json | 2 +- examples/apps/biometric-security/library.json | 2 +- examples/apps/start_controller/library.json | 2 +- .../projects/Arduino/bldc_simple_foc/lib/motor/library.json | 2 +- examples/projects/Arduino/bldc_simple_foc/platformio.ini | 2 +- examples/projects/Arduino/button/lib/button/library.json | 2 +- examples/projects/Arduino/button/platformio.ini | 2 +- .../projects/Arduino/fingerprint/lib/Fingerprint/library.json | 2 +- examples/projects/Arduino/fingerprint/platformio.ini | 2 +- examples/projects/Arduino/gate_serialcom/platformio.ini | 2 +- examples/projects/Arduino/inspector_serialcom/platformio.ini | 2 +- examples/projects/Arduino/lcd/lib/Lcd/library.json | 2 +- examples/projects/Arduino/lcd/platformio.ini | 2 +- examples/projects/Arduino/led/lib/led/library.json | 2 +- examples/projects/Arduino/led/platformio.ini | 2 +- .../projects/Arduino/servo_motor/lib/Servo_motor/library.json | 2 +- examples/projects/Arduino/servo_motor/platformio.ini | 2 +- .../Arduino/stepper_simple_foc/lib/motor/library.json | 2 +- examples/projects/Arduino/stepper_simple_foc/platformio.ini | 2 +- examples/projects/ESP32/button/lib/button/library.json | 2 +- examples/projects/ESP32/button/platformio.ini | 2 +- .../projects/ESP32/button_arduino/lib/button/library.json | 2 +- examples/projects/ESP32/button_arduino/platformio.ini | 2 +- examples/projects/ESP32/gate_serialcom_arduino/platformio.ini | 2 +- examples/projects/ESP32/led/lib/led/library.json | 2 +- examples/projects/ESP32/led/platformio.ini | 2 +- .../NUCLEO-F072RB/barometer/lib/barometer/library.json | 2 +- examples/projects/NUCLEO-F072RB/barometer/platformio.ini | 2 +- examples/projects/NUCLEO-F072RB/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-F072RB/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-F072RB/button/platformio.ini | 2 +- .../projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-F072RB/dc_motor/platformio.ini | 2 +- examples/projects/NUCLEO-F072RB/gate_serialcom/platformio.ini | 2 +- .../projects/NUCLEO-F072RB/inspector_serialcom/platformio.ini | 2 +- .../potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-F072RB/potentiometer/platformio.ini | 2 +- examples/projects/NUCLEO-F401RE/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-F401RE/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-F401RE/button/platformio.ini | 2 +- .../projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-F401RE/dc_motor/platformio.ini | 2 +- examples/projects/NUCLEO-F401RE/gate_serialcom/platformio.ini | 2 +- .../projects/NUCLEO-F401RE/inspector_serialcom/platformio.ini | 2 +- examples/projects/NUCLEO-F401RE/led/lib/Led/library.json | 2 +- .../projects/NUCLEO-F401RE/led/lib/alias_save/library.json | 2 +- examples/projects/NUCLEO-F401RE/led/platformio.ini | 2 +- .../potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-F401RE/potentiometer/platformio.ini | 2 +- examples/projects/NUCLEO-F410RB/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-F410RB/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-F410RB/button/platformio.ini | 2 +- .../projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-F410RB/dc_motor/platformio.ini | 2 +- examples/projects/NUCLEO-F410RB/gate_serialcom/platformio.ini | 2 +- .../projects/NUCLEO-F410RB/inspector_serialcom/platformio.ini | 2 +- examples/projects/NUCLEO-F410RB/led/lib/Led/library.json | 2 +- examples/projects/NUCLEO-F410RB/led/platformio.ini | 2 +- .../potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-F410RB/potentiometer/platformio.ini | 2 +- examples/projects/NUCLEO-G431KB/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-G431KB/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-G431KB/button/platformio.ini | 2 +- .../projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-G431KB/dc_motor/platformio.ini | 2 +- examples/projects/NUCLEO-G431KB/gate_serialcom/platformio.ini | 2 +- .../projects/NUCLEO-G431KB/inspector_serialcom/platformio.ini | 2 +- .../potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-G431KB/potentiometer/platformio.ini | 2 +- examples/projects/NUCLEO-G474RE/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-G474RE/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-G474RE/button/platformio.ini | 2 +- examples/projects/NUCLEO-G474RE/gate_serialcom/platformio.ini | 2 +- .../projects/NUCLEO-G474RE/inspector_serialcom/platformio.ini | 2 +- examples/projects/NUCLEO-L073RZ/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-L073RZ/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-L073RZ/button/platformio.ini | 2 +- examples/projects/NUCLEO-L073RZ/gate_serialcom/platformio.ini | 2 +- examples/projects/NUCLEO-L432KC/bootloader/platformio.ini | 2 +- .../projects/NUCLEO-L432KC/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-L432KC/button/platformio.ini | 2 +- .../projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-L432KC/dc_motor/platformio.ini | 2 +- .../NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json | 2 +- examples/projects/NUCLEO-L432KC/fingerprint/platformio.ini | 2 +- examples/projects/NUCLEO-L432KC/gate_serialcom/platformio.ini | 2 +- .../projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json | 2 +- examples/projects/NUCLEO-L432KC/gpio/platformio.ini | 2 +- .../projects/NUCLEO-L432KC/inspector_serialcom/platformio.ini | 2 +- examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json | 2 +- examples/projects/NUCLEO-L432KC/lcd/platformio.ini | 2 +- examples/projects/NUCLEO-L432KC/led/lib/Led/library.json | 2 +- examples/projects/NUCLEO-L432KC/led/platformio.ini | 2 +- .../potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-L432KC/potentiometer/platformio.ini | 2 +- examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json | 2 +- examples/projects/NUCLEO-L432KC/servo/platformio.ini | 2 +- .../projects/SAMD21XPLAINED/button/lib/button/library.json | 2 +- examples/projects/SAMD21XPLAINED/button/platformio.ini | 2 +- examples/projects/STM32F4-discovery/bootloader/platformio.ini | 2 +- .../projects/STM32F4-discovery/button/lib/Button/library.json | 2 +- examples/projects/STM32F4-discovery/button/platformio.ini | 4 ++-- .../projects/STM32F4-discovery/gate_serialcom/platformio.ini | 4 ++-- .../STM32F4-discovery/inspector_serialcom/platformio.ini | 4 ++-- .../projects/STM32L4S5_discovery/bootloader/platformio.ini | 2 +- .../STM32L4S5_discovery/button/lib/Button/library.json | 2 +- examples/projects/STM32L4S5_discovery/button/platformio.ini | 2 +- .../STM32L4S5_discovery/gate_serialcom/platformio.ini | 2 +- .../l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json | 2 +- .../projects/l0/bike_alarm/alarm_controller/platformio.ini | 2 +- .../l0/bike_alarm/start_controller/lib/Button/library.json | 2 +- .../projects/l0/bike_alarm/start_controller/platformio.ini | 2 +- examples/projects/l0/bootloader/platformio.ini | 2 +- examples/projects/l0/button/lib/Button/library.json | 2 +- examples/projects/l0/button/platformio.ini | 2 +- examples/projects/l0/button_freertos/lib/Button/library.json | 2 +- examples/projects/l0/button_freertos/lib/Led/library.json | 2 +- examples/projects/l0/button_freertos/platformio.ini | 2 +- .../l0/controller_motor/lib/Controller_motor/library.json | 2 +- examples/projects/l0/controller_motor/platformio.ini | 2 +- examples/projects/l0/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/l0/dc_motor/platformio.ini | 2 +- .../projects/l0/demo/detection_button/lib/Button/library.json | 2 +- .../demo/detection_button/lib/Detection_Button/library.json | 2 +- examples/projects/l0/demo/detection_button/platformio.ini | 2 +- .../demo/ledstrip_position/lib/LedStrip_Position/library.json | 2 +- examples/projects/l0/demo/ledstrip_position/platformio.ini | 2 +- .../l0/demo/motor_copy_app/lib/motor_copy/library.json | 2 +- examples/projects/l0/demo/motor_copy_app/platformio.ini | 2 +- .../l0/demo/motor_demo_app/lib/run_motor/library.json | 2 +- examples/projects/l0/demo/motor_demo_app/platformio.ini | 2 +- examples/projects/l0/distance/lib/Distance/library.json | 2 +- examples/projects/l0/distance/platformio.ini | 2 +- examples/projects/l0/dxl/lib/Dxl/library.json | 2 +- examples/projects/l0/dxl/platformio.ini | 2 +- examples/projects/l0/fingerprint/lib/Fingerprint/library.json | 2 +- examples/projects/l0/fingerprint/platformio.ini | 2 +- examples/projects/l0/gate_serialcom/platformio.ini | 2 +- examples/projects/l0/gpio/lib/Gpio_dev/library.json | 2 +- examples/projects/l0/gpio/platformio.ini | 2 +- examples/projects/l0/imu/lib/Imu/library.json | 2 +- examples/projects/l0/imu/platformio.ini | 2 +- examples/projects/l0/inspector_serialcom/platformio.ini | 2 +- examples/projects/l0/lcd/lib/Lcd/library.json | 2 +- examples/projects/l0/lcd/platformio.ini | 2 +- examples/projects/l0/led/lib/Led/library.json | 2 +- examples/projects/l0/led/platformio.ini | 2 +- examples/projects/l0/led_fader/lib/Led_Fader/library.json | 2 +- examples/projects/l0/led_fader/platformio.ini | 2 +- examples/projects/l0/led_strip/lib/Led_strip/library.json | 2 +- examples/projects/l0/led_strip/platformio.ini | 2 +- .../projects/l0/light_sensor/lib/Light_sensor/library.json | 2 +- examples/projects/l0/light_sensor/platformio.ini | 2 +- examples/projects/l0/load/lib/Load/library.json | 2 +- examples/projects/l0/load/platformio.ini | 2 +- .../projects/l0/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/l0/potentiometer/platformio.ini | 2 +- .../projects/l0/power_switch/lib/Power_switch/library.json | 2 +- examples/projects/l0/power_switch/platformio.ini | 2 +- examples/projects/l0/servo/lib/Servo/library.json | 2 +- examples/projects/l0/servo/platformio.ini | 2 +- examples/projects/l0/stepper/lib/Stepper/library.json | 2 +- examples/projects/l0/stepper/platformio.ini | 2 +- library.json | 2 +- tool_services/gate/library.json | 4 ++-- tool_services/inspector/library.json | 4 ++-- tool_services/pipe/library.json | 4 ++-- 169 files changed, 175 insertions(+), 175 deletions(-) diff --git a/README.md b/README.md index 080a5f445..c72ef291f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) [![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) -Version: 2.6.4 +Version: 2.7.0 # Luos Technology ## The most for the developer​ diff --git a/engine/core/src/luos_engine.c b/engine/core/src/luos_engine.c index 0927c2484..b3a0bf0a1 100644 --- a/engine/core/src/luos_engine.c +++ b/engine/core/src/luos_engine.c @@ -27,7 +27,7 @@ typedef enum /******************************************************************************* * Variables ******************************************************************************/ -revision_t luos_version = {.major = 2, .minor = 6, .build = 4}; +revision_t luos_version = {.major = 2, .minor = 7, .build = 0}; package_t package_table[MAX_SERVICE_NUMBER]; uint16_t package_number = 0; service_t service_table[MAX_SERVICE_NUMBER]; diff --git a/examples/apps/alarm_controller/library.json b/examples/apps/alarm_controller/library.json index d6d240963..ff861194c 100644 --- a/examples/apps/alarm_controller/library.json +++ b/examples/apps/alarm_controller/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/apps/biometric-security/library.json b/examples/apps/biometric-security/library.json index ffdcdb770..8d3c9b014 100644 --- a/examples/apps/biometric-security/library.json +++ b/examples/apps/biometric-security/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/apps/start_controller/library.json b/examples/apps/start_controller/library.json index ecfee708a..471bbff58 100644 --- a/examples/apps/start_controller/library.json +++ b/examples/apps/start_controller/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json b/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json index 780011f2e..16c57e576 100644 --- a/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json +++ b/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json @@ -11,6 +11,6 @@ "build": {}, "dependencies": { "askuric/Simple FOC": "^2.2.1", - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/Arduino/bldc_simple_foc/platformio.ini b/examples/projects/Arduino/bldc_simple_foc/platformio.ini index 1f1c86089..6b41477ca 100644 --- a/examples/projects/Arduino/bldc_simple_foc/platformio.ini +++ b/examples/projects/Arduino/bldc_simple_foc/platformio.ini @@ -21,6 +21,6 @@ build_flags = -include node_config.h -DLUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 SimpleFOC_Motor askuric/Simple FOC@^2.2.1 diff --git a/examples/projects/Arduino/button/lib/button/library.json b/examples/projects/Arduino/button/lib/button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/Arduino/button/lib/button/library.json +++ b/examples/projects/Arduino/button/lib/button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/Arduino/button/platformio.ini b/examples/projects/Arduino/button/platformio.ini index 9f8618f12..4eea54bfb 100644 --- a/examples/projects/Arduino/button/platformio.ini +++ b/examples/projects/Arduino/button/platformio.ini @@ -34,7 +34,7 @@ build_flags = -include node_config.h -D LUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button diff --git a/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json b/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json index 4c8b777e7..b094c1e5a 100644 --- a/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json +++ b/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json @@ -5,7 +5,7 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4", + "luos_engine": "^2.7.0", "adafruit/Adafruit Fingerprint Sensor Library": "*" } } \ No newline at end of file diff --git a/examples/projects/Arduino/fingerprint/platformio.ini b/examples/projects/Arduino/fingerprint/platformio.ini index 0f3f1aef0..0847a5a9f 100644 --- a/examples/projects/Arduino/fingerprint/platformio.ini +++ b/examples/projects/Arduino/fingerprint/platformio.ini @@ -21,6 +21,6 @@ build_flags = -include node_config.h -D LUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Fingerprint adafruit/Adafruit Fingerprint Sensor Library diff --git a/examples/projects/Arduino/gate_serialcom/platformio.ini b/examples/projects/Arduino/gate_serialcom/platformio.ini index 00ca67690..46b8126b7 100644 --- a/examples/projects/Arduino/gate_serialcom/platformio.ini +++ b/examples/projects/Arduino/gate_serialcom/platformio.ini @@ -39,7 +39,7 @@ build_flags = -D PIPEMODE=SERIAL -D PIPEHAL=ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe diff --git a/examples/projects/Arduino/inspector_serialcom/platformio.ini b/examples/projects/Arduino/inspector_serialcom/platformio.ini index f33d1e274..f1989e125 100644 --- a/examples/projects/Arduino/inspector_serialcom/platformio.ini +++ b/examples/projects/Arduino/inspector_serialcom/platformio.ini @@ -40,7 +40,7 @@ build_flags = -D PIPEMODE=SERIAL -D PIPEHAL=ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe diff --git a/examples/projects/Arduino/lcd/lib/Lcd/library.json b/examples/projects/Arduino/lcd/lib/Lcd/library.json index 5406ded56..ae7651dc2 100644 --- a/examples/projects/Arduino/lcd/lib/Lcd/library.json +++ b/examples/projects/Arduino/lcd/lib/Lcd/library.json @@ -5,7 +5,7 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4", + "luos_engine": "^2.7.0", "arduino-libraries/LiquidCrystal": "*" } } \ No newline at end of file diff --git a/examples/projects/Arduino/lcd/platformio.ini b/examples/projects/Arduino/lcd/platformio.ini index 9d5015846..fa1af82fb 100644 --- a/examples/projects/Arduino/lcd/platformio.ini +++ b/examples/projects/Arduino/lcd/platformio.ini @@ -21,6 +21,6 @@ build_flags = -include node_config.h -D LUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Lcd arduino-libraries/LiquidCrystal diff --git a/examples/projects/Arduino/led/lib/led/library.json b/examples/projects/Arduino/led/lib/led/library.json index 8c56f46e8..0a4473d60 100644 --- a/examples/projects/Arduino/led/lib/led/library.json +++ b/examples/projects/Arduino/led/lib/led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/Arduino/led/platformio.ini b/examples/projects/Arduino/led/platformio.ini index de184956e..811af7c4a 100644 --- a/examples/projects/Arduino/led/platformio.ini +++ b/examples/projects/Arduino/led/platformio.ini @@ -34,7 +34,7 @@ build_flags = -include node_config.h -D LUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led diff --git a/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json b/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json index ca542403e..bcb0f1472 100644 --- a/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json +++ b/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json @@ -6,6 +6,6 @@ "licence": "MIT", "dependencies": { "arduino-libraries/servo": "^1.1.8", - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/Arduino/servo_motor/platformio.ini b/examples/projects/Arduino/servo_motor/platformio.ini index 79d15c405..5583bee6e 100644 --- a/examples/projects/Arduino/servo_motor/platformio.ini +++ b/examples/projects/Arduino/servo_motor/platformio.ini @@ -34,7 +34,7 @@ build_flags = -include node_config.h -D LUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 arduino-libraries/Servo@^1.1.8 servo_motor diff --git a/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json b/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json index fd269b05b..aabd11c50 100644 --- a/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json +++ b/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json @@ -11,7 +11,7 @@ "build": {}, "dependencies": { "askuric/Simple FOC": "^2.2.1", - "luos/luos_engine": "^2.6.4", + "luos_engine": "^2.7.0", "Wire": "*", "SPI": "*" } diff --git a/examples/projects/Arduino/stepper_simple_foc/platformio.ini b/examples/projects/Arduino/stepper_simple_foc/platformio.ini index a8321d503..1c64b168f 100644 --- a/examples/projects/Arduino/stepper_simple_foc/platformio.ini +++ b/examples/projects/Arduino/stepper_simple_foc/platformio.ini @@ -21,6 +21,6 @@ build_flags = -include node_config.h -D LUOSHAL=ATSAMD21_ARDUINO lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 SimpleFOC_Stepper askuric/Simple FOC@^2.2.1 diff --git a/examples/projects/ESP32/button/lib/button/library.json b/examples/projects/ESP32/button/lib/button/library.json index f5833307d..8b98a7ff8 100644 --- a/examples/projects/ESP32/button/lib/button/library.json +++ b/examples/projects/ESP32/button/lib/button/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/ESP32/button/platformio.ini b/examples/projects/ESP32/button/platformio.ini index 9f3a94888..049e3897d 100644 --- a/examples/projects/ESP32/button/platformio.ini +++ b/examples/projects/ESP32/button/platformio.ini @@ -22,7 +22,7 @@ build_flags = -DLUOSHAL=ESP32 -O1 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 button [env:esp32dev] diff --git a/examples/projects/ESP32/button_arduino/lib/button/library.json b/examples/projects/ESP32/button_arduino/lib/button/library.json index f5833307d..8b98a7ff8 100644 --- a/examples/projects/ESP32/button_arduino/lib/button/library.json +++ b/examples/projects/ESP32/button_arduino/lib/button/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/ESP32/button_arduino/platformio.ini b/examples/projects/ESP32/button_arduino/platformio.ini index 9410657e6..c2a7f9012 100644 --- a/examples/projects/ESP32/button_arduino/platformio.ini +++ b/examples/projects/ESP32/button_arduino/platformio.ini @@ -22,7 +22,7 @@ build_flags = -DLUOSHAL=ESP32 -O1 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 button [env:esp32dev] diff --git a/examples/projects/ESP32/gate_serialcom_arduino/platformio.ini b/examples/projects/ESP32/gate_serialcom_arduino/platformio.ini index 580132620..f1a5bfc83 100644 --- a/examples/projects/ESP32/gate_serialcom_arduino/platformio.ini +++ b/examples/projects/ESP32/gate_serialcom_arduino/platformio.ini @@ -27,7 +27,7 @@ build_flags = -DPIPEHAL=ARDUINO -O1 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe diff --git a/examples/projects/ESP32/led/lib/led/library.json b/examples/projects/ESP32/led/lib/led/library.json index a3211d7e7..fbfb620e8 100644 --- a/examples/projects/ESP32/led/lib/led/library.json +++ b/examples/projects/ESP32/led/lib/led/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/ESP32/led/platformio.ini b/examples/projects/ESP32/led/platformio.ini index b48b0fa76..77e5d4ff6 100644 --- a/examples/projects/ESP32/led/platformio.ini +++ b/examples/projects/ESP32/led/platformio.ini @@ -22,7 +22,7 @@ build_flags = -DLUOSHAL=ESP32 -O1 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 led [env:esp32dev] diff --git a/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json b/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json index ff1c7b0be..4089d4f8f 100644 --- a/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json +++ b/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/barometer/platformio.ini b/examples/projects/NUCLEO-F072RB/barometer/platformio.ini index 2b5aff6b7..ea22f6d78 100644 --- a/examples/projects/NUCLEO-F072RB/barometer/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/barometer/platformio.ini @@ -24,7 +24,7 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32F0 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 barometer lib_extra_dirs = diff --git a/examples/projects/NUCLEO-F072RB/bootloader/platformio.ini b/examples/projects/NUCLEO-F072RB/bootloader/platformio.ini index c85d2eddd..476243430 100644 --- a/examples/projects/NUCLEO-F072RB/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/bootloader/platformio.ini @@ -24,6 +24,6 @@ build_flags = -O1 debug_build_flags = -O0 -g -ggdb lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json b/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/button/platformio.ini b/examples/projects/NUCLEO-F072RB/button/platformio.ini index 9a0d899f3..b5b8c08e5 100644 --- a/examples/projects/NUCLEO-F072RB/button/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/button/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_f072rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json index c28b1a337..531e67778 100644 --- a/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/dc_motor/platformio.ini b/examples/projects/NUCLEO-F072RB/dc_motor/platformio.ini index 9e3f60d6e..946427c7d 100644 --- a/examples/projects/NUCLEO-F072RB/dc_motor/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/dc_motor/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_f072rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 DC_motor debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F072RB/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-F072RB/gate_serialcom/platformio.ini index 8de855f91..2ed2227f3 100644 --- a/examples/projects/NUCLEO-F072RB/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/gate_serialcom/platformio.ini @@ -20,7 +20,7 @@ platform = ststm32 board = nucleo_f072rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Pipe Gate debug_tool = stlink diff --git a/examples/projects/NUCLEO-F072RB/inspector_serialcom/platformio.ini b/examples/projects/NUCLEO-F072RB/inspector_serialcom/platformio.ini index cce75bff4..86e2e8836 100644 --- a/examples/projects/NUCLEO-F072RB/inspector_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/inspector_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = nucleo_f072rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json index 15e33c04c..36035b515 100644 --- a/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/potentiometer/platformio.ini b/examples/projects/NUCLEO-F072RB/potentiometer/platformio.ini index 36b20e23f..26f2ec48d 100644 --- a/examples/projects/NUCLEO-F072RB/potentiometer/platformio.ini +++ b/examples/projects/NUCLEO-F072RB/potentiometer/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_f072rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Potentiometer debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F401RE/bootloader/platformio.ini b/examples/projects/NUCLEO-F401RE/bootloader/platformio.ini index 78a78b239..1e3ec6c8e 100644 --- a/examples/projects/NUCLEO-F401RE/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/bootloader/platformio.ini @@ -24,6 +24,6 @@ build_flags = -DLUOSHAL=STM32F4 debug_build_flags = -O0 -g -ggdb lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json b/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/button/platformio.ini b/examples/projects/NUCLEO-F401RE/button/platformio.ini index 0ba8a4387..3ab9d1df5 100644 --- a/examples/projects/NUCLEO-F401RE/button/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/button/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink diff --git a/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json index c28b1a337..531e67778 100644 --- a/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/dc_motor/platformio.ini b/examples/projects/NUCLEO-F401RE/dc_motor/platformio.ini index aa13e4a57..550a1203f 100644 --- a/examples/projects/NUCLEO-F401RE/dc_motor/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/dc_motor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 DC_motor debug_tool = stlink diff --git a/examples/projects/NUCLEO-F401RE/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-F401RE/gate_serialcom/platformio.ini index e07a5470a..2bbedfdc9 100644 --- a/examples/projects/NUCLEO-F401RE/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-F401RE/inspector_serialcom/platformio.ini b/examples/projects/NUCLEO-F401RE/inspector_serialcom/platformio.ini index dd4a249be..19a38a4bd 100644 --- a/examples/projects/NUCLEO-F401RE/inspector_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/inspector_serialcom/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json b/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json index 4e0d24383..42c94e845 100644 --- a/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json +++ b/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4", + "luos_engine": "^2.7.0", "alias_save": "^1.0.0" }, "licence": "MIT" diff --git a/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json b/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json index a6e16f5bf..c0abdfc9c 100644 --- a/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json +++ b/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/led/platformio.ini b/examples/projects/NUCLEO-F401RE/led/platformio.ini index c338351be..89aa7b34d 100644 --- a/examples/projects/NUCLEO-F401RE/led/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/led/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json index 15e33c04c..36035b515 100644 --- a/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/potentiometer/platformio.ini b/examples/projects/NUCLEO-F401RE/potentiometer/platformio.ini index 456f70cda..a662dd406 100644 --- a/examples/projects/NUCLEO-F401RE/potentiometer/platformio.ini +++ b/examples/projects/NUCLEO-F401RE/potentiometer/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Potentiometer debug_tool = stlink diff --git a/examples/projects/NUCLEO-F410RB/bootloader/platformio.ini b/examples/projects/NUCLEO-F410RB/bootloader/platformio.ini index 888e48aaa..a5b1efb45 100644 --- a/examples/projects/NUCLEO-F410RB/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/bootloader/platformio.ini @@ -24,7 +24,7 @@ build_flags = -DLUOSHAL=STM32F4 debug_build_flags = -O0 -g -ggdb lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json b/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/button/platformio.ini b/examples/projects/NUCLEO-F410RB/button/platformio.ini index c5aa7ed15..dd4a07fbf 100644 --- a/examples/projects/NUCLEO-F410RB/button/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/button/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f410rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json index c28b1a337..531e67778 100644 --- a/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/dc_motor/platformio.ini b/examples/projects/NUCLEO-F410RB/dc_motor/platformio.ini index aa13e4a57..550a1203f 100644 --- a/examples/projects/NUCLEO-F410RB/dc_motor/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/dc_motor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 DC_motor debug_tool = stlink diff --git a/examples/projects/NUCLEO-F410RB/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-F410RB/gate_serialcom/platformio.ini index 6bfaee308..f170a0789 100644 --- a/examples/projects/NUCLEO-F410RB/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = nucleo_f410rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-F410RB/inspector_serialcom/platformio.ini b/examples/projects/NUCLEO-F410RB/inspector_serialcom/platformio.ini index 00dbdeb75..7bbd85cf7 100644 --- a/examples/projects/NUCLEO-F410RB/inspector_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/inspector_serialcom/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_f410rb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json b/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json index aa77ffcd3..0c25aec8f 100644 --- a/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json +++ b/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/led/platformio.ini b/examples/projects/NUCLEO-F410RB/led/platformio.ini index 09b0ca1f7..487105206 100644 --- a/examples/projects/NUCLEO-F410RB/led/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/led/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json index 15e33c04c..36035b515 100644 --- a/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/potentiometer/platformio.ini b/examples/projects/NUCLEO-F410RB/potentiometer/platformio.ini index 456f70cda..a662dd406 100644 --- a/examples/projects/NUCLEO-F410RB/potentiometer/platformio.ini +++ b/examples/projects/NUCLEO-F410RB/potentiometer/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_f401re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Potentiometer debug_tool = stlink diff --git a/examples/projects/NUCLEO-G431KB/bootloader/platformio.ini b/examples/projects/NUCLEO-G431KB/bootloader/platformio.ini index b83cec20b..d45022bd1 100644 --- a/examples/projects/NUCLEO-G431KB/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-G431KB/bootloader/platformio.ini @@ -23,6 +23,6 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32G4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json b/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G431KB/button/platformio.ini b/examples/projects/NUCLEO-G431KB/button/platformio.ini index e6d645ac3..9494ddcd5 100644 --- a/examples/projects/NUCLEO-G431KB/button/platformio.ini +++ b/examples/projects/NUCLEO-G431KB/button/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_g431kb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json index c28b1a337..531e67778 100644 --- a/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G431KB/dc_motor/platformio.ini b/examples/projects/NUCLEO-G431KB/dc_motor/platformio.ini index f8ac3cda1..cdb07c1ee 100644 --- a/examples/projects/NUCLEO-G431KB/dc_motor/platformio.ini +++ b/examples/projects/NUCLEO-G431KB/dc_motor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_g431kb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 DC_motor debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-G431KB/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-G431KB/gate_serialcom/platformio.ini index b8760f05d..edad0be74 100644 --- a/examples/projects/NUCLEO-G431KB/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-G431KB/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = nucleo_g431kb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-G431KB/inspector_serialcom/platformio.ini b/examples/projects/NUCLEO-G431KB/inspector_serialcom/platformio.ini index 80438ca6c..6515b196b 100644 --- a/examples/projects/NUCLEO-G431KB/inspector_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-G431KB/inspector_serialcom/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_g431kb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json index 15e33c04c..36035b515 100644 --- a/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G431KB/potentiometer/platformio.ini b/examples/projects/NUCLEO-G431KB/potentiometer/platformio.ini index f1e5fa6f0..389f31765 100644 --- a/examples/projects/NUCLEO-G431KB/potentiometer/platformio.ini +++ b/examples/projects/NUCLEO-G431KB/potentiometer/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_g431kb framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Potentiometer debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-G474RE/bootloader/platformio.ini b/examples/projects/NUCLEO-G474RE/bootloader/platformio.ini index a279807da..b420ac2fb 100644 --- a/examples/projects/NUCLEO-G474RE/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-G474RE/bootloader/platformio.ini @@ -23,6 +23,6 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32G4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json b/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json index d5b22312b..0c15ef172 100644 --- a/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G474RE/button/platformio.ini b/examples/projects/NUCLEO-G474RE/button/platformio.ini index e69d876bf..9d6639aec 100644 --- a/examples/projects/NUCLEO-G474RE/button/platformio.ini +++ b/examples/projects/NUCLEO-G474RE/button/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_g474re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-G474RE/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-G474RE/gate_serialcom/platformio.ini index 8a9d62610..631d25cd2 100644 --- a/examples/projects/NUCLEO-G474RE/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-G474RE/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = nucleo_g474re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-G474RE/inspector_serialcom/platformio.ini b/examples/projects/NUCLEO-G474RE/inspector_serialcom/platformio.ini index 6f70158f1..2ec967391 100644 --- a/examples/projects/NUCLEO-G474RE/inspector_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-G474RE/inspector_serialcom/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_g474re framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L073RZ/bootloader/platformio.ini b/examples/projects/NUCLEO-L073RZ/bootloader/platformio.ini index baa148095..1b8a8e80f 100644 --- a/examples/projects/NUCLEO-L073RZ/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-L073RZ/bootloader/platformio.ini @@ -23,7 +23,7 @@ build_flags = -DLUOSHAL=STM32L0 -DBOOTLOADER lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json b/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L073RZ/button/platformio.ini b/examples/projects/NUCLEO-L073RZ/button/platformio.ini index 2dcee9143..acbaccb8f 100644 --- a/examples/projects/NUCLEO-L073RZ/button/platformio.ini +++ b/examples/projects/NUCLEO-L073RZ/button/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_l073rz framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L073RZ/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-L073RZ/gate_serialcom/platformio.ini index ea095519f..fb9c81870 100644 --- a/examples/projects/NUCLEO-L073RZ/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-L073RZ/gate_serialcom/platformio.ini @@ -20,7 +20,7 @@ platform = ststm32 board = nucleo_l073rz framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Pipe Gate debug_tool = stlink diff --git a/examples/projects/NUCLEO-L432KC/bootloader/platformio.ini b/examples/projects/NUCLEO-L432KC/bootloader/platformio.ini index 15586a11a..f11f9b1e9 100644 --- a/examples/projects/NUCLEO-L432KC/bootloader/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/bootloader/platformio.ini @@ -23,7 +23,7 @@ build_flags = -DLUOSHAL=STM32L4 -DBOOTLOADER lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json b/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/button/platformio.ini b/examples/projects/NUCLEO-L432KC/button/platformio.ini index c4c535457..8338f4e3a 100644 --- a/examples/projects/NUCLEO-L432KC/button/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/button/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json index c28b1a337..531e67778 100644 --- a/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/dc_motor/platformio.ini b/examples/projects/NUCLEO-L432KC/dc_motor/platformio.ini index eeefef0e0..403e28f70 100644 --- a/examples/projects/NUCLEO-L432KC/dc_motor/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/dc_motor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 DC_motor debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json b/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json index 9d60bd07f..a51f1b41d 100644 --- a/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json +++ b/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json @@ -5,6 +5,6 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/fingerprint/platformio.ini b/examples/projects/NUCLEO-L432KC/fingerprint/platformio.ini index 4fb11b0fe..5fa686388 100644 --- a/examples/projects/NUCLEO-L432KC/fingerprint/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/fingerprint/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Fingerprint debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/gate_serialcom/platformio.ini b/examples/projects/NUCLEO-L432KC/gate_serialcom/platformio.ini index d2f10c08c..4c010ad0e 100644 --- a/examples/projects/NUCLEO-L432KC/gate_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json b/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json index d6ce02ba4..0fceaa9af 100644 --- a/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json +++ b/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/gpio/platformio.ini b/examples/projects/NUCLEO-L432KC/gpio/platformio.ini index 5ee8781a9..51075e6c0 100644 --- a/examples/projects/NUCLEO-L432KC/gpio/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/gpio/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gpio_dev debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/inspector_serialcom/platformio.ini b/examples/projects/NUCLEO-L432KC/inspector_serialcom/platformio.ini index 8da374ebc..e5bfa765b 100644 --- a/examples/projects/NUCLEO-L432KC/inspector_serialcom/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/inspector_serialcom/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe debug_tool = stlink diff --git a/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json b/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json index 15bb32ee2..bc9fbf8ea 100644 --- a/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json +++ b/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json @@ -5,6 +5,6 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/lcd/platformio.ini b/examples/projects/NUCLEO-L432KC/lcd/platformio.ini index 3b13865ab..bda6804f2 100644 --- a/examples/projects/NUCLEO-L432KC/lcd/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/lcd/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Lcd debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json b/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json index aa77ffcd3..0c25aec8f 100644 --- a/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json +++ b/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/led/platformio.ini b/examples/projects/NUCLEO-L432KC/led/platformio.ini index 2664615d0..2cd9c24f4 100644 --- a/examples/projects/NUCLEO-L432KC/led/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/led/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json index 15e33c04c..36035b515 100644 --- a/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/potentiometer/platformio.ini b/examples/projects/NUCLEO-L432KC/potentiometer/platformio.ini index 187a1b63c..145a6b58d 100644 --- a/examples/projects/NUCLEO-L432KC/potentiometer/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/potentiometer/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Potentiometer debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json b/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json index 98c95ce50..b32a7b455 100644 --- a/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json +++ b/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json @@ -5,6 +5,6 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/servo/platformio.ini b/examples/projects/NUCLEO-L432KC/servo/platformio.ini index cee624a84..c2eb037de 100644 --- a/examples/projects/NUCLEO-L432KC/servo/platformio.ini +++ b/examples/projects/NUCLEO-L432KC/servo/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = nucleo_l432kc framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Servo debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/SAMD21XPLAINED/button/lib/button/library.json b/examples/projects/SAMD21XPLAINED/button/lib/button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/SAMD21XPLAINED/button/lib/button/library.json +++ b/examples/projects/SAMD21XPLAINED/button/lib/button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/SAMD21XPLAINED/button/platformio.ini b/examples/projects/SAMD21XPLAINED/button/platformio.ini index 922948751..e6757aa49 100644 --- a/examples/projects/SAMD21XPLAINED/button/platformio.ini +++ b/examples/projects/SAMD21XPLAINED/button/platformio.ini @@ -22,5 +22,5 @@ build_flags = -DLUOSHAL=ATSAMD21_MBED -D__SAMD21J18A__ lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button diff --git a/examples/projects/STM32F4-discovery/bootloader/platformio.ini b/examples/projects/STM32F4-discovery/bootloader/platformio.ini index 6f34d9e8c..2a9189ee6 100644 --- a/examples/projects/STM32F4-discovery/bootloader/platformio.ini +++ b/examples/projects/STM32F4-discovery/bootloader/platformio.ini @@ -25,5 +25,5 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32F4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink diff --git a/examples/projects/STM32F4-discovery/button/lib/Button/library.json b/examples/projects/STM32F4-discovery/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/STM32F4-discovery/button/lib/Button/library.json +++ b/examples/projects/STM32F4-discovery/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/STM32F4-discovery/button/platformio.ini b/examples/projects/STM32F4-discovery/button/platformio.ini index 46f7714da..7ef4f6071 100644 --- a/examples/projects/STM32F4-discovery/button/platformio.ini +++ b/examples/projects/STM32F4-discovery/button/platformio.ini @@ -24,7 +24,7 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32F4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink @@ -44,7 +44,7 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32F4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button upload_protocol = custom upload_flags = diff --git a/examples/projects/STM32F4-discovery/gate_serialcom/platformio.ini b/examples/projects/STM32F4-discovery/gate_serialcom/platformio.ini index 1658cc521..0ca0c4e7d 100644 --- a/examples/projects/STM32F4-discovery/gate_serialcom/platformio.ini +++ b/examples/projects/STM32F4-discovery/gate_serialcom/platformio.ini @@ -29,7 +29,7 @@ lib_extra_dirs = $PROJECT_DIR/../../../../tool_services/ $PROJECT_DIR/../../../../../ lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink @@ -55,7 +55,7 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32F4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe upload_protocol = custom diff --git a/examples/projects/STM32F4-discovery/inspector_serialcom/platformio.ini b/examples/projects/STM32F4-discovery/inspector_serialcom/platformio.ini index 205d945fc..a14adbbeb 100644 --- a/examples/projects/STM32F4-discovery/inspector_serialcom/platformio.ini +++ b/examples/projects/STM32F4-discovery/inspector_serialcom/platformio.ini @@ -28,7 +28,7 @@ build_flags = lib_extra_dirs = $PROJECT_DIR/../../../../../ lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe debug_tool = stlink @@ -53,7 +53,7 @@ build_flags = -DUSE_FULL_LL_DRIVER -DLUOSHAL=STM32F4 lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Inspector Pipe upload_protocol = custom diff --git a/examples/projects/STM32L4S5_discovery/bootloader/platformio.ini b/examples/projects/STM32L4S5_discovery/bootloader/platformio.ini index 35da7bffc..8ca9a38e4 100644 --- a/examples/projects/STM32L4S5_discovery/bootloader/platformio.ini +++ b/examples/projects/STM32L4S5_discovery/bootloader/platformio.ini @@ -23,7 +23,7 @@ build_flags = -DLUOSHAL=STM32L4 -DBOOTLOADER lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json b/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json +++ b/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/STM32L4S5_discovery/button/platformio.ini b/examples/projects/STM32L4S5_discovery/button/platformio.ini index 9dfbf772c..e60681320 100644 --- a/examples/projects/STM32L4S5_discovery/button/platformio.ini +++ b/examples/projects/STM32L4S5_discovery/button/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = disco_l4s5i_iot01a framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink upload_protocol = stlink diff --git a/examples/projects/STM32L4S5_discovery/gate_serialcom/platformio.ini b/examples/projects/STM32L4S5_discovery/gate_serialcom/platformio.ini index 3bbbd047d..4d7d20980 100644 --- a/examples/projects/STM32L4S5_discovery/gate_serialcom/platformio.ini +++ b/examples/projects/STM32L4S5_discovery/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = disco_l4s5i_iot01a framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gate Pipe debug_tool = stlink diff --git a/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json b/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json index 955ebedd1..1ce11d8e1 100644 --- a/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json +++ b/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/bike_alarm/alarm_controller/platformio.ini b/examples/projects/l0/bike_alarm/alarm_controller/platformio.ini index e47fac109..0995f0fb7 100644 --- a/examples/projects/l0/bike_alarm/alarm_controller/platformio.ini +++ b/examples/projects/l0/bike_alarm/alarm_controller/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 alarm_controller Led_Fader debug_tool = stlink diff --git a/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json b/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json +++ b/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/bike_alarm/start_controller/platformio.ini b/examples/projects/l0/bike_alarm/start_controller/platformio.ini index 7ab29037d..304ad6809 100644 --- a/examples/projects/l0/bike_alarm/start_controller/platformio.ini +++ b/examples/projects/l0/bike_alarm/start_controller/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button start_controller debug_tool = stlink diff --git a/examples/projects/l0/bootloader/platformio.ini b/examples/projects/l0/bootloader/platformio.ini index 230494ef6..c61cf3265 100644 --- a/examples/projects/l0/bootloader/platformio.ini +++ b/examples/projects/l0/bootloader/platformio.ini @@ -21,5 +21,5 @@ build_flags = -O1 debug_build_flags = -O0 -g -ggdb lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 debug_tool = stlink diff --git a/examples/projects/l0/button/lib/Button/library.json b/examples/projects/l0/button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/l0/button/lib/Button/library.json +++ b/examples/projects/l0/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/button/platformio.ini b/examples/projects/l0/button/platformio.ini index 778e921f1..da4feb5f6 100644 --- a/examples/projects/l0/button/platformio.ini +++ b/examples/projects/l0/button/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button debug_tool = stlink diff --git a/examples/projects/l0/button_freertos/lib/Button/library.json b/examples/projects/l0/button_freertos/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/l0/button_freertos/lib/Button/library.json +++ b/examples/projects/l0/button_freertos/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/button_freertos/lib/Led/library.json b/examples/projects/l0/button_freertos/lib/Led/library.json index 12ddc448a..f585a58ab 100644 --- a/examples/projects/l0/button_freertos/lib/Led/library.json +++ b/examples/projects/l0/button_freertos/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/button_freertos/platformio.ini b/examples/projects/l0/button_freertos/platformio.ini index d1e19088a..01e0cd191 100644 --- a/examples/projects/l0/button_freertos/platformio.ini +++ b/examples/projects/l0/button_freertos/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Button CMSIS_RTOS_V2 bojit/PlatformIO-FreeRTOS diff --git a/examples/projects/l0/controller_motor/lib/Controller_motor/library.json b/examples/projects/l0/controller_motor/lib/Controller_motor/library.json index 4ec6fdb8b..0d22e2eb9 100644 --- a/examples/projects/l0/controller_motor/lib/Controller_motor/library.json +++ b/examples/projects/l0/controller_motor/lib/Controller_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/controller_motor/platformio.ini b/examples/projects/l0/controller_motor/platformio.ini index f7c2a353a..b4794ee99 100644 --- a/examples/projects/l0/controller_motor/platformio.ini +++ b/examples/projects/l0/controller_motor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Controller_motor debug_tool = stlink diff --git a/examples/projects/l0/dc_motor/lib/DC_motor/library.json b/examples/projects/l0/dc_motor/lib/DC_motor/library.json index c28b1a337..531e67778 100644 --- a/examples/projects/l0/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/l0/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/dc_motor/platformio.ini b/examples/projects/l0/dc_motor/platformio.ini index c21657ddd..510939026 100644 --- a/examples/projects/l0/dc_motor/platformio.ini +++ b/examples/projects/l0/dc_motor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 DC_motor debug_tool = stlink diff --git a/examples/projects/l0/demo/detection_button/lib/Button/library.json b/examples/projects/l0/demo/detection_button/lib/Button/library.json index 274144bb5..7f70b7ea5 100644 --- a/examples/projects/l0/demo/detection_button/lib/Button/library.json +++ b/examples/projects/l0/demo/detection_button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json b/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json index adb5012be..3f9db49f2 100644 --- a/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json +++ b/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/detection_button/platformio.ini b/examples/projects/l0/demo/detection_button/platformio.ini index ae8dea257..9189dd275 100644 --- a/examples/projects/l0/demo/detection_button/platformio.ini +++ b/examples/projects/l0/demo/detection_button/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 detection_button Button debug_tool = stlink diff --git a/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json b/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json index 88fed1f89..27e1dd5ff 100644 --- a/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json +++ b/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/ledstrip_position/platformio.ini b/examples/projects/l0/demo/ledstrip_position/platformio.ini index 4d94e5bbb..bab1ef9c1 100644 --- a/examples/projects/l0/demo/ledstrip_position/platformio.ini +++ b/examples/projects/l0/demo/ledstrip_position/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 ledstrip_position distance debug_tool = stlink diff --git a/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json b/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json index fdac863fe..bb423bf98 100644 --- a/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json +++ b/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/motor_copy_app/platformio.ini b/examples/projects/l0/demo/motor_copy_app/platformio.ini index eb7ac87e6..9e426a000 100644 --- a/examples/projects/l0/demo/motor_copy_app/platformio.ini +++ b/examples/projects/l0/demo/motor_copy_app/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 motor_copy debug_tool = stlink diff --git a/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json b/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json index 6cebb4486..6020593e0 100644 --- a/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json +++ b/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/motor_demo_app/platformio.ini b/examples/projects/l0/demo/motor_demo_app/platformio.ini index 505fb76a4..c6b15097d 100644 --- a/examples/projects/l0/demo/motor_demo_app/platformio.ini +++ b/examples/projects/l0/demo/motor_demo_app/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 run_motor debug_tool = stlink diff --git a/examples/projects/l0/distance/lib/Distance/library.json b/examples/projects/l0/distance/lib/Distance/library.json index 0a207d8c6..eae256cae 100644 --- a/examples/projects/l0/distance/lib/Distance/library.json +++ b/examples/projects/l0/distance/lib/Distance/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT", "build": { diff --git a/examples/projects/l0/distance/platformio.ini b/examples/projects/l0/distance/platformio.ini index 9cb164199..d243a5cb3 100644 --- a/examples/projects/l0/distance/platformio.ini +++ b/examples/projects/l0/distance/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Distance debug_tool = stlink diff --git a/examples/projects/l0/dxl/lib/Dxl/library.json b/examples/projects/l0/dxl/lib/Dxl/library.json index 78dddf78f..fad9101b4 100644 --- a/examples/projects/l0/dxl/lib/Dxl/library.json +++ b/examples/projects/l0/dxl/lib/Dxl/library.json @@ -9,7 +9,7 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "build": { "flags": [ diff --git a/examples/projects/l0/dxl/platformio.ini b/examples/projects/l0/dxl/platformio.ini index d0d5d9eac..c9f29a251 100644 --- a/examples/projects/l0/dxl/platformio.ini +++ b/examples/projects/l0/dxl/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Dxl debug_tool = stlink diff --git a/examples/projects/l0/fingerprint/lib/Fingerprint/library.json b/examples/projects/l0/fingerprint/lib/Fingerprint/library.json index 50e910357..972130a9b 100644 --- a/examples/projects/l0/fingerprint/lib/Fingerprint/library.json +++ b/examples/projects/l0/fingerprint/lib/Fingerprint/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/l0/fingerprint/platformio.ini b/examples/projects/l0/fingerprint/platformio.ini index 6677811c5..87652c4fb 100644 --- a/examples/projects/l0/fingerprint/platformio.ini +++ b/examples/projects/l0/fingerprint/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Fingerprint debug_tool = stlink diff --git a/examples/projects/l0/gate_serialcom/platformio.ini b/examples/projects/l0/gate_serialcom/platformio.ini index 8a034c7a4..4e17e6c89 100644 --- a/examples/projects/l0/gate_serialcom/platformio.ini +++ b/examples/projects/l0/gate_serialcom/platformio.ini @@ -19,7 +19,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Pipe Gate debug_tool = stlink diff --git a/examples/projects/l0/gpio/lib/Gpio_dev/library.json b/examples/projects/l0/gpio/lib/Gpio_dev/library.json index d6ce02ba4..0fceaa9af 100644 --- a/examples/projects/l0/gpio/lib/Gpio_dev/library.json +++ b/examples/projects/l0/gpio/lib/Gpio_dev/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/gpio/platformio.ini b/examples/projects/l0/gpio/platformio.ini index 65d0a5d36..7b32974ef 100644 --- a/examples/projects/l0/gpio/platformio.ini +++ b/examples/projects/l0/gpio/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Gpio_dev debug_tool = stlink diff --git a/examples/projects/l0/imu/lib/Imu/library.json b/examples/projects/l0/imu/lib/Imu/library.json index cd7b5935a..11e63f3f5 100644 --- a/examples/projects/l0/imu/lib/Imu/library.json +++ b/examples/projects/l0/imu/lib/Imu/library.json @@ -9,7 +9,7 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "build": { "flags": [ diff --git a/examples/projects/l0/imu/platformio.ini b/examples/projects/l0/imu/platformio.ini index 98d2e7f08..582ed48f4 100644 --- a/examples/projects/l0/imu/platformio.ini +++ b/examples/projects/l0/imu/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Imu debug_tool = stlink diff --git a/examples/projects/l0/inspector_serialcom/platformio.ini b/examples/projects/l0/inspector_serialcom/platformio.ini index 16e18e860..cd3e02a00 100644 --- a/examples/projects/l0/inspector_serialcom/platformio.ini +++ b/examples/projects/l0/inspector_serialcom/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Pipe Inspector debug_tool = stlink diff --git a/examples/projects/l0/lcd/lib/Lcd/library.json b/examples/projects/l0/lcd/lib/Lcd/library.json index 483a1da53..3bf7d0f90 100644 --- a/examples/projects/l0/lcd/lib/Lcd/library.json +++ b/examples/projects/l0/lcd/lib/Lcd/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/l0/lcd/platformio.ini b/examples/projects/l0/lcd/platformio.ini index 69030c3f0..3906ea0b4 100644 --- a/examples/projects/l0/lcd/platformio.ini +++ b/examples/projects/l0/lcd/platformio.ini @@ -18,7 +18,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Lcd debug_tool = stlink diff --git a/examples/projects/l0/led/lib/Led/library.json b/examples/projects/l0/led/lib/Led/library.json index aa77ffcd3..0c25aec8f 100644 --- a/examples/projects/l0/led/lib/Led/library.json +++ b/examples/projects/l0/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/led/platformio.ini b/examples/projects/l0/led/platformio.ini index dc24386ee..e91573a2f 100644 --- a/examples/projects/l0/led/platformio.ini +++ b/examples/projects/l0/led/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led debug_tool = stlink diff --git a/examples/projects/l0/led_fader/lib/Led_Fader/library.json b/examples/projects/l0/led_fader/lib/Led_Fader/library.json index 955ebedd1..1ce11d8e1 100644 --- a/examples/projects/l0/led_fader/lib/Led_Fader/library.json +++ b/examples/projects/l0/led_fader/lib/Led_Fader/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/led_fader/platformio.ini b/examples/projects/l0/led_fader/platformio.ini index 6337b77c8..838af9069 100644 --- a/examples/projects/l0/led_fader/platformio.ini +++ b/examples/projects/l0/led_fader/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led_Fader debug_tool = stlink diff --git a/examples/projects/l0/led_strip/lib/Led_strip/library.json b/examples/projects/l0/led_strip/lib/Led_strip/library.json index 688de6c3c..dd1ad75d7 100644 --- a/examples/projects/l0/led_strip/lib/Led_strip/library.json +++ b/examples/projects/l0/led_strip/lib/Led_strip/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/led_strip/platformio.ini b/examples/projects/l0/led_strip/platformio.ini index 6f3a08905..d8556a1d9 100644 --- a/examples/projects/l0/led_strip/platformio.ini +++ b/examples/projects/l0/led_strip/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Led_strip debug_tool = stlink diff --git a/examples/projects/l0/light_sensor/lib/Light_sensor/library.json b/examples/projects/l0/light_sensor/lib/Light_sensor/library.json index ec67698a7..5c50eb7b2 100644 --- a/examples/projects/l0/light_sensor/lib/Light_sensor/library.json +++ b/examples/projects/l0/light_sensor/lib/Light_sensor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/light_sensor/platformio.ini b/examples/projects/l0/light_sensor/platformio.ini index 2fb1b425b..60e8338c3 100644 --- a/examples/projects/l0/light_sensor/platformio.ini +++ b/examples/projects/l0/light_sensor/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Light_sensor debug_tool = stlink diff --git a/examples/projects/l0/load/lib/Load/library.json b/examples/projects/l0/load/lib/Load/library.json index 05450c247..6574cf6b1 100644 --- a/examples/projects/l0/load/lib/Load/library.json +++ b/examples/projects/l0/load/lib/Load/library.json @@ -9,7 +9,7 @@ }, "licence": "MIT", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "build": { "flags": [ diff --git a/examples/projects/l0/load/platformio.ini b/examples/projects/l0/load/platformio.ini index e2bbc6124..6d4fff0a9 100644 --- a/examples/projects/l0/load/platformio.ini +++ b/examples/projects/l0/load/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Load debug_tool = stlink diff --git a/examples/projects/l0/potentiometer/lib/Potentiometer/library.json b/examples/projects/l0/potentiometer/lib/Potentiometer/library.json index 15e33c04c..36035b515 100644 --- a/examples/projects/l0/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/l0/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/potentiometer/platformio.ini b/examples/projects/l0/potentiometer/platformio.ini index 11a582545..c0cf29fe2 100644 --- a/examples/projects/l0/potentiometer/platformio.ini +++ b/examples/projects/l0/potentiometer/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Potentiometer debug_tool = stlink diff --git a/examples/projects/l0/power_switch/lib/Power_switch/library.json b/examples/projects/l0/power_switch/lib/Power_switch/library.json index f666b2232..49fa0a64c 100644 --- a/examples/projects/l0/power_switch/lib/Power_switch/library.json +++ b/examples/projects/l0/power_switch/lib/Power_switch/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/power_switch/platformio.ini b/examples/projects/l0/power_switch/platformio.ini index d692984a1..3614c7e3b 100644 --- a/examples/projects/l0/power_switch/platformio.ini +++ b/examples/projects/l0/power_switch/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Power_switch debug_tool = stlink diff --git a/examples/projects/l0/servo/lib/Servo/library.json b/examples/projects/l0/servo/lib/Servo/library.json index 58f12fa7a..7b15dde2c 100644 --- a/examples/projects/l0/servo/lib/Servo/library.json +++ b/examples/projects/l0/servo/lib/Servo/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/servo/platformio.ini b/examples/projects/l0/servo/platformio.ini index 8c490271b..dd48d6b1d 100644 --- a/examples/projects/l0/servo/platformio.ini +++ b/examples/projects/l0/servo/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Servo debug_tool = stlink diff --git a/examples/projects/l0/stepper/lib/Stepper/library.json b/examples/projects/l0/stepper/lib/Stepper/library.json index 18df0253d..b739cc4f8 100644 --- a/examples/projects/l0/stepper/lib/Stepper/library.json +++ b/examples/projects/l0/stepper/lib/Stepper/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/stepper/platformio.ini b/examples/projects/l0/stepper/platformio.ini index 7ccb48841..32e5d3509 100644 --- a/examples/projects/l0/stepper/platformio.ini +++ b/examples/projects/l0/stepper/platformio.ini @@ -17,7 +17,7 @@ platform = ststm32 board = l0 framework = stm32cube lib_deps = - luos_engine@^2.6.4 + luos_engine@^2.7.0 Stepper debug_tool = stlink diff --git a/library.json b/library.json index d49709e2e..62a205946 100644 --- a/library.json +++ b/library.json @@ -2,7 +2,7 @@ "name": "luos_engine", "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST,luos engine", "description": "Luos engine turns your embedded system into services like microservices architecture does it in software.", - "version":"2.6.4", + "version":"2.7.0", "authors": { "name": "Luos", "url": "https://luos.io" diff --git a/tool_services/gate/library.json b/tool_services/gate/library.json index 6e7544c54..8ba29f9ab 100644 --- a/tool_services/gate/library.json +++ b/tool_services/gate/library.json @@ -2,7 +2,7 @@ "name": "Gate", "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST,cJSON", "description": "A translation Luos app service allowing you to easily connect your computer to your hardware product.", - "version": "1.4.4", + "version": "1.5.0", "authors": { "name": "Luos", "url": "https://luos.io" @@ -14,7 +14,7 @@ "extraScript": "select_format_script.py" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "repository": { "type": "git", diff --git a/tool_services/inspector/library.json b/tool_services/inspector/library.json index 11953af9b..2c2a10c0a 100644 --- a/tool_services/inspector/library.json +++ b/tool_services/inspector/library.json @@ -2,7 +2,7 @@ "name": "Inspector", "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST,cJSON", "description": "A Luos service application allowing a computer to inspect a product.", - "version": "1.3.4", + "version": "1.4.0", "authors": { "name": "Luos", "url": "https://luos.io" @@ -11,7 +11,7 @@ "licence": "MIT", "headers": "inspector.h", "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "repository": { "type": "git", diff --git a/tool_services/pipe/library.json b/tool_services/pipe/library.json index a496de7c6..ef3edfc5c 100644 --- a/tool_services/pipe/library.json +++ b/tool_services/pipe/library.json @@ -2,7 +2,7 @@ "name": "Pipe", "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST,cJSON", "description": "A driver to communicate with the outside world.", - "version": "1.2.4", + "version": "1.3.0", "authors": { "name": "Luos", "url": "https://luos.io" @@ -14,7 +14,7 @@ "extraScript": "select_hal_script.py" }, "dependencies": { - "luos/luos_engine": "^2.6.4" + "luos_engine": "^2.7.0" }, "repository": { "type": "git", From 5e3a6be2646f68a64386ac47d8cd9e76124f0f79 Mon Sep 17 00:00:00 2001 From: biliouriv Date: Wed, 26 Oct 2022 12:07:53 +0200 Subject: [PATCH 02/36] [Transmission] Keep dead service id after 10 retries. --- network/robus/src/transmission.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/network/robus/src/transmission.c b/network/robus/src/transmission.c index 3cb6ef368..c8561093a 100644 --- a/network/robus/src/transmission.c +++ b/network/robus/src/transmission.c @@ -129,13 +129,9 @@ _CRITICAL void Transmit_Process() if (nbrRetry >= NBR_RETRY) { // We failed to transmit this message. We can't allow it, there is a issue on this target. - // If it was an ACK issue, save the target as dead service into the sending ll_service - if (ctx.tx.collision) - { - ll_service_pt->dead_service_spotted = (uint16_t)(((msg_t *)data)->header.target); - } - nbrRetry = 0; - ctx.tx.collision = false; + ll_service_pt->dead_service_spotted = (uint16_t)(((msg_t *)data)->header.target); + nbrRetry = 0; + ctx.tx.collision = false; // Remove all transmist messages of this specific target MsgAlloc_PullServiceFromTxTask((uint16_t)(((msg_t *)data)->header.target)); // Try to get a tx_task for another service From ed715f6d22a65ba0d2781f492b783807d1de0b2d Mon Sep 17 00:00:00 2001 From: biliouriv Date: Wed, 26 Oct 2022 12:10:18 +0200 Subject: [PATCH 03/36] [Auto updates] Stop auto updates if the service that demanded them is excluded --- engine/core/src/luos_engine.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/core/src/luos_engine.c b/engine/core/src/luos_engine.c index b3a0bf0a1..af1e60f1d 100644 --- a/engine/core/src/luos_engine.c +++ b/engine/core/src/luos_engine.c @@ -473,6 +473,13 @@ static void Luos_AutoUpdateManager(void) // check if there is a timed update setted and if it's time to update it. if (service_table[i].auto_refresh.time_ms) { + if (service_table[i].ll_service->dead_service_spotted == service_table[i].auto_refresh.target) + { + service_table[i].auto_refresh.target = 0; + service_table[i].auto_refresh.time_ms = 0; + service_table[i].auto_refresh.last_update = 0; + continue; + } if ((LuosHAL_GetSystick() - service_table[i].auto_refresh.last_update) >= service_table[i].auto_refresh.time_ms) { // This service need to send an update From 7c81dbfb2a6a45d8b879d2ec9797d281baecfe52 Mon Sep 17 00:00:00 2001 From: biliouriv Date: Tue, 30 Aug 2022 18:33:00 +0200 Subject: [PATCH 04/36] [Topic] Add 0 service parameter handling --- engine/core/src/luos_engine.c | 8 ++++++++ network/robus/src/robus.c | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/engine/core/src/luos_engine.c b/engine/core/src/luos_engine.c index af1e60f1d..16bf996ea 100644 --- a/engine/core/src/luos_engine.c +++ b/engine/core/src/luos_engine.c @@ -1215,6 +1215,10 @@ void Luos_Detect(service_t *service) ******************************************************************************/ error_return_t Luos_TopicSubscribe(service_t *service, uint16_t topic) { + if (service == 0) + { + return Robus_TopicSubscribe(0, topic); + } return Robus_TopicSubscribe(service->ll_service, topic); } /****************************************************************************** @@ -1225,5 +1229,9 @@ error_return_t Luos_TopicSubscribe(service_t *service, uint16_t topic) ******************************************************************************/ error_return_t Luos_TopicUnsubscribe(service_t *service, uint16_t topic) { + if (service == 0) + { + return Robus_TopicUnsubscribe(0, topic); + } return Robus_TopicUnsubscribe(service->ll_service, topic); } diff --git a/network/robus/src/robus.c b/network/robus/src/robus.c index 0b6302400..82218cb6e 100644 --- a/network/robus/src/robus.c +++ b/network/robus/src/robus.c @@ -159,6 +159,10 @@ ll_service_t *Robus_ServiceCreate(uint16_t type) ctx.ll_service_table[ctx.ll_service_number].ll_stat.max_retry = 0; // Clear topic number ctx.ll_service_table[ctx.ll_service_number].last_topic_position = 0; + for (uint16_t i = 0; i < LAST_TOPIC; i++) + { + ctx.ll_service_table[ctx.ll_service_number].topic_list[i] = 0; + } // Return the freshly initialized ll_service pointer. return (ll_service_t *)&ctx.ll_service_table[ctx.ll_service_number++]; } @@ -618,6 +622,10 @@ error_return_t Robus_TopicSubscribe(ll_service_t *ll_service, uint16_t topic_id) // add 1 to the bit corresponding to the topic in multicast mask ctx.TopicMask[(topic_id / 8)] |= 1 << (topic_id - ((int)(topic_id / 8)) * 8); // add multicast topic to service + if (ll_service == 0) + { + return Topic_Subscribe((ll_service_t *)(&ctx.ll_service_table[0]), topic_id); + } return Topic_Subscribe(ll_service, topic_id); } /****************************************************************************** @@ -631,7 +639,14 @@ error_return_t Robus_TopicUnsubscribe(ll_service_t *ll_service, uint16_t topic_i error_return_t err; // delete topic from service list - err = Topic_Unsubscribe(ll_service, topic_id); + if (ll_service == 0) + { + err = Topic_Unsubscribe((ll_service_t *)(&ctx.ll_service_table[0]), topic_id); + } + else + { + err = Topic_Unsubscribe(ll_service, topic_id); + } if (err == SUCCEED) { From 3f9ca989ce5917c45e6c5ab908a304dc5e1763bc Mon Sep 17 00:00:00 2001 From: biliouriv Date: Tue, 30 Aug 2022 18:33:44 +0200 Subject: [PATCH 05/36] [Bootloader] Subscribe to topic after BOOTLOADER_START reception --- engine/bootloader/bootloader_core.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/engine/bootloader/bootloader_core.c b/engine/bootloader/bootloader_core.c index ed94eb0cf..70ad9fe69 100644 --- a/engine/bootloader/bootloader_core.c +++ b/engine/bootloader/bootloader_core.c @@ -314,7 +314,10 @@ void LuosBootloader_SendCrc(bootloader_cmd_t response, uint8_t data) ready_msg.header.size = 2 * sizeof(uint8_t); ready_msg.data[0] = response; ready_msg.data[1] = data; - + node_t *node = Robus_GetNode(); + uint32_t tick = LuosHAL_GetSystick(); + while (LuosHAL_GetSystick() - tick < node->node_id) + ; Luos_SendMsg(0, &ready_msg); } @@ -331,6 +334,10 @@ void LuosBootloader_SendResponse(bootloader_cmd_t response) ready_msg.header.target = source_id; ready_msg.header.size = sizeof(uint8_t); ready_msg.data[0] = response; + node_t *node = Robus_GetNode(); + uint32_t tick = LuosHAL_GetSystick(); + while (LuosHAL_GetSystick() - tick < node->node_id) + ; Luos_SendMsg(0, &ready_msg); } @@ -367,8 +374,9 @@ void LuosBootloader_MsgHandler(msg_t *input) // process cmd and data case BOOTLOADER_READY: source_id = input->header.source; - bootloader_data_size = input->header.size - sizeof(char); - memcpy(bootloader_data, &(input->data[1]), bootloader_data_size); + bootloader_data_size = input->header.size - 2 * sizeof(char); + Luos_TopicSubscribe(0, (uint16_t)input->data[1]); + memcpy(bootloader_data, &(input->data[2]), bootloader_data_size); LuosHAL_SetMode((uint8_t)BOOT_MODE); @@ -427,6 +435,7 @@ void LuosBootloader_MsgHandler(msg_t *input) case BOOTLOADER_APP_SAVED: // set load flag load_flag = true; + Luos_TopicUnsubscribe(0, input->header.target); break; case BOOTLOADER_STOP: @@ -434,7 +443,6 @@ void LuosBootloader_MsgHandler(msg_t *input) tickstart = LuosHAL_GetSystick(); while ((LuosHAL_GetSystick() - tickstart) < 1000) ; - // save bootloader mode in flash if (load_flag || (LuosBootloader_GetMode() == APP_RELOAD_MODE)) { From e511d10b491f8408651c0f87088df157e0279d02 Mon Sep 17 00:00:00 2001 From: biliouriv Date: Tue, 30 Aug 2022 18:34:12 +0200 Subject: [PATCH 06/36] [Gate] Multicast bootloader messages --- tool_services/gate/TinyJSON/bootloader_ex.c | 47 ++++++++++++--------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/tool_services/gate/TinyJSON/bootloader_ex.c b/tool_services/gate/TinyJSON/bootloader_ex.c index 497a9313a..9635d7979 100644 --- a/tool_services/gate/TinyJSON/bootloader_ex.c +++ b/tool_services/gate/TinyJSON/bootloader_ex.c @@ -10,6 +10,7 @@ #include "bootloader_core.h" #include "gate_config.h" #include "pipe_link.h" +#include "routing_table.h" /******************************************************************************* * Definitions @@ -31,31 +32,31 @@ void Bootloader_LuosToJson(service_t *service, msg_t *msg) { char boot_json[64] = "\0"; uint8_t response_cmd = msg->data[0]; - + uint16_t node_id = RoutingTB_NodeIDFromID(msg->header.source); switch (response_cmd) { case BOOTLOADER_READY_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d}}\n", BOOTLOADER_READY_RESP); + sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_READY_RESP, node_id); break; case BOOTLOADER_ERASE_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d}}\n", BOOTLOADER_ERASE_RESP); + sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_ERASE_RESP, node_id); break; case BOOTLOADER_BIN_CHUNK_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d}}\n", BOOTLOADER_BIN_CHUNK_RESP); + sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_BIN_CHUNK_RESP, node_id); break; case BOOTLOADER_BIN_END_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d}}\n", BOOTLOADER_BIN_END_RESP); + sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_BIN_END_RESP, node_id); break; case BOOTLOADER_CRC_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d,\"crc_value\":%d}}\n", BOOTLOADER_CRC_RESP, msg->data[1]); + sprintf(boot_json, "{\"bootloader\":{\"response\":%d,\"crc_value\":%d, \"node\":%d}}\n", BOOTLOADER_CRC_RESP, msg->data[1], node_id); break; case BOOTLOADER_ERROR_SIZE: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d}}\n", BOOTLOADER_ERROR_SIZE); + sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_ERROR_SIZE, node_id); break; default: @@ -78,31 +79,34 @@ void Bootloader_JsonToLuos(service_t *service, char *bin_data, json_t const *boo // get "command" json object json_t const *command_item = json_getProperty(bootloader_json, "command"); // parse all relevant values in json object - uint16_t type = (uint16_t)json_getReal(json_getProperty(command_item, "type")); - uint8_t node_target = (uint8_t)json_getReal(json_getProperty(command_item, "node")); - + uint16_t type = (uint16_t)json_getReal(json_getProperty(command_item, "type")); + uint8_t topic_target = (uint8_t)json_getReal(json_getProperty(command_item, "topic")); // create a message to send to nodes msg_t boot_msg; - boot_msg.header.target = node_target; // first node of the network + boot_msg.header.target = topic_target; // first node of the network boot_msg.header.cmd = BOOTLOADER_CMD; // bootloader cmd - boot_msg.header.target_mode = NODEIDACK; // msg send to the node + boot_msg.header.target_mode = TOPIC; // msg send to the node uint32_t binary_size = 0; json_t *item = NULL; switch (type) { case BOOTLOADER_START: - // send start command to bootloader app - boot_msg.header.size = sizeof(char); - boot_msg.data[0] = BOOTLOADER_START; + boot_msg.header.target_mode = NODEIDACK; + boot_msg.header.target = (uint16_t)json_getReal(json_getProperty(command_item, "node")); + boot_msg.header.size = sizeof(char); + boot_msg.data[0] = BOOTLOADER_START; Luos_SendMsg(service, &boot_msg); break; case BOOTLOADER_STOP: // send stop command to bootloader app - boot_msg.header.size = sizeof(char); - boot_msg.data[0] = BOOTLOADER_STOP; + boot_msg.header.target_mode = NODEIDACK; + boot_msg.header.target = (uint16_t)json_getReal(json_getProperty(command_item, "node")); + boot_msg.header.size = sizeof(char); + boot_msg.data[0] = BOOTLOADER_STOP; Luos_SendMsg(service, &boot_msg); + break; case BOOTLOADER_READY: @@ -110,9 +114,12 @@ void Bootloader_JsonToLuos(service_t *service, char *bin_data, json_t const *boo binary_size = (uint32_t)json_getReal(json_getProperty(command_item, "size")); // send ready command to bootloader app - boot_msg.header.size = sizeof(char) + sizeof(uint32_t); - boot_msg.data[0] = BOOTLOADER_READY; - memcpy(&(boot_msg.data[1]), &binary_size, sizeof(uint32_t)); + boot_msg.header.target_mode = NODEIDACK; + boot_msg.header.target = (uint16_t)json_getReal(json_getProperty(command_item, "node")); + boot_msg.header.size = 2 * sizeof(char) + sizeof(uint32_t); + boot_msg.data[0] = BOOTLOADER_READY; + boot_msg.data[1] = topic_target; + memcpy(&(boot_msg.data[2]), &binary_size, sizeof(uint32_t)); Luos_SendMsg(service, &boot_msg); break; From bc71a5ac7d442e9631ea9c340a4da2e5c2634d9e Mon Sep 17 00:00:00 2001 From: biliouriv Date: Mon, 24 Oct 2022 10:36:38 +0200 Subject: [PATCH 07/36] [Bootloader] Gate transformation to merge boot responses --- tool_services/gate/TinyJSON/bootloader_ex.c | 44 +++++++++++++++------ tool_services/gate/TinyJSON/bootloader_ex.h | 4 +- tool_services/gate/data_manager.c | 25 ++++++++---- 3 files changed, 53 insertions(+), 20 deletions(-) diff --git a/tool_services/gate/TinyJSON/bootloader_ex.c b/tool_services/gate/TinyJSON/bootloader_ex.c index 9635d7979..0a91e6f23 100644 --- a/tool_services/gate/TinyJSON/bootloader_ex.c +++ b/tool_services/gate/TinyJSON/bootloader_ex.c @@ -28,43 +28,63 @@ * @param service pointer, luos message * @return None ******************************************************************************/ -void Bootloader_LuosToJson(service_t *service, msg_t *msg) +uint16_t Bootloader_StartData(char *data) +{ + sprintf(data, "{\"bootloader\":["); + return (sizeof("{\"bootloader\":[") - 1); +} + +/****************************************************************************** + * @brief Process node responses and send them to the Host + * @param service pointer, luos message + * @return None + ******************************************************************************/ +uint16_t Bootloader_LuosToJson(msg_t *msg, char *data) { - char boot_json[64] = "\0"; uint8_t response_cmd = msg->data[0]; uint16_t node_id = RoutingTB_NodeIDFromID(msg->header.source); switch (response_cmd) { case BOOTLOADER_READY_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_READY_RESP, node_id); + sprintf(data, "{\"response\":%d,\"node\":%d},", BOOTLOADER_READY_RESP, node_id); break; case BOOTLOADER_ERASE_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_ERASE_RESP, node_id); + sprintf(data, "{\"response\":%d,\"node\":%d},", BOOTLOADER_ERASE_RESP, node_id); break; case BOOTLOADER_BIN_CHUNK_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_BIN_CHUNK_RESP, node_id); + sprintf(data, "{\"response\":%d,\"node\":%d},", BOOTLOADER_BIN_CHUNK_RESP, node_id); break; case BOOTLOADER_BIN_END_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_BIN_END_RESP, node_id); + sprintf(data, "{\"response\":%d,\"node\":%d},", BOOTLOADER_BIN_END_RESP, node_id); break; case BOOTLOADER_CRC_RESP: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d,\"crc_value\":%d, \"node\":%d}}\n", BOOTLOADER_CRC_RESP, msg->data[1], node_id); + sprintf(data, "{\"response\":%d,\"crc_value\":%d,\"node\":%d},", BOOTLOADER_CRC_RESP, msg->data[1], node_id); break; case BOOTLOADER_ERROR_SIZE: - sprintf(boot_json, "{\"bootloader\":{\"response\":%d, \"node\":%d}}\n", BOOTLOADER_ERROR_SIZE, node_id); + sprintf(data, "{\"response\":%d,\"node\":%d},", BOOTLOADER_ERROR_SIZE, node_id); break; default: break; } + return (uint16_t)strlen(data); +} +// This function start a Json structure and return the string size. +void Bootloader_EndData(service_t *service, char *data, char *data_ptr) +{ + // remove the last "," char + *(--data_ptr) = '\0'; + // End the Json message + memcpy(data_ptr, "]}\n", sizeof("]}\n")); + data_ptr += sizeof("]}\n") - 1; // Send the message to pipe - PipeLink_Send(service, boot_json, strlen(boot_json)); + PipeLink_Send(service, data, data_ptr - data); } /****************************************************************************** @@ -83,9 +103,9 @@ void Bootloader_JsonToLuos(service_t *service, char *bin_data, json_t const *boo uint8_t topic_target = (uint8_t)json_getReal(json_getProperty(command_item, "topic")); // create a message to send to nodes msg_t boot_msg; - boot_msg.header.target = topic_target; // first node of the network - boot_msg.header.cmd = BOOTLOADER_CMD; // bootloader cmd - boot_msg.header.target_mode = TOPIC; // msg send to the node + boot_msg.header.target = (uint16_t)topic_target; // first node of the network + boot_msg.header.cmd = BOOTLOADER_CMD; // bootloader cmd + boot_msg.header.target_mode = TOPIC; // msg send to the node uint32_t binary_size = 0; json_t *item = NULL; diff --git a/tool_services/gate/TinyJSON/bootloader_ex.h b/tool_services/gate/TinyJSON/bootloader_ex.h index f2c55b4ae..e4d387611 100644 --- a/tool_services/gate/TinyJSON/bootloader_ex.h +++ b/tool_services/gate/TinyJSON/bootloader_ex.h @@ -21,7 +21,9 @@ /******************************************************************************* * Function ******************************************************************************/ -void Bootloader_LuosToJson(service_t *, msg_t *); +uint16_t Bootloader_LuosToJson(msg_t *, char *); void Bootloader_JsonToLuos(service_t *, char *, json_t const *); +uint16_t Bootloader_StartData(char *); +void Bootloader_EndData(service_t *, char *, char *); #endif /* BOOTLOADER_H */ \ No newline at end of file diff --git a/tool_services/gate/data_manager.c b/tool_services/gate/data_manager.c index 33bd9f429..a783474bf 100644 --- a/tool_services/gate/data_manager.c +++ b/tool_services/gate/data_manager.c @@ -127,10 +127,12 @@ void DataManager_Format(service_t *service) static uint32_t FirstNoReceptionDate = 0; static uint32_t LastVoidMsg = 0; char data[GATE_BUFF_SIZE]; - char *data_ptr = data; - msg_t *data_msg = 0; - uint8_t data_ok = false; - uint8_t sending = false; + char *data_ptr = data; + char boot_data[GATE_BUFF_SIZE]; + char *boot_data_ptr = boot_data; + msg_t *data_msg = 0; + uint8_t data_ok = false; + uint8_t boot_data_ok = false; search_result_t result; RTFilter_Reset(&result); @@ -139,6 +141,7 @@ void DataManager_Format(service_t *service) { // Init the data string data_ptr += Convert_StartData(data_ptr); + boot_data_ptr += Bootloader_StartData(boot_data_ptr); // loop into services. int i = 0; while (i < result.result_nbr) @@ -158,8 +161,12 @@ void DataManager_Format(service_t *service) // check if a node send a bootloader message if (data_msg->header.cmd == BOOTLOADER_RESP) { - sending = true; - Bootloader_LuosToJson(service, data_msg); + do + { + boot_data_ptr += Bootloader_LuosToJson(data_msg, boot_data_ptr); + } while (Luos_ReadFromService(service, data_msg->header.source, &data_msg) == SUCCEED); + boot_data_ok = true; + i++; continue; } // check if a node send a end detection @@ -213,7 +220,11 @@ void DataManager_Format(service_t *service) Convert_EndData(service, data, data_ptr); FirstNoReceptionDate = 0; } - else if (sending == false) + else if (boot_data_ok) + { + Bootloader_EndData(service, boot_data, boot_data_ptr); + } + else { // We don't receive anything. // After 1s void reception send void data allowing client to send commands (because client could be synchronized to reception). From 9f78838d44dd8f0473af3d61d3c3c9289924f80f Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Mon, 22 Aug 2022 12:02:18 +0200 Subject: [PATCH 08/36] Add native HAL and button example. --- .github/workflows/build.yml | 5 +- engine/HAL/NATIVE/luos_hal.c | 227 ++++++++++++++++ engine/HAL/NATIVE/luos_hal.h | 54 ++++ engine/HAL/NATIVE/luos_hal_config.h | 54 ++++ examples/projects/native/button/README.md | 36 +++ .../native/button/lib/Button/README.md | 18 ++ .../native/button/lib/Button/button.c | 95 +++++++ .../native/button/lib/Button/button.h | 24 ++ .../native/button/lib/Button/library.json | 14 + examples/projects/native/button/node_config.h | 95 +++++++ .../projects/native/button/platformio.ini | 25 ++ examples/projects/native/button/src/main.c | 13 + network/robus/HAL/NATIVE/robus_hal.c | 244 ++++++++++++++++++ network/robus/HAL/NATIVE/robus_hal.h | 43 +++ network/robus/HAL/NATIVE/robus_hal_config.h | 154 +++++++++++ 15 files changed, 1099 insertions(+), 2 deletions(-) create mode 100644 engine/HAL/NATIVE/luos_hal.c create mode 100644 engine/HAL/NATIVE/luos_hal.h create mode 100644 engine/HAL/NATIVE/luos_hal_config.h create mode 100644 examples/projects/native/button/README.md create mode 100644 examples/projects/native/button/lib/Button/README.md create mode 100644 examples/projects/native/button/lib/Button/button.c create mode 100644 examples/projects/native/button/lib/Button/button.h create mode 100644 examples/projects/native/button/lib/Button/library.json create mode 100644 examples/projects/native/button/node_config.h create mode 100644 examples/projects/native/button/platformio.ini create mode 100644 examples/projects/native/button/src/main.c create mode 100644 network/robus/HAL/NATIVE/robus_hal.c create mode 100644 network/robus/HAL/NATIVE/robus_hal.h create mode 100644 network/robus/HAL/NATIVE/robus_hal_config.h diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb8d6ac0f..2bb53efd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,7 +80,8 @@ jobs: examples/projects/NUCLEO-F072RB, examples/projects/NUCLEO-L073RZ, examples/projects/STM32L4S5_discovery, - examples/projects/ESP32 + examples/projects/ESP32, + examples/projects/native ] os: [macos-latest, windows-latest, ubuntu-latest] @@ -130,4 +131,4 @@ jobs: needs: examples-build runs-on: ubuntu-latest steps: - - run: echo "Build succeed!" \ No newline at end of file + - run: echo "Build succeed!" diff --git a/engine/HAL/NATIVE/luos_hal.c b/engine/HAL/NATIVE/luos_hal.c new file mode 100644 index 000000000..9c2de270d --- /dev/null +++ b/engine/HAL/NATIVE/luos_hal.c @@ -0,0 +1,227 @@ +/****************************************************************************** + * @file luosHAL + * @brief Luos Hardware Abstration Layer. Describe Low layer fonction + * @Family x86/Linux/Mac + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#include "luos_hal.h" + +#include +#include +#include +#include + +/******************************************************************************* + * Function + ******************************************************************************/ +static void LuosHAL_SystickInit(void); +static void LuosHAL_FlashInit(void); +static void LuosHAL_FlashEraseLuosMemoryInfo(void); + +/////////////////////////Luos Library Needed function/////////////////////////// + +/****************************************************************************** + * @brief Luos HAL general initialisation + * @param None + * @return None + ******************************************************************************/ +void LuosHAL_Init(void) +{ + { + // Systick Initialization + LuosHAL_SystickInit(); + + // Flash Initialization + LuosHAL_FlashInit(); + + // start timestamp + LuosHAL_StartTimestamp(); + } +} + +/****************************************************************************** + * @brief Luos HAL general disable IRQ + * @param None + * @return None + ******************************************************************************/ +void LuosHAL_SetIrqState(uint8_t Enable) +{ +} + +/****************************************************************************** + * @brief Luos HAL general systick tick at 1ms initialize + * @param None + * @return tick Counter + ******************************************************************************/ +static void LuosHAL_SystickInit(void) +{ +} + +/****************************************************************************** + * @brief Luos HAL general systick tick at 1ms + * @param None + * @return tick Counter + ******************************************************************************/ +uint32_t LuosHAL_GetSystick(void) +{ + clock_t tick = clock(); + return tick; // return tick +} + +/****************************************************************************** + * @brief Luos GetTimestamp + * @param None + * @return uint64_t + ******************************************************************************/ +uint64_t LuosHAL_GetTimestamp(void) +{ + return (LuosHAL_GetSystick() * 1000); +} + +/****************************************************************************** + * @brief Luos start Timestamp + * @param None + * @return None + ******************************************************************************/ +void LuosHAL_StartTimestamp(void) +{ +} + +/****************************************************************************** + * @brief Luos stop Timestamp + * @param None + * @return None + ******************************************************************************/ +void LuosHAL_StopTimestamp(void) +{ +} + +/****************************************************************************** + * @brief Flash Initialisation + * @param None + * @return None + ******************************************************************************/ +static void LuosHAL_FlashInit(void) +{ + for (uint16_t i = 0; i < FLASH_PAGE_NUMBER; i++) + { + for (uint16_t j = 0; j < FLASH_PAGE_SIZE; j++) + { + stub_flash_x86[i][j] = 0; + } + } +} + +/****************************************************************************** + * @brief Erase flash page where Luos keep permanente information + * @param None + * @return None + ******************************************************************************/ +static void LuosHAL_FlashEraseLuosMemoryInfo(void) +{ +} + +/****************************************************************************** + * @brief Write flash page where Luos keep permanente information + * @param Address page / size to write / pointer to data to write + * @return + ******************************************************************************/ +void LuosHAL_FlashWriteLuosMemoryInfo(uint32_t addr, uint16_t size, uint8_t *data) +{ +} + +/****************************************************************************** + * @brief read information from page where Luos keep permanente information + * @param Address info / size to read / pointer callback data to read + * @return + ******************************************************************************/ +void LuosHAL_FlashReadLuosMemoryInfo(uint32_t addr, uint16_t size, uint8_t *data) +{ + memset(data, 0xFF, size); +} + +/****************************************************************************** + * @brief Set boot mode in shared flash memory + * @param + * @return + ******************************************************************************/ +void LuosHAL_SetMode(uint8_t mode) +{ +} + +/****************************************************************************** + * @brief Save node ID in shared flash memory + * @param Address, node_id + * @return + ******************************************************************************/ +void LuosHAL_SaveNodeID(uint16_t node_id) +{ +} + +/****************************************************************************** + * @brief software reboot the microprocessor + * @param + * @return + ******************************************************************************/ +void LuosHAL_Reboot(void) +{ +} + +#ifdef BOOTLOADER_CONFIG +/****************************************************************************** + * @brief DeInit Bootloader peripherals + * @param + * @return + ******************************************************************************/ +void LuosHAL_DeInit(void) +{ +} + +/****************************************************************************** + * @brief DeInit Bootloader peripherals + * @param + * @return + ******************************************************************************/ +typedef void (*pFunction)(void); /*!< Function pointer definition */ + +void LuosHAL_JumpToApp(uint32_t app_addr) +{ +} + +/****************************************************************************** + * @brief Return bootloader mode saved in flash + * @param + * @return + ******************************************************************************/ +uint8_t LuosHAL_GetMode(void) +{ +} + +/****************************************************************************** + * @brief Get node id saved in flash memory + * @param Address + * @return node_id + ******************************************************************************/ +uint16_t LuosHAL_GetNodeID(void) +{ +} + +/****************************************************************************** + * @brief erase sectors in flash memory + * @param Address, size + * @return + ******************************************************************************/ +void LuosHAL_EraseMemory(uint32_t address, uint16_t size) +{ +} + +/****************************************************************************** + * @brief Save binary data in shared flash memory + * @param Address, size, data[] + * @return + ******************************************************************************/ +void LuosHAL_ProgramFlash(uint32_t address, uint16_t size, uint8_t *data) +{ +} +#endif diff --git a/engine/HAL/NATIVE/luos_hal.h b/engine/HAL/NATIVE/luos_hal.h new file mode 100644 index 000000000..df15b3fcd --- /dev/null +++ b/engine/HAL/NATIVE/luos_hal.h @@ -0,0 +1,54 @@ +/****************************************************************************** + * @file luosHAL + * @brief Luos Hardware Abstration Layer. Describe Low layer fonction + * @Family x86/Linux/Mac + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _LUOSHAL_H_ +#define _LUOSHAL_H_ + +#include +#include + +/******************************************************************************* + * Definitions + ******************************************************************************/ +#define LUOS_UUID ((uint32_t *)0x00000001) + +#define ADDRESS_ALIASES_FLASH ADDRESS_LAST_PAGE_FLASH +#define ADDRESS_BOOT_FLAG_FLASH (ADDRESS_LAST_PAGE_FLASH + PAGE_SIZE) - 4 + +/******************************************************************************* + * Variables + ******************************************************************************/ + +/******************************************************************************* + * Function + ******************************************************************************/ +void LuosHAL_Init(void); +void LuosHAL_SetIrqState(uint8_t Enable); +uint32_t LuosHAL_GetSystick(void); +void LuosHAL_FlashWriteLuosMemoryInfo(uint32_t addr, uint16_t size, uint8_t *data); +void LuosHAL_FlashReadLuosMemoryInfo(uint32_t addr, uint16_t size, uint8_t *data); + +// bootloader functions +void LuosHAL_SetMode(uint8_t mode); +void LuosHAL_Reboot(void); +void LuosHAL_SaveNodeID(uint16_t); + +#ifdef BOOTLOADER_CONFIG +void LuosHAL_DeInit(void); +void LuosHAL_JumpToApp(uint32_t); +uint8_t LuosHAL_GetMode(void); +uint16_t LuosHAL_GetNodeID(void); +void LuosHAL_EraseMemory(uint32_t, uint16_t); +void LuosHAL_ProgramFlash(uint32_t, uint16_t, uint8_t *); +#endif + +// timestamp functions +uint64_t LuosHAL_GetTimestamp(void); +void LuosHAL_StartTimestamp(void); +void LuosHAL_StopTimestamp(void); + +#endif /* _LUOSHAL_H_ */ diff --git a/engine/HAL/NATIVE/luos_hal_config.h b/engine/HAL/NATIVE/luos_hal_config.h new file mode 100644 index 000000000..58b48dfa7 --- /dev/null +++ b/engine/HAL/NATIVE/luos_hal_config.h @@ -0,0 +1,54 @@ +/****************************************************************************** + * @file luosHAL_Config + * @brief This file allow you to configure LuosHAL according to your design + * this is the default configuration created by Luos team for this MCU Family + * Do not modify this file if you want to ovewrite change define in you project + * @Family x86 + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _LUOSHAL_CONFIG_H_ +#define _LUOSHAL_CONFIG_H_ + +#ifndef MCUFREQ +#define MCUFREQ 100000000 // MCU frequence +#endif + +/******************************************************************************* + * DEFINE STUB FLASH FOR X86 + ******************************************************************************/ +#ifndef FLASH_PAGE_SIZE +#define FLASH_PAGE_SIZE 0x100 +#endif +#ifndef FLASH_PAGE_NUMBER +#define FLASH_PAGE_NUMBER 8 +#endif +static uint32_t stub_flash_x86[FLASH_PAGE_NUMBER][FLASH_PAGE_SIZE]; +static uint32_t *last_page_stub_flash_x86 = &stub_flash_x86[FLASH_PAGE_NUMBER - 1][FLASH_PAGE_SIZE]; + +/******************************************************************************* + * FLASH CONFIG + ******************************************************************************/ +#ifndef PAGE_SIZE +#define PAGE_SIZE (uint32_t) FLASH_PAGE_SIZE +#endif +#ifndef ADDRESS_LAST_PAGE_FLASH +#define ADDRESS_LAST_PAGE_FLASH (uint32_t) last_page_stub_flash_x86 +#endif + +/******************************************************************************* + * BOOTLOADER CONFIG + ******************************************************************************/ +#define FLASH_END FLASH_SIZE - 1 + +#ifndef END_ERASE_BOOTLOADER +#define END_ERASE_BOOTLOADER (uint32_t)0x08020000 +#endif +#ifndef SHARED_MEMORY_ADDRESS +#define SHARED_MEMORY_ADDRESS (uint32_t)0x0801F800 +#endif +#ifndef APP_ADDRESS +#define APP_ADDRESS (uint32_t)0x0800C800 +#endif + +#endif /* _LUOSHAL_CONFIG_H_ */ diff --git a/examples/projects/native/button/README.md b/examples/projects/native/button/README.md new file mode 100644 index 000000000..ae24a9447 --- /dev/null +++ b/examples/projects/native/button/README.md @@ -0,0 +1,36 @@ +Luos logo + +![](https://github.com/Luos-io/luos_engine/actions/workflows/build.yml/badge.svg) +[![](https://img.shields.io/github/license/Luos-io/Luos)](https://github.com/Luos-io/luos_engine/blob/master/LICENSE) + +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](http://certified.luos.io)](https://luos.io) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos_engine/library/Luos.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) + +[![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) +[![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) +[![](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Unleash%20electronic%20devices%20as%20microservices%20thanks%20to%20Luos&https://luos.io&via=Luos_io&hashtags=embeddedsystems,electronics,microservices,api) +[![](https://img.shields.io/badge/LinkedIn-Share-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fluos-io) + + + +# Button project example :bulb: +This project demonstrate how to make and use a simple button through Luos. Feel free to use electronics and code example as you want. + +## How to compile the code :computer: + + 1. Download and install [Platformio](https://platformio.org/platformio-ide) + 2. Open this folder into Platformio + 3. Build (Platformio will do the rest) + +## How to open the electronic design :electric_plug: +You can open [a working example electronic design](https://github.com/Luos-io/luos_engine/tree/main/examples/hardware) with Kicad. This design use Luos_components library for more information to install and use it read [our doc](https://docs.luos.io). + +## Linked driver +This project is linked to the [Button driver](../../Drivers/button). + +## Don't hesitate to read [our documentation](https://docs.luos.io), or to post your questions/issues on the [Luos' Forum](https://community.luos.io). :books: + +[![](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.luos.io&logo=Discourse)](https://community.luos.io) +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](https://img.shields.io/badge/LinkedIn-Follow%20us-0077B5?style=flat&logo=linkedin)](https://www.linkedin.com/company/luos) diff --git a/examples/projects/native/button/lib/Button/README.md b/examples/projects/native/button/lib/Button/README.md new file mode 100644 index 000000000..e8a6a722e --- /dev/null +++ b/examples/projects/native/button/lib/Button/README.md @@ -0,0 +1,18 @@ +Luos logo + +[![](http://certified.luos.io)](https://luos.io) +[![](https://img.shields.io/github/license/Luos-io/examples)]( +https://github.com/Luos-io/examples/blob/master/LICENSE) + +[![](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Unleash%20electronic%20devices%20as%20microservices%20thanks%20to%20Luos&https://luos.io&via=Luos_io&hashtags=embeddedsystems,electronics,microservices,api) +[![](https://img.shields.io/badge/LinkedIn-Share-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fluos-io) + +# Button driver +Driver for using a push button in your projects with Luos. + +# Linked project +This driver is linked to the [Button project](../../Projects/button). + +[![](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.luos.io&logo=Discourse)](https://community.luos.io) +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](https://img.shields.io/badge/LinkedIn-Follow%20us-0077B5?style=flat&logo=linkedin)](https://www.linkedin.com/company/luos) diff --git a/examples/projects/native/button/lib/Button/button.c b/examples/projects/native/button/lib/Button/button.c new file mode 100644 index 000000000..fe3811e8b --- /dev/null +++ b/examples/projects/native/button/lib/Button/button.c @@ -0,0 +1,95 @@ +/****************************************************************************** + * @file button + * @brief driver example a simple button + * @author Luos + * @version 0.0.0 + ******************************************************************************/ + +#include +#include +#ifdef _WIN32 + #include +#else + #include +#endif +#include +#include "button.h" +#include "profile_state.h" + +/******************************************************************************* + * Definitions + ******************************************************************************/ + +/******************************************************************************* + * Variables + ******************************************************************************/ +profile_state_t button; + +/******************************************************************************* + * Function + ******************************************************************************/ + +/****************************************************************************** + * @brief init must be call in project init + * @param None + * @return None + ******************************************************************************/ +void Button_Init(void) +{ + // service initialization + revision_t revision = {.major = 1, .minor = 0, .build = 0}; + // Profile configuration + button.access = READ_ONLY_ACCESS; + // Service creation following state profile + ProfileState_CreateService(&button, 0, "button", revision); + // set_fl(STDOUT_FILENO, O_NONBLOCK); + printf("Button service running.\n\tUse the SPACE button to swap the button state.\n"); +} +#ifndef _WIN32 +int kbhit(void) +{ + struct termios oldt, newt; + int ch; + int oldf; + + tcgetattr(STDIN_FILENO, &oldt); + newt = oldt; + newt.c_lflag &= ~(ICANON | ECHO); + tcsetattr(STDIN_FILENO, TCSANOW, &newt); + oldf = fcntl(STDIN_FILENO, F_GETFL, 0); + fcntl(STDIN_FILENO, F_SETFL, oldf | O_NONBLOCK); + + ch = getchar(); + + tcsetattr(STDIN_FILENO, TCSANOW, &oldt); + fcntl(STDIN_FILENO, F_SETFL, oldf); + + if (ch != EOF) + { + ungetc(ch, stdin); + return 1; + } + + return 0; +} +#endif +/****************************************************************************** + * @brief loop must be call in project loop + * @param None + * @return None + ******************************************************************************/ +void Button_Loop(void) +{ + if (kbhit()) + { + if (getchar() == ' ') + { + printf("\nButton state : "); + button.state = !button.state; + if (button.state) + printf("True"); + else + printf("False"); + } + } +} \ No newline at end of file diff --git a/examples/projects/native/button/lib/Button/button.h b/examples/projects/native/button/lib/Button/button.h new file mode 100644 index 000000000..0363e6540 --- /dev/null +++ b/examples/projects/native/button/lib/Button/button.h @@ -0,0 +1,24 @@ +/****************************************************************************** + * @file button + * @brief driver example a simple button + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef BUTTON_H +#define BUTTON_H + +/******************************************************************************* + * Definitions + ******************************************************************************/ + +/******************************************************************************* + * Variables + ******************************************************************************/ + +/******************************************************************************* + * Function + ******************************************************************************/ +void Button_Init(void); +void Button_Loop(void); + +#endif /* BUTTON_H */ diff --git a/examples/projects/native/button/lib/Button/library.json b/examples/projects/native/button/lib/Button/library.json new file mode 100644 index 000000000..7d38ee4fb --- /dev/null +++ b/examples/projects/native/button/lib/Button/library.json @@ -0,0 +1,14 @@ +{ + "name": "Button", + "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST", + "description": "a simple button driver", + "version": "1.0.0", + "authors": { + "name": "Luos", + "url": "https://luos.io" + }, + "dependencies": { + "luos_engine": "^2.5.3" + }, + "licence": "MIT" +} \ No newline at end of file diff --git a/examples/projects/native/button/node_config.h b/examples/projects/native/button/node_config.h new file mode 100644 index 000000000..00a4f1ea4 --- /dev/null +++ b/examples/projects/native/button/node_config.h @@ -0,0 +1,95 @@ +/****************************************************************************** + * @file node_config.h + * @brief This file allow you to use standard preprocessor definitions to + * configure your project, Luos and Luos HAL libraries + * + * # Introduction + * This file is for the luos user. You may here configure your project and + * define your custom Luos service and custom Luos command for your product + * + * Luos libraries offer a minimal standard configuration to optimize + * memory usage. In some case you have to modify standard value to fit + * with your need concerning among of data transiting through the network + * or network speed for example + * + * Luos libraries can be use with a lot a MCU family. Luos compagny give you + * a default configuration, for specific MCU family, in robus_hal_config.h. + * This configuration can be modify here to fit with you design by + * preprocessor definitions of MCU Hardware needs + * + * # Usage + * This file should be place a the root folder of your project and include + * where build flag preprocessor definitions are define in your IDE + * -include node_config.h + * + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _NODE_CONFIG_H_ +#define _NODE_CONFIG_H_ + +/******************************************************************************* + * PROJECT DEFINITION + *******************************************************************************/ + +/******************************************************************************* + * LUOS LIBRARY DEFINITION + ******************************************************************************* + * Define | Default Value | Description + * :---------------------|------------------------------------------------------ + * MAX_SERVICE_NUMBER | 5 | Service number in the node + * MSG_BUFFER_SIZE | 3*SIZE_MSG_MAX (405 Bytes) | Size in byte of the Luos buffer TX and RX + * MAX_MSG_NB | 2*MAX_SERVICE_NUMBER | Message number in Luos buffer + * NBR_PORT | 2 | PTP Branch number Max 8 + * NBR_RETRY | 10 | Send Retry number in case of NACK or collision + ******************************************************************************/ +#define MAX_SERVICE_NUMBER 1 +#define MAX_PROFILE_NUMBER 1 +#define MAX_MSG_NB 5 + +/******************************************************************************* + * LUOS HAL LIBRARY DEFINITION +******************************************************************************* + * Define | Description + * :-----------------------|----------------------------------------------- + * MCUFREQ | Put your the MCU frequency (value in Hz) + * TIMERDIV | Timer divider clock (see your clock configuration) + * USE_CRC_HW | define to 0 if there is no Module CRC in your MCU + * USE_TX_IT | define to 1 to not use DMA transfers for Luos Tx + * + * PORT_CLOCK_ENABLE | Enable clock for port + * PTPx | A,B,C,D etc. PTP Branch Pin/Port/IRQ + * TX_LOCK_DETECT | Disable by default use if not busy flag in USART Pin/Port/IRQ + * RX_EN | Rx enable for driver RS485 always on Pin/Port + * TX_EN | Tx enable for driver RS485 Pin/Port + * COM_TX | Tx USART Com Pin/Port/Alternate + * COM_RX | Rx USART Com Pin/Port/Alternate + * PINOUT_IRQHANDLER | Callback function for Pin IRQ handler + + * LUOS_COM_CLOCK_ENABLE | Enable clock for USART + * LUOS_COM | USART number + * LUOS_COM_IRQ | USART IRQ number + * LUOS_COM_IRQHANDLER | Callback function for USART IRQ handler + + * LUOS_DMA_CLOCK_ENABLE | Enable clock for DMA + * LUOS_DMA | DMA number + * LUOS_DMA_CHANNEL | DMA channel (depending on MCU DMA may need special config) + + * LUOS_TIMER_CLOCK_ENABLE | Enable clock for Timer + * LUOS_TIMER | Timer number + * LUOS_TIMER_IRQ | Timer IRQ number + * LUOS_TIMER_IRQHANDLER | Callback function for Timer IRQ handler +******************************************************************************/ + +/******************************************************************************* + * FLASH CONFIGURATION FOR APP WITH BOOTLOADER + ******************************************************************************** + * Define | Default Value | Description + * :---------------------|------------------------------------------------------ + * BOOT_START_ADDRESS | FLASH_BASE = 0x8000000 | Start address of Bootloader in flash + * SHARED_MEMORY_ADDRESS | 0x0800C000 | Start address of shared memory to save boot flag + * APP_START_ADDRESS | 0x0800C800 | Start address of application with bootloader + * APP_END_ADDRESS | FLASH_BANK1_END=0x0801FFFF | End address of application with bootloader + ******************************************************************************/ + +#endif /* _NODE_CONFIG_H_ */ diff --git a/examples/projects/native/button/platformio.ini b/examples/projects/native/button/platformio.ini new file mode 100644 index 000000000..d9c6597fc --- /dev/null +++ b/examples/projects/native/button/platformio.ini @@ -0,0 +1,25 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html +[platformio] +default_envs = native + +[env:native] +lib_ldf_mode =off +lib_extra_dirs = ../../../../../ +platform = native +lib_deps = + luos_engine@^2.5.3 + Button +build_unflags = -Os +build_flags = + -I inc + -include node_config.h + -O1 + -DLUOSHAL=NATIVE diff --git a/examples/projects/native/button/src/main.c b/examples/projects/native/button/src/main.c new file mode 100644 index 000000000..f2e414f5a --- /dev/null +++ b/examples/projects/native/button/src/main.c @@ -0,0 +1,13 @@ +#include "luos_engine.h" +#include "button.h" + +int main(void) +{ + Luos_Init(); + Button_Init(); + while (1) + { + Luos_Loop(); + Button_Loop(); + } +} \ No newline at end of file diff --git a/network/robus/HAL/NATIVE/robus_hal.c b/network/robus/HAL/NATIVE/robus_hal.c new file mode 100644 index 000000000..11747b66b --- /dev/null +++ b/network/robus/HAL/NATIVE/robus_hal.c @@ -0,0 +1,244 @@ +/****************************************************************************** + * @file robusHAL + * @brief Robus Hardware Abstration Layer. Describe Low layer fonction + * @Family x86/Linux/Mac + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#include "robus_hal.h" + +#include +#include +#include +#include + +#include "reception.h" +#include "context.h" + +/******************************************************************************* + * Definitions + ******************************************************************************/ +#define DEFAULT_TIMEOUT 20 +#define TIMEOUT_ACK DEFAULT_TIMEOUT / 4 + +/******************************************************************************* + * Variables + ******************************************************************************/ +typedef struct +{ + uint16_t Pin; + uint8_t *Port; // STUB + uint8_t IRQ; +} Port_t; + +Port_t PTP[NBR_PORT]; + +volatile uint8_t *tx_data = 0; + +/******************************************************************************* + * Function + ******************************************************************************/ +static void RobusHAL_CRCInit(void); +static void RobusHAL_TimeoutInit(void); +static void RobusHAL_GPIOInit(void); +static void RobusHAL_RegisterPTP(void); + +/////////////////////////Luos Library Needed function/////////////////////////// + +/****************************************************************************** + * @brief Luos HAL general initialisation + * @param None + * @return None + ******************************************************************************/ +void RobusHAL_Init(void) +{ + // IO Initialization + RobusHAL_GPIOInit(); + + // CRC Initialization + RobusHAL_CRCInit(); + + // Com Initialization + RobusHAL_ComInit(DEFAULTBAUDRATE); +} + +/****************************************************************************** + * @brief Luos HAL Initialize Generale communication inter node + * @param Select a baudrate for the Com + * @return none + ******************************************************************************/ +void RobusHAL_ComInit(uint32_t Baudrate) +{ +} + +/****************************************************************************** + * @brief Tx enable/disable relative to com + * @param None + * @return None + ******************************************************************************/ +void RobusHAL_SetTxState(uint8_t Enable) +{ +} + +/****************************************************************************** + * @brief Rx enable/disable relative to com + * @param + * @return + ******************************************************************************/ +void RobusHAL_SetRxState(uint8_t Enable) +{ +} + +/****************************************************************************** + * @brief Process data transmit + * @param None + * @return None + ******************************************************************************/ +void RobusHAL_ComTransmit(uint8_t *data, uint16_t size) +{ +} + +/****************************************************************************** + * @brief set state of Txlock detection pin + * @param None + * @return Lock status + ******************************************************************************/ +void RobusHAL_SetRxDetecPin(uint8_t Enable) +{ +} + +/****************************************************************************** + * @brief get Lock Com transmit status this is the HW that can generate lock TX + * @param None + * @return Lock status + ******************************************************************************/ +uint8_t RobusHAL_GetTxLockState(void) +{ + return 0; +} + +/****************************************************************************** + * @brief Luos Timeout initialisation + * @param None + * @return None + ******************************************************************************/ +static void RobusHAL_TimeoutInit(void) +{ +} + +/****************************************************************************** + * @brief Luos Timeout communication + * @param None + * @return None + ******************************************************************************/ +void RobusHAL_ResetTimeout(uint16_t nbrbit) +{ +} + +/****************************************************************************** + * @brief Initialisation GPIO + * @param None + * @return None + ******************************************************************************/ +static void RobusHAL_GPIOInit(void) +{ +} + +/****************************************************************************** + * @brief Register PTP + * @param void + * @return None + ******************************************************************************/ +static void RobusHAL_RegisterPTP(void) +{ +#if (NBR_PORT >= 1) + PTP[0].Pin = PTPA_PIN; + PTP[0].Port = PTPA_PORT; + PTP[0].IRQ = PTPA_IRQ; +#endif + +#if (NBR_PORT >= 2) + PTP[1].Pin = PTPB_PIN; + PTP[1].Port = PTPB_PORT; + PTP[1].IRQ = PTPB_IRQ; +#endif + +#if (NBR_PORT >= 3) + PTP[2].Pin = PTPC_PIN; + PTP[2].Port = PTPC_PORT; + PTP[2].IRQ = PTPC_IRQ; +#endif + +#if (NBR_PORT >= 4) + PTP[3].Pin = PTPD_PIN; + PTP[3].Port = PTPD_PORT; + PTP[3].IRQ = PTPD_IRQ; +#endif +} + +/****************************************************************************** + * @brief Set PTP for Detection on branch + * @param PTP branch + * @return None + ******************************************************************************/ +void RobusHAL_SetPTPDefaultState(uint8_t PTPNbr) +{ +} + +/****************************************************************************** + * @brief Set PTP for reverse detection on branch + * @param PTP branch + * @return None + ******************************************************************************/ +void RobusHAL_SetPTPReverseState(uint8_t PTPNbr) +{ +} + +/****************************************************************************** + * @brief Set PTP line + * @param PTP branch + * @return None + ******************************************************************************/ +void RobusHAL_PushPTP(uint8_t PTPNbr) +{ +} + +/****************************************************************************** + * @brief Get PTP line + * @param PTP branch + * @return Line state + ******************************************************************************/ +uint8_t RobusHAL_GetPTPState(uint8_t PTPNbr) +{ + return 0; +} + +/****************************************************************************** + * @brief Initialize CRC Process + * @param None + * @return None + ******************************************************************************/ +static void RobusHAL_CRCInit(void) +{ +} + +/****************************************************************************** + * @brief Compute CRC + * @param None + * @return None + ******************************************************************************/ +void RobusHAL_ComputeCRC(uint8_t *data, uint8_t *crc) +{ + for (uint8_t i = 0; i < 1; ++i) + { + uint16_t dbyte = data[i]; + *(uint16_t *)crc ^= dbyte << 8; + for (uint8_t j = 0; j < 8; ++j) + { + uint16_t mix = *(uint16_t *)crc & 0x8000; + *(uint16_t *)crc = (*(uint16_t *)crc << 1); + if (mix) + *(uint16_t *)crc = *(uint16_t *)crc ^ 0x0007; + } + } +} diff --git a/network/robus/HAL/NATIVE/robus_hal.h b/network/robus/HAL/NATIVE/robus_hal.h new file mode 100644 index 000000000..c6645618d --- /dev/null +++ b/network/robus/HAL/NATIVE/robus_hal.h @@ -0,0 +1,43 @@ +/****************************************************************************** + * @file robusHAL + * @brief Robus Hardware Abstration Layer. Describe Low layer fonction + * @Family x86/Linux/Mac + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _ROBUSHAL_H_ +#define _ROBUSHAL_H_ + +#include +#include "robus_hal_config.h" + +/******************************************************************************* + * Definitions + ******************************************************************************/ +#define LUOS_UUID ((uint32_t *)0x00000001) + +#define ADDRESS_ALIASES_FLASH ADDRESS_LAST_PAGE_FLASH +#define ADDRESS_BOOT_FLAG_FLASH (ADDRESS_LAST_PAGE_FLASH + PAGE_SIZE) - 4 + +/******************************************************************************* + * Variables + ******************************************************************************/ + +/******************************************************************************* + * Function + ******************************************************************************/ +void RobusHAL_Init(void); +void RobusHAL_ComInit(uint32_t Baudrate); +void RobusHAL_SetTxState(uint8_t Enable); +void RobusHAL_SetRxState(uint8_t Enable); +void RobusHAL_ComTransmit(uint8_t *data, uint16_t size); +uint8_t RobusHAL_GetTxLockState(void); +void RobusHAL_SetRxDetecPin(uint8_t Enable); +void RobusHAL_ResetTimeout(uint16_t nbrbit); +void RobusHAL_SetPTPDefaultState(uint8_t PTPNbr); +void RobusHAL_SetPTPReverseState(uint8_t PTPNbr); +void RobusHAL_PushPTP(uint8_t PTPNbr); +uint8_t RobusHAL_GetPTPState(uint8_t PTPNbr); +void RobusHAL_ComputeCRC(uint8_t *data, uint8_t *crc); + +#endif /* _ROBUSHAL_H_ */ diff --git a/network/robus/HAL/NATIVE/robus_hal_config.h b/network/robus/HAL/NATIVE/robus_hal_config.h new file mode 100644 index 000000000..e8470044d --- /dev/null +++ b/network/robus/HAL/NATIVE/robus_hal_config.h @@ -0,0 +1,154 @@ +/****************************************************************************** + * @file robusHAL_Config + * @brief This file allow you to configure RobusHAL according to your design + * this is the default configuration created by Luos team for this MCU Family + * Do not modify this file if you want to ovewrite change define in you project + * @Family x86 + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _ROBUSHAL_CONFIG_H_ +#define _ROBUSHAL_CONFIG_H_ + +// STUB Value for x86 stub only +#define X86_STUB 0x00 + +#define DISABLE 0x00 + +// If your MCU do not Have DMA for tx transmit define USE_TX_IT +#define USE_TX_IT + +// If your MCU have CRC polynome 16 #define USE_CRC_HW 1 else #define USE_CRC_HW 0 +#ifndef USE_CRC_HW +#define USE_CRC_HW 0 +#endif + +#ifndef TIMERDIV +#define TIMERDIV 1 // clock divider for timer clock chosen +#endif +/******************************************************************************* + * PINOUT CONFIG + ******************************************************************************/ +#ifndef PORT_CLOCK_ENABLE +#define PORT_CLOCK_ENABLE() X86_STUB +#endif + +// PTP pin definition +#ifndef PTPA_PIN +#define PTPA_PIN X86_STUB +#endif +#ifndef PTPA_PORT +#define PTPA_PORT X86_STUB +#endif +#ifndef PTPA_IRQ +#define PTPA_IRQ X86_STUB +#endif + +#ifndef PTPB_PIN +#define PTPB_PIN X86_STUB +#endif +#ifndef PTPB_PORT +#define PTPB_PORT X86_STUB +#endif +#ifndef PTPB_IRQ +#define PTPB_IRQ X86_STUB +#endif + +// COM pin definition +#ifndef TX_LOCK_DETECT_PIN +#define TX_LOCK_DETECT_PIN DISABLE +#endif +#ifndef TX_LOCK_DETECT_PORT +#define TX_LOCK_DETECT_PORT DISABLE +#endif +#ifndef TX_LOCK_DETECT_IRQ +#define TX_LOCK_DETECT_IRQ DISABLE +#endif + +#ifndef RX_EN_PIN +#define RX_EN_PIN X86_STUB +#endif +#ifndef RX_EN_PORT +#define RX_EN_PORT X86_STUB +#endif + +#ifndef TX_EN_PIN +#define TX_EN_PIN X86_STUB +#endif +#ifndef TX_EN_PORT +#define TX_EN_PORT X86_STUB +#endif + +#ifndef COM_TX_PIN +#define COM_TX_PIN X86_STUB +#endif +#ifndef COM_TX_PORT +#define COM_TX_PORT X86_STUB +#endif +#ifndef COM_TX_AF +#define COM_TX_AF X86_STUB +#endif + +#ifndef COM_RX_PIN +#define COM_RX_PIN X86_STUB +#endif +#ifndef COM_RX_PORT +#define COM_RX_PORT X86_STUB +#endif +#ifndef COM_RX_AF +#define COM_RX_AF X86_STUB +#endif + +#ifndef PINOUT_IRQHANDLER +//#define PINOUT_IRQHANDLER(PIN) +#endif + +/******************************************************************************* + * COM CONFIG + ******************************************************************************/ +#ifndef LUOS_COM_CLOCK_ENABLE +#define LUOS_COM_CLOCK_ENABLE() X86_STUB +#endif +#ifndef LUOS_COM +#define LUOS_COM X86_STUB // STUB +#endif +#ifndef LUOS_COM_IRQ +#define LUOS_COM_IRQ X86_STUB // STUB +#endif +#ifndef LUOS_COM_IRQHANDLER +#define LUOS_COM_IRQHANDLER() // STUB +#endif + +/******************************************************************************* + * DMA CONFIG + ******************************************************************************/ +#ifndef LUOS_DMA_CLOCK_ENABLE +#define LUOS_DMA_CLOCK_ENABLE() X86_STUB +#endif +#ifndef LUOS_DMA +#define LUOS_DMA X86_STUB // STUB +#endif +#ifndef LUOS_DMA_CHANNEL +#define LUOS_DMA_CHANNEL X86_STUB // STUB +#endif +#ifndef LUOS_DMA_REMAP +#define LUOS_DMA_REMAP X86_STUB // STUB +#endif + +/******************************************************************************* + * COM TIMEOUT CONFIG + ******************************************************************************/ +#ifndef LUOS_TIMER_CLOCK_ENABLE +#define LUOS_TIMER_LOCK_ENABLE() // STUB +#endif +#ifndef LUOS_TIMER +#define LUOS_TIMER X86_STUB // STUB +#endif +#ifndef LUOS_TIMER_IRQ +#define LUOS_TIMER_IRQ X86_STUB // STUB +#endif +#ifndef LUOS_TIMER_IRQHANDLER +#define LUOS_TIMER_IRQHANDLER() x86_Timer_IRQHandler() +#endif + +#endif /* _ROBUSHAL_CONFIG_H_ */ From 4a7fbf23b136607f5369dab0a5fd05e822a6318d Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Thu, 20 Oct 2022 17:47:36 +0200 Subject: [PATCH 09/36] Adapt telemetry to work with native configuration --- source_filter_script.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source_filter_script.py b/source_filter_script.py index 8a14ee688..1cf962c83 100644 --- a/source_filter_script.py +++ b/source_filter_script.py @@ -16,10 +16,13 @@ "system": sys.platform, "unix_time": env.get("UNIX_TIME"), "platform": env.get("PIOPLATFORM"), - "mcu": env.get("BOARD_MCU"), - "f_cpu": env.get("BOARD_F_CPU"), "project_path": env.get("PROJECT_DIR")} +if (env.get("BOARD_MCU") != None): + luos_telemetry["mcu"] = env.get("BOARD_MCU") +if (env.get("BOARD_F_CPU") != None): + luos_telemetry["f_cpu"] = env.get("BOARD_F_CPU") + try: luos_telemetry["framework"] = env.get("PIOFRAMEWORK")[0] except: From bdba6357b4f4e3f572d8f9ee8cc33b4bf17cdd3f Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Mon, 18 Jul 2022 18:27:38 +0200 Subject: [PATCH 10/36] [Pipe] Add an optional hal_script.py call --- source_filter_script.py | 2 +- tool_services/pipe/select_hal_script.py | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/source_filter_script.py b/source_filter_script.py index 1cf962c83..9a356487e 100644 --- a/source_filter_script.py +++ b/source_filter_script.py @@ -63,7 +63,7 @@ # private library flags find_HAL = False for item in env.get("CPPDEFINES", []): - if isinstance(item, tuple) and item[0] == "LUOSHAL": + if (isinstance(item, tuple) and item[0] == "LUOSHAL") and (find_HAL == False): find_HAL = True if (path.exists("network/robus/HAL/" + item[1]) and path.exists("engine/HAL/" + item[1])): if not visited_key in global_env: diff --git a/tool_services/pipe/select_hal_script.py b/tool_services/pipe/select_hal_script.py index 93e39cf69..e199c13db 100644 --- a/tool_services/pipe/select_hal_script.py +++ b/tool_services/pipe/select_hal_script.py @@ -1,4 +1,6 @@ +#!/usr/bin/python from os import path +import sys import click from os.path import join, realpath Import('env') @@ -18,15 +20,21 @@ for itemhal in env.get("CPPDEFINES", []): if isinstance(itemhal, tuple) and itemhal[0] == "PIPEHAL": find_HAL = True + env.Append(CPPPATH=[realpath(item[1] + "/" + itemhal[1])]) + env.Replace( + SRC_FILTER=["+<*.c>, +<%s/%s/*.c>, +<%s/%s/*.cpp>" % (item[1], itemhal[1], item[1], itemhal[1])]) if (path.exists(item[1] + "/" + itemhal[1])): click.secho( "\t* %s HAL selected." % itemhal[1], fg="green") + if (path.exists(item[1] + "/" + itemhal[1] + "/hal_script.py")): + # This is an extra script dedicated to this HAL, run it + hal_script_path = realpath( + item[1] + "/" + itemhal[1] + "/hal_script.py") + env.SConscript(hal_script_path, exports="env") + else: click.secho("\t* %s HAL not found." % item[1], fg="red") - env.Append(CPPPATH=[realpath(item[1] + "/" + itemhal[1])]) - env.Replace( - SRC_FILTER=["+<*.c>, +<%s/%s>" % (item[1], itemhal[1])]) break if find_HAL == False: click.secho( From d9d9800396506df1c1bffd155a93095c62f35df3 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Wed, 20 Jul 2022 18:07:18 +0200 Subject: [PATCH 11/36] [Pipe] Add WS native --- .gitignore | 31 ++--- tool_services/pipe/WS/native/hal_script.py | 19 +++ tool_services/pipe/WS/native/pipe_com.c | 135 +++++++++++++++++++++ tool_services/pipe/WS/native/pipe_com.h | 20 +++ tool_services/pipe/library.json | 2 +- 5 files changed, 191 insertions(+), 16 deletions(-) create mode 100644 tool_services/pipe/WS/native/hal_script.py create mode 100644 tool_services/pipe/WS/native/pipe_com.c create mode 100644 tool_services/pipe/WS/native/pipe_com.h diff --git a/.gitignore b/.gitignore index f020b3d09..547b43784 100644 --- a/.gitignore +++ b/.gitignore @@ -16,18 +16,19 @@ **/.gitignore *.out *.log -/Examples/Projects/NUCLEO-G431KB/Button/.mxproject -/Examples/Projects/NUCLEO-G431KB/Button/Button.gpdsc -/Examples/Projects/NUCLEO-L432KC/Button/Button.gpdsc -/Examples/Projects/NUCLEO-L432KC/Button/.mxproject -/Examples/Projects/NUCLEO-L432KC/Gate/.mxproject -/Examples/Projects/NUCLEO-L432KC/Gate/Gate.gpdsc -/Examples/Projects/NUCLEO-L432KC/Led/Led.gpdsc -/Examples/Projects/NUCLEO-L432KC/Led/.mxproject -/Examples/Projects/STM32F4-discovery/Button/.mxproject -/Examples/Projects/STM32F4-discovery/Button/Button.gpdsc -/Examples/Projects/STM32F4-discovery/Gate/.mxproject -/Examples/Projects/STM32F4-discovery/Gate/Gate.gpdsc -/Examples/Projects/SAMD21XPLAINED/Bootloader/firmware/luos_bootloader_samd21j18a.X/build/ -/Examples/Projects/SAMD21XPLAINED/Bootloader/firmware/luos_bootloader_samd21j18a.X/.generated_files/ -/Examples/Projects/SAMD21XPLAINED/Bootloader/firmware/luos_bootloader_samd21j18a.X/dist/ \ No newline at end of file +/examples/projects/NUCLEO-G431KB/button/.mxproject +/examples/projects/NUCLEO-G431KB/button/Button.gpdsc +/examples/projects/NUCLEO-L432KC/button/Button.gpdsc +/examples/projects/NUCLEO-L432KC/button/.mxproject +/examples/projects/NUCLEO-L432KC/gate/.mxproject +/examples/projects/NUCLEO-L432KC/gate/Gate.gpdsc +/examples/projects/NUCLEO-L432KC/led/Led.gpdsc +/examples/projects/NUCLEO-L432KC/led/.mxproject +/examples/projects/STM32F4-discovery/Button/.mxproject +/examples/projects/STM32F4-discovery/Button/Button.gpdsc +/examples/projects/STM32F4-discovery/gate/.mxproject +/examples/projects/STM32F4-discovery/gate/Gate.gpdsc +/examples/projects/SAMD21XPLAINED/bootloader/firmware/luos_bootloader_samd21j18a.X/build/ +/examples/projects/SAMD21XPLAINED/bootloader/firmware/luos_bootloader_samd21j18a.X/.generated_files/ +/examples/projects/SAMD21XPLAINED/bootloader/firmware/luos_bootloader_samd21j18a.X/dist/ +/tool_services/pipe/WS/native/mongoose \ No newline at end of file diff --git a/tool_services/pipe/WS/native/hal_script.py b/tool_services/pipe/WS/native/hal_script.py new file mode 100644 index 000000000..5daafe7a5 --- /dev/null +++ b/tool_services/pipe/WS/native/hal_script.py @@ -0,0 +1,19 @@ +#!/usr/bin/python +import os +from os import path +from os.path import realpath +import click +Import("env") + + +if (not path.exists("mongoose")): + env.Execute( + "git clone --depth 1 --branch 7.8 https://github.com/cesanta/mongoose.git") + +env.Append(CPPPATH=[realpath("mongoose/")]) +env.Append(SRC_FILTER=["+"]) +env.Append(CPPDEFINES=["MG_ENABLE_LINES=1"]) +if os.name == 'nt': + env.Append(CPPDEFINES=["_POSIX_C_SOURCE=200000L"]) + env.Append(LIBS=["ws2_32"]) +click.secho("\t* mongoose 7.8 lib ready.", fg="green") diff --git a/tool_services/pipe/WS/native/pipe_com.c b/tool_services/pipe/WS/native/pipe_com.c new file mode 100644 index 000000000..8dcf069b7 --- /dev/null +++ b/tool_services/pipe/WS/native/pipe_com.c @@ -0,0 +1,135 @@ +/****************************************************************************** + * @file pipe_com + * @brief communication driver + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#include +#include "pipe_com.h" +#include "luos_utils.h" +#include + +/******************************************************************************* + * Definitions + ******************************************************************************/ + +/******************************************************************************* + * Variables + ******************************************************************************/ +static const char *s_listen_on = "ws://localhost:9342"; +static struct mg_mgr mgr; // Event manager +static struct mg_connection *ws_connection = NULL; // Websocket connection +/******************************************************************************* + * Function + ******************************************************************************/ + +/****************************************************************************** + * @brief This RESTful server implements the following endpoints: + * /ws - upgrade to Websocket, and implement websocket server + * @param mg_connection* c connection pointer + * @param int ev event type + * @param void* ev_data event data + * @param void* fn_data function data + * @return None + ******************************************************************************/ +static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) +{ + if (ev == MG_EV_WS_OPEN) + { + printf("Websocket connection opened\n"); + } + else if (ev == MG_EV_HTTP_MSG) + { + struct mg_http_message *hm = (struct mg_http_message *)ev_data; + if (mg_http_match_uri(hm, "/ws")) + { + // Upgrade to websocket. From now on, a connection is a full-duplex + // Websocket connection, which will receive MG_EV_WS_MSG events. + mg_ws_upgrade(c, hm, NULL); + ws_connection = c; + } + else + { + // Serve static files + printf("Unmanaged request receive\n"); + } + } + else if (ev == MG_EV_WS_MSG) + { + // Got websocket frame. Received data is wm->data. save it into the Pipe streaming channel + struct mg_ws_message *wm = (struct mg_ws_message *)ev_data; + Stream_PutSample(Pipe_GetRxStreamChannel(), wm->data.ptr, wm->data.len); + } + (void)fn_data; +} + +/****************************************************************************** + * @brief init must be call in project init + * @param None + * @return None + ******************************************************************************/ +void PipeCom_Init(void) +{ + static bool first_init = true; + if (first_init) + { + first_init = false; + mg_mgr_init(&mgr); // Initialise event manager + printf("Starting WS listener on %s/ws\n", s_listen_on); + mg_http_listen(&mgr, s_listen_on, fn, NULL); // Create HTTP listener + } +} + +/****************************************************************************** + * @brief compute the size we can send + * @param None + * @return uint16_t size + ******************************************************************************/ +uint16_t PipeCom_GetSizeToSend(void) +{ + if ((Stream_GetAvailableSampleNB(Pipe_GetTxStreamChannel())) > Stream_GetAvailableSampleNBUntilEndBuffer(Pipe_GetTxStreamChannel())) + { + return Stream_GetAvailableSampleNBUntilEndBuffer(Pipe_GetTxStreamChannel()); + } + return Stream_GetAvailableSampleNB(Pipe_GetTxStreamChannel()); +} + +/****************************************************************************** + * @brief We need to send something + * @param None + * @return None + ******************************************************************************/ +void PipeCom_Send(void) +{ + if (ws_connection != NULL) + { + uint16_t size = PipeCom_GetSizeToSend(); + while (size != 0) + { + mg_ws_send(ws_connection, (const char *)Pipe_GetTxStreamChannel()->sample_ptr, size, WEBSOCKET_OP_BINARY); + Stream_RmvAvailableSampleNB(Pipe_GetTxStreamChannel(), size); + size = PipeCom_GetSizeToSend(); + } + } +} + +/****************************************************************************** + * @brief Check if a message is available + * @param None + * @return None + ******************************************************************************/ +uint8_t PipeCom_Receive(uint16_t *size) +{ + *size = Stream_GetAvailableSampleNB(Pipe_GetRxStreamChannel()); + return (*size > 0); +} + +/****************************************************************************** + * @brief loop must be call in project loop + * @param None + * @return None + ******************************************************************************/ +void PipeCom_Loop(void) +{ + mg_mgr_poll(&mgr, 1000); // Infinite event loop +} diff --git a/tool_services/pipe/WS/native/pipe_com.h b/tool_services/pipe/WS/native/pipe_com.h new file mode 100644 index 000000000..b5a55d246 --- /dev/null +++ b/tool_services/pipe/WS/native/pipe_com.h @@ -0,0 +1,20 @@ +/****************************************************************************** + * @file pipe_com + * @brief communication driver + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef PIPE_COM_H +#define PIPE_COM_H + +#include "_pipe.h" + +/******************************************************************************* + * Function + ******************************************************************************/ +void PipeCom_Init(void); +void PipeCom_Loop(void); +uint8_t PipeCom_Receive(uint16_t *size); +void PipeCom_Send(void); + +#endif /* PIPE_H */ diff --git a/tool_services/pipe/library.json b/tool_services/pipe/library.json index ef3edfc5c..f25936fcb 100644 --- a/tool_services/pipe/library.json +++ b/tool_services/pipe/library.json @@ -20,4 +20,4 @@ "type": "git", "url": "https://github.com/Luos-io/luos_engine" } -} \ No newline at end of file +} From b236b731f29fdabc892918b2d8a3fe2ca0f648ec Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Fri, 22 Jul 2022 17:21:19 +0200 Subject: [PATCH 12/36] Fake message send trough native HAL --- network/robus/HAL/NATIVE/robus_hal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/robus/HAL/NATIVE/robus_hal.c b/network/robus/HAL/NATIVE/robus_hal.c index 11747b66b..259222465 100644 --- a/network/robus/HAL/NATIVE/robus_hal.c +++ b/network/robus/HAL/NATIVE/robus_hal.c @@ -96,6 +96,8 @@ void RobusHAL_SetRxState(uint8_t Enable) ******************************************************************************/ void RobusHAL_ComTransmit(uint8_t *data, uint16_t size) { + // We consider this information sent + Recep_Timeout(); } /****************************************************************************** From 6bb0c98dfa389af644bd6b082e6f2edd2f4aaf4a Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Mon, 22 Aug 2022 12:05:09 +0200 Subject: [PATCH 13/36] Add a Native gate_wscom example --- examples/projects/native/gate_wscom/README.md | 36 ++++++ .../projects/native/gate_wscom/node_config.h | 122 ++++++++++++++++++ .../projects/native/gate_wscom/platformio.ini | 31 +++++ .../projects/native/gate_wscom/src/main.c | 16 +++ 4 files changed, 205 insertions(+) create mode 100644 examples/projects/native/gate_wscom/README.md create mode 100644 examples/projects/native/gate_wscom/node_config.h create mode 100644 examples/projects/native/gate_wscom/platformio.ini create mode 100644 examples/projects/native/gate_wscom/src/main.c diff --git a/examples/projects/native/gate_wscom/README.md b/examples/projects/native/gate_wscom/README.md new file mode 100644 index 000000000..ae24a9447 --- /dev/null +++ b/examples/projects/native/gate_wscom/README.md @@ -0,0 +1,36 @@ +Luos logo + +![](https://github.com/Luos-io/luos_engine/actions/workflows/build.yml/badge.svg) +[![](https://img.shields.io/github/license/Luos-io/Luos)](https://github.com/Luos-io/luos_engine/blob/master/LICENSE) + +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](http://certified.luos.io)](https://luos.io) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos_engine/library/Luos.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) + +[![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) +[![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) +[![](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Unleash%20electronic%20devices%20as%20microservices%20thanks%20to%20Luos&https://luos.io&via=Luos_io&hashtags=embeddedsystems,electronics,microservices,api) +[![](https://img.shields.io/badge/LinkedIn-Share-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fluos-io) + + + +# Button project example :bulb: +This project demonstrate how to make and use a simple button through Luos. Feel free to use electronics and code example as you want. + +## How to compile the code :computer: + + 1. Download and install [Platformio](https://platformio.org/platformio-ide) + 2. Open this folder into Platformio + 3. Build (Platformio will do the rest) + +## How to open the electronic design :electric_plug: +You can open [a working example electronic design](https://github.com/Luos-io/luos_engine/tree/main/examples/hardware) with Kicad. This design use Luos_components library for more information to install and use it read [our doc](https://docs.luos.io). + +## Linked driver +This project is linked to the [Button driver](../../Drivers/button). + +## Don't hesitate to read [our documentation](https://docs.luos.io), or to post your questions/issues on the [Luos' Forum](https://community.luos.io). :books: + +[![](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.luos.io&logo=Discourse)](https://community.luos.io) +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](https://img.shields.io/badge/LinkedIn-Follow%20us-0077B5?style=flat&logo=linkedin)](https://www.linkedin.com/company/luos) diff --git a/examples/projects/native/gate_wscom/node_config.h b/examples/projects/native/gate_wscom/node_config.h new file mode 100644 index 000000000..e394a7bf6 --- /dev/null +++ b/examples/projects/native/gate_wscom/node_config.h @@ -0,0 +1,122 @@ +/****************************************************************************** + * @file node_config.h + * @brief This file allow you to use standard preprocessor definitions to + * configure your project, Luos and Luos HAL libraries + * + * # Introduction + * This file is for the luos user. You may here configure your project and + * define your custom Luos service and custom Luos command for your product + * + * Luos libraries offer a minimal standard configuration to optimize + * memory usage. In some case you have to modify standard value to fit + * with your need concerning among of data transiting through the network + * or network speed for example + * + * Luos libraries can be use with a lot a MCU family. Luos compagny give you + * a default configuration, for specific MCU family, in robus_hal_config.h. + * This configuration can be modify here to fit with you design by + * preprocessor definitions of MCU Hardware needs + * + * # Usage + * This file should be place a the root folder of your project and include + * where build flag preprocessor definitions are define in your IDE + * -include node_config.h + * + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _NODE_CONFIG_H_ +#define _NODE_CONFIG_H_ + +/******************************************************************************* + * PROJECT DEFINITION + *******************************************************************************/ + +/******************************************************************************* + * LUOS LIBRARY DEFINITION + ******************************************************************************* + * Define | Default Value | Description + * :---------------------|------------------------------------------------------ + * MAX_SERVICE_NUMBER | 5 | Service number in the node + * MSG_BUFFER_SIZE | 3*SIZE_MSG_MAX (405 Bytes) | Size in byte of the Luos buffer TX and RX + * MAX_MSG_NB | 2*MAX_SERVICE_NUMBER | Message number in Luos buffer + * NBR_PORT | 2 | PTP Branch number Max 8 + * NBR_RETRY | 10 | Send Retry number in case of NACK or collision + ******************************************************************************/ +#define MAX_SERVICE_NUMBER 2 +#define MAX_PROFILE_NUMBER 1 +#define MAX_MSG_NB 5 +#define INIT_TIME 150 + +/******************************************************************************* + * LUOS HAL LIBRARY DEFINITION +******************************************************************************* + * Define | Description + * :-----------------------|----------------------------------------------- + * MCUFREQ | Put your the MCU frequency (value in Hz) + * TIMERDIV | Timer divider clock (see your clock configuration) + * USE_CRC_HW | define to 0 if there is no Module CRC in your MCU + * USE_TX_IT | define to 1 to not use DMA transfers for Luos Tx + * + * PORT_CLOCK_ENABLE | Enable clock for port + * PTPx | A,B,C,D etc. PTP Branch Pin/Port/IRQ + * TX_LOCK_DETECT | Disable by default use if not busy flag in USART Pin/Port/IRQ + * RX_EN | Rx enable for driver RS485 always on Pin/Port + * TX_EN | Tx enable for driver RS485 Pin/Port + * COM_TX | Tx USART Com Pin/Port/Alternate + * COM_RX | Rx USART Com Pin/Port/Alternate + * PINOUT_IRQHANDLER | Callback function for Pin IRQ handler + + * LUOS_COM_CLOCK_ENABLE | Enable clock for USART + * LUOS_COM | USART number + * LUOS_COM_IRQ | USART IRQ number + * LUOS_COM_IRQHANDLER | Callback function for USART IRQ handler + + * LUOS_DMA_CLOCK_ENABLE | Enable clock for DMA + * LUOS_DMA | DMA number + * LUOS_DMA_CHANNEL | DMA channel (depending on MCU DMA may need special config) + + * LUOS_TIMER_CLOCK_ENABLE | Enable clock for Timer + * LUOS_TIMER | Timer number + * LUOS_TIMER_IRQ | Timer IRQ number + * LUOS_TIMER_IRQHANDLER | Callback function for Timer IRQ handler +******************************************************************************/ + +/******************************************************************************* + * FLASH CONFIGURATION FOR APP WITH BOOTLOADER + ******************************************************************************** + * Define | Default Value | Description + * :---------------------|------------------------------------------------------ + * BOOT_START_ADDRESS | FLASH_BASE = 0x8000000 | Start address of Bootloader in flash + * SHARED_MEMORY_ADDRESS | 0x0800C000 | Start address of shared memory to save boot flag + * APP_START_ADDRESS | 0x0800C800 | Start address of application with bootloader + * APP_END_ADDRESS | FLASH_BANK1_END=0x0801FFFF | End address of application with bootloader + ******************************************************************************/ + +/******************************************************************************* + * GATE SERIAL COM DEFINITION + ******************************************************************************* + * Define | Default Value | Description + * :-------------------------|------------------------------------------------------ + * MAX_RTB_ENTRY | 40 | max number entry in routing table + * GATE_BUFF_SIZE | 1024 | Json receive buffer size + * PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size + * LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size + * INIT_TIME | 150 | Wait init time before first detection + ******************************************************************************/ +#define MAX_RTB_ENTRY 40 +#define GATE_BUFF_SIZE 1024 +#define PIPE_RX_BUFFER_SIZE 1024 +#define PIPE_TX_BUFFER_SIZE 2048 + +/******************************************************************************* + * OTHER GATE PARAMETERS + ******************************************************************************* + * Define | Default Value | Description + * :-------------------------|------------------------------------------------------ + * INIT_TIME | 150 | Wait init time before first detection + * ******************************************************************************/ + +#define INIT_TIME 150 + +#endif /* _NODE_CONFIG_H_ */ diff --git a/examples/projects/native/gate_wscom/platformio.ini b/examples/projects/native/gate_wscom/platformio.ini new file mode 100644 index 000000000..646af736d --- /dev/null +++ b/examples/projects/native/gate_wscom/platformio.ini @@ -0,0 +1,31 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html +[platformio] +default_envs = native + +[env:native] +lib_ldf_mode =off +lib_extra_dirs = + $PROJECT_DIR/../../../../tool_services/ + $PROJECT_DIR/../../../../../ +platform = native +lib_deps = + luos_engine@^2.5.3 + Pipe + Gate +build_unflags = -Os +build_flags = + -I inc + -include node_config.h + -O1 + -D LUOSHAL=NATIVE + -D GATEFORMAT=TinyJSON + -D PIPEMODE=WS + -D PIPEHAL=native diff --git a/examples/projects/native/gate_wscom/src/main.c b/examples/projects/native/gate_wscom/src/main.c new file mode 100644 index 000000000..5c91358ca --- /dev/null +++ b/examples/projects/native/gate_wscom/src/main.c @@ -0,0 +1,16 @@ +#include "luos_engine.h" +#include "pipe.h" +#include "gate.h" + +int main(void) +{ + Luos_Init(); + Pipe_Init(); + Gate_Init(); + while (1) + { + Luos_Loop(); + Pipe_Loop(); + Gate_Loop(); + } +} \ No newline at end of file From 5a636a896c265819139fe325e450908d119a1650 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Mon, 25 Jul 2022 18:04:49 +0200 Subject: [PATCH 14/36] Temporarily add a button on the Gate example to check Pyluos. --- .../native/gate_wscom/lib/Button/README.md | 18 ++++ .../native/gate_wscom/lib/Button/button.c | 95 +++++++++++++++++++ .../native/gate_wscom/lib/Button/button.h | 24 +++++ .../native/gate_wscom/lib/Button/library.json | 14 +++ .../projects/native/gate_wscom/node_config.h | 2 +- .../projects/native/gate_wscom/platformio.ini | 1 + .../projects/native/gate_wscom/src/main.c | 3 + 7 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 examples/projects/native/gate_wscom/lib/Button/README.md create mode 100644 examples/projects/native/gate_wscom/lib/Button/button.c create mode 100644 examples/projects/native/gate_wscom/lib/Button/button.h create mode 100644 examples/projects/native/gate_wscom/lib/Button/library.json diff --git a/examples/projects/native/gate_wscom/lib/Button/README.md b/examples/projects/native/gate_wscom/lib/Button/README.md new file mode 100644 index 000000000..e8a6a722e --- /dev/null +++ b/examples/projects/native/gate_wscom/lib/Button/README.md @@ -0,0 +1,18 @@ +Luos logo + +[![](http://certified.luos.io)](https://luos.io) +[![](https://img.shields.io/github/license/Luos-io/examples)]( +https://github.com/Luos-io/examples/blob/master/LICENSE) + +[![](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Unleash%20electronic%20devices%20as%20microservices%20thanks%20to%20Luos&https://luos.io&via=Luos_io&hashtags=embeddedsystems,electronics,microservices,api) +[![](https://img.shields.io/badge/LinkedIn-Share-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fluos-io) + +# Button driver +Driver for using a push button in your projects with Luos. + +# Linked project +This driver is linked to the [Button project](../../Projects/button). + +[![](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.luos.io&logo=Discourse)](https://community.luos.io) +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](https://img.shields.io/badge/LinkedIn-Follow%20us-0077B5?style=flat&logo=linkedin)](https://www.linkedin.com/company/luos) diff --git a/examples/projects/native/gate_wscom/lib/Button/button.c b/examples/projects/native/gate_wscom/lib/Button/button.c new file mode 100644 index 000000000..18055c13e --- /dev/null +++ b/examples/projects/native/gate_wscom/lib/Button/button.c @@ -0,0 +1,95 @@ +/****************************************************************************** + * @file button + * @brief driver example a simple button + * @author Luos + * @version 0.0.0 + ******************************************************************************/ + +#include +#include +#ifdef _WIN32 + #include +#else + #include +#endif +#include +#include "button.h" +#include "profile_state.h" + +/******************************************************************************* + * Definitions + ******************************************************************************/ + +/******************************************************************************* + * Variables + ******************************************************************************/ +profile_state_t button; + +/******************************************************************************* + * Function + ******************************************************************************/ + +/****************************************************************************** + * @brief init must be call in project init + * @param None + * @return None + ******************************************************************************/ +void Button_Init(void) +{ + // service initialization + revision_t revision = {.major = 1, .minor = 0, .build = 0}; + // Profile configuration + button.access = READ_ONLY_ACCESS; + // Service creation following state profile + ProfileState_CreateService(&button, 0, "button", revision); + // set_fl(STDOUT_FILENO, O_NONBLOCK); + printf("Button serice running.\n\tUse the SPACE button to swap the button state.\n"); +} +#ifndef _WIN32 +int kbhit(void) +{ + struct termios oldt, newt; + int ch; + int oldf; + + tcgetattr(STDIN_FILENO, &oldt); + newt = oldt; + newt.c_lflag &= ~(ICANON | ECHO); + tcsetattr(STDIN_FILENO, TCSANOW, &newt); + oldf = fcntl(STDIN_FILENO, F_GETFL, 0); + fcntl(STDIN_FILENO, F_SETFL, oldf | O_NONBLOCK); + + ch = getchar(); + + tcsetattr(STDIN_FILENO, TCSANOW, &oldt); + fcntl(STDIN_FILENO, F_SETFL, oldf); + + if (ch != EOF) + { + ungetc(ch, stdin); + return 1; + } + + return 0; +} +#endif +/****************************************************************************** + * @brief loop must be call in project loop + * @param None + * @return None + ******************************************************************************/ +void Button_Loop(void) +{ + if (kbhit()) + { + if (getchar() == ' ') + { + printf("\nButton state : "); + button.state = !button.state; + if (button.state) + printf("True"); + else + printf("False"); + } + } +} \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/lib/Button/button.h b/examples/projects/native/gate_wscom/lib/Button/button.h new file mode 100644 index 000000000..0363e6540 --- /dev/null +++ b/examples/projects/native/gate_wscom/lib/Button/button.h @@ -0,0 +1,24 @@ +/****************************************************************************** + * @file button + * @brief driver example a simple button + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef BUTTON_H +#define BUTTON_H + +/******************************************************************************* + * Definitions + ******************************************************************************/ + +/******************************************************************************* + * Variables + ******************************************************************************/ + +/******************************************************************************* + * Function + ******************************************************************************/ +void Button_Init(void); +void Button_Loop(void); + +#endif /* BUTTON_H */ diff --git a/examples/projects/native/gate_wscom/lib/Button/library.json b/examples/projects/native/gate_wscom/lib/Button/library.json new file mode 100644 index 000000000..7d38ee4fb --- /dev/null +++ b/examples/projects/native/gate_wscom/lib/Button/library.json @@ -0,0 +1,14 @@ +{ + "name": "Button", + "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST", + "description": "a simple button driver", + "version": "1.0.0", + "authors": { + "name": "Luos", + "url": "https://luos.io" + }, + "dependencies": { + "luos_engine": "^2.5.3" + }, + "licence": "MIT" +} \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/node_config.h b/examples/projects/native/gate_wscom/node_config.h index e394a7bf6..7de2f466d 100644 --- a/examples/projects/native/gate_wscom/node_config.h +++ b/examples/projects/native/gate_wscom/node_config.h @@ -43,7 +43,7 @@ * NBR_PORT | 2 | PTP Branch number Max 8 * NBR_RETRY | 10 | Send Retry number in case of NACK or collision ******************************************************************************/ -#define MAX_SERVICE_NUMBER 2 +#define MAX_SERVICE_NUMBER 3 #define MAX_PROFILE_NUMBER 1 #define MAX_MSG_NB 5 #define INIT_TIME 150 diff --git a/examples/projects/native/gate_wscom/platformio.ini b/examples/projects/native/gate_wscom/platformio.ini index 646af736d..e164f4502 100644 --- a/examples/projects/native/gate_wscom/platformio.ini +++ b/examples/projects/native/gate_wscom/platformio.ini @@ -20,6 +20,7 @@ lib_deps = luos_engine@^2.5.3 Pipe Gate + Button build_unflags = -Os build_flags = -I inc diff --git a/examples/projects/native/gate_wscom/src/main.c b/examples/projects/native/gate_wscom/src/main.c index 5c91358ca..364fc3405 100644 --- a/examples/projects/native/gate_wscom/src/main.c +++ b/examples/projects/native/gate_wscom/src/main.c @@ -1,15 +1,18 @@ #include "luos_engine.h" +#include "button.h" #include "pipe.h" #include "gate.h" int main(void) { Luos_Init(); + Button_Init(); Pipe_Init(); Gate_Init(); while (1) { Luos_Loop(); + Button_Loop(); Pipe_Loop(); Gate_Loop(); } From 38b6290b72ded6c38e39e9929a724e51aa30b407 Mon Sep 17 00:00:00 2001 From: Benjamin Christau Date: Wed, 27 Jul 2022 17:26:12 +0200 Subject: [PATCH 15/36] Add Dockerfile for native gate_wscom example --- .../native/gate_wscom/.docker/.dockerignore | 4 ++++ .../native/gate_wscom/.docker/Dockerfile | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 examples/projects/native/gate_wscom/.docker/.dockerignore create mode 100644 examples/projects/native/gate_wscom/.docker/Dockerfile diff --git a/examples/projects/native/gate_wscom/.docker/.dockerignore b/examples/projects/native/gate_wscom/.docker/.dockerignore new file mode 100644 index 000000000..55e5d2d0e --- /dev/null +++ b/examples/projects/native/gate_wscom/.docker/.dockerignore @@ -0,0 +1,4 @@ +.pio/ +.vscode/ +.gitignore +README.md \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/.docker/Dockerfile b/examples/projects/native/gate_wscom/.docker/Dockerfile new file mode 100644 index 000000000..a69947544 --- /dev/null +++ b/examples/projects/native/gate_wscom/.docker/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3 as builder + +LABEL maintainer="Benjamin Christau " \ + app_name="gate_wscom" + +ENV PLATFORMIO_CORE_DIR="/home" + +WORKDIR /home/app + +COPY . . + +RUN pip install --upgrade pip setuptools wheel platformio && \ + rm -rf /root/.cache/pip + +RUN platformio run \ + --environment native \ + -d ./examples/projects/native/gate_wscom + +CMD [ "./examples/projects/native/gate_wscom/.pio/build/native/program"] From b2f2a32585ff4a1267c52ab8e39c5a231b097307 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Thu, 11 Aug 2022 15:10:24 +0200 Subject: [PATCH 16/36] Fix native hal _critical definition --- engine/HAL/NATIVE/luos_hal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/HAL/NATIVE/luos_hal.h b/engine/HAL/NATIVE/luos_hal.h index df15b3fcd..847bdbab4 100644 --- a/engine/HAL/NATIVE/luos_hal.h +++ b/engine/HAL/NATIVE/luos_hal.h @@ -14,6 +14,10 @@ /******************************************************************************* * Definitions ******************************************************************************/ +#ifndef _CRITICAL +#define _CRITICAL +#endif + #define LUOS_UUID ((uint32_t *)0x00000001) #define ADDRESS_ALIASES_FLASH ADDRESS_LAST_PAGE_FLASH From 1468668cd457916ac33de017f4515b32a918ab00 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Thu, 11 Aug 2022 15:13:33 +0200 Subject: [PATCH 17/36] Fix project for Native HAL --- examples/projects/native/button/platformio.ini | 2 +- examples/projects/native/gate_wscom/platformio.ini | 2 +- source_filter_script.py | 6 ++---- test/_resources/Mock/Mock_Luos_Assert.c | 7 ++++++- test/_resources/Mock/Mock_Recep_NodeConcerned.c | 2 +- test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c | 4 ++++ 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/examples/projects/native/button/platformio.ini b/examples/projects/native/button/platformio.ini index d9c6597fc..77ba4464d 100644 --- a/examples/projects/native/button/platformio.ini +++ b/examples/projects/native/button/platformio.ini @@ -22,4 +22,4 @@ build_flags = -I inc -include node_config.h -O1 - -DLUOSHAL=NATIVE + -DLUOSHAL=native diff --git a/examples/projects/native/gate_wscom/platformio.ini b/examples/projects/native/gate_wscom/platformio.ini index e164f4502..af3d019f2 100644 --- a/examples/projects/native/gate_wscom/platformio.ini +++ b/examples/projects/native/gate_wscom/platformio.ini @@ -26,7 +26,7 @@ build_flags = -I inc -include node_config.h -O1 - -D LUOSHAL=NATIVE + -D LUOSHAL=native -D GATEFORMAT=TinyJSON -D PIPEMODE=WS -D PIPEHAL=native diff --git a/source_filter_script.py b/source_filter_script.py index 9a356487e..b8a6aa97b 100644 --- a/source_filter_script.py +++ b/source_filter_script.py @@ -100,21 +100,19 @@ "\t* Telemetry disabled, please consider enabling it by removing the 'NOTELEMETRY' flag to help Luos_engine improve.", fg="red") click.secho("") -# native unit testing +# Native only find_MOCK_HAL = False for item in env.ParseFlags(env['BUILD_FLAGS'])["CPPDEFINES"]: if (item == 'UNIT_TEST'): click.secho("Native unit testing:", underline=True) current_os = pf.system() if find_MOCK_HAL == False: - click.secho( - "\t* Mock HAL for %s is selected for Luos and Robus." % current_os, fg="green") + click.secho("\t* Native Mock HAL for %s is selected for Luos and Robus." % current_os, fg="green") find_MOCK_HAL = True find_HAL = True env.Replace(SRC_FILTER=sources) env.Append(SRC_FILTER=["-"]) env.Append(SRC_FILTER=["+<../../../test/_resources/*>"]) - for resources in scandir(getcwd() + "/test/_resources"): if resources.is_dir(): env.Append(CPPPATH=[(resources.path)]) diff --git a/test/_resources/Mock/Mock_Luos_Assert.c b/test/_resources/Mock/Mock_Luos_Assert.c index c56f2920d..53393f67c 100644 --- a/test/_resources/Mock/Mock_Luos_Assert.c +++ b/test/_resources/Mock/Mock_Luos_Assert.c @@ -4,8 +4,11 @@ * @author Luos * @version 1.0.0 ******************************************************************************/ +#ifdef UNIT_TEST #include "unit_test.h" - +#else +#include "luos_hal.h" +#endif /******************************************************************************* * Function ******************************************************************************/ @@ -18,5 +21,7 @@ ******************************************************************************/ void Luos_assert(char *file, uint32_t line) { +#ifdef UNIT_TEST UNIT_TEST_ASSERT(file, line); +#endif } diff --git a/test/_resources/Mock/Mock_Recep_NodeConcerned.c b/test/_resources/Mock/Mock_Recep_NodeConcerned.c index fc7428768..4facee45c 100644 --- a/test/_resources/Mock/Mock_Recep_NodeConcerned.c +++ b/test/_resources/Mock/Mock_Recep_NodeConcerned.c @@ -5,7 +5,7 @@ * @version 1.0.0 ******************************************************************************/ #include "context.h" - +#include "luos_hal.h" /******************************************************************************* * Function ******************************************************************************/ diff --git a/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c b/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c index 43d009898..52a98567c 100644 --- a/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c +++ b/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c @@ -4,7 +4,11 @@ * @author Luos * @version 1.0.0 ******************************************************************************/ +#ifdef UNIT_TEST #include "unit_test.h" +#else +#include "luos_hal.h" +#endif #include "service_structs.h" /******************************************************************************* From ff5374e14279b586126422359cfc56b4ca755321 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Thu, 11 Aug 2022 18:45:19 +0200 Subject: [PATCH 18/36] Change Weak attribute --- engine/core/inc/luos_engine.h | 4 ++++ engine/core/src/luos_utils.c | 2 +- engine/core/src/routing_table.c | 2 +- network/robus/inc/robus.h | 3 +++ network/robus/src/reception.c | 2 +- test/_resources/Unity/unit_test.h | 3 +++ test/_resources/node_config.h | 2 ++ 7 files changed, 15 insertions(+), 3 deletions(-) diff --git a/engine/core/inc/luos_engine.h b/engine/core/inc/luos_engine.h index 606fef948..67ad52914 100644 --- a/engine/core/inc/luos_engine.h +++ b/engine/core/inc/luos_engine.h @@ -23,6 +23,10 @@ #define LUOS_RUN() Luos_Run(); +#ifndef _WEAKED +#define _WEAKED +#endif + /****************************************************************************** * @struct general_stats_t * @brief format all datas to be sent trough msg diff --git a/engine/core/src/luos_utils.c b/engine/core/src/luos_utils.c index d30379fde..bc53b4035 100644 --- a/engine/core/src/luos_utils.c +++ b/engine/core/src/luos_utils.c @@ -37,7 +37,7 @@ __attribute__((weak)) void node_assert(char *file, uint32_t line) * @return None * warning : this function can be redefined only for mock testing purpose ******************************************************************************/ -_CRITICAL __attribute__((weak)) void Luos_assert(char *file, uint32_t line) +_CRITICAL _WEAKED void Luos_assert(char *file, uint32_t line) { // prepare a message as a node. // To do that we have to reset the service ID and clear PTP states to unlock others. diff --git a/engine/core/src/routing_table.c b/engine/core/src/routing_table.c index d576b5968..b484b40ec 100644 --- a/engine/core/src/routing_table.c +++ b/engine/core/src/routing_table.c @@ -218,7 +218,7 @@ static void RoutingTB_AddNumToAlias(char *alias, uint8_t num) * @param intro_msg : into route table message * @return None ******************************************************************************/ -__attribute__((weak)) bool RoutingTB_WaitRoutingTable(service_t *service, msg_t *intro_msg) +_WEAKED bool RoutingTB_WaitRoutingTable(service_t *service, msg_t *intro_msg) { const uint8_t timeout = 15; // timeout in ms const uint16_t entry_bkp = last_routing_table_entry; diff --git a/network/robus/inc/robus.h b/network/robus/inc/robus.h index 4bf93bc6e..361ec0868 100644 --- a/network/robus/inc/robus.h +++ b/network/robus/inc/robus.h @@ -21,6 +21,9 @@ typedef enum EXTERNAL_DETECTION, } network_state_t; +#ifndef _WEAKED +#define _WEAKED +#endif /******************************************************************************* * Variables ******************************************************************************/ diff --git a/network/robus/src/reception.c b/network/robus/src/reception.c index a2ec91414..fff18e67c 100644 --- a/network/robus/src/reception.c +++ b/network/robus/src/reception.c @@ -486,7 +486,7 @@ _CRITICAL static inline error_return_t Recep_TopicCompare(uint16_t topic_id) * warning : this function can be redefined only for mock testing purpose * _CRITICAL function call in IRQ ******************************************************************************/ -_CRITICAL __attribute__((weak)) luos_localhost_t Recep_NodeConcerned(header_t *header) +_WEAKED luos_localhost_t Recep_NodeConcerned(header_t *header) { uint16_t i = 0; diff --git a/test/_resources/Unity/unit_test.h b/test/_resources/Unity/unit_test.h index 2a69a6b7b..3fe6c639a 100644 --- a/test/_resources/Unity/unit_test.h +++ b/test/_resources/Unity/unit_test.h @@ -1,6 +1,9 @@ #ifndef UNIT_TEST_H #define UNIT_TEST_H +#undef _WEAKED +#define _WEAKED __attribute__((weak)) + #include #include #include diff --git a/test/_resources/node_config.h b/test/_resources/node_config.h index 170681ab1..afe194430 100644 --- a/test/_resources/node_config.h +++ b/test/_resources/node_config.h @@ -31,6 +31,8 @@ /******************************************************************************* * PROJECT DEFINITION *******************************************************************************/ +// Tell the linker to replace _WEAKED functions by mocked functions +#define _WEAKED __attribute__((weak)) /******************************************************************************* * LUOS LIBRARY DEFINITION From 83f2343072c979358ffa720538e5a9a97ae08863 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Tue, 25 Oct 2022 11:26:48 +0200 Subject: [PATCH 19/36] clang format: ignore mongoose lib --- .clang-format-ignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-format-ignore b/.clang-format-ignore index ef0d91f82..19a3113cb 100644 --- a/.clang-format-ignore +++ b/.clang-format-ignore @@ -22,4 +22,5 @@ # Third party libs ./tool_services/gate/TinyJSON/tiny-json.h -./tool_services/gate/TinyJSON/tiny-json.c \ No newline at end of file +./tool_services/gate/TinyJSON/tiny-json.c +./tool_services/pipe/WS/native/mongoose From 6812f434791f851d30712e7580696b0a0757d129 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Tue, 25 Oct 2022 11:27:12 +0200 Subject: [PATCH 20/36] Fix linting --- engine/HAL/NATIVE/luos_hal.h | 2 +- engine/HAL/NATIVE/luos_hal_config.h | 16 ++--- engine/core/inc/luos_engine.h | 2 +- network/robus/HAL/NATIVE/robus_hal_config.h | 68 +++++++++---------- network/robus/inc/robus.h | 2 +- test/_resources/Mock/Mock_Luos_Assert.c | 4 +- .../Mock/Mock_RoutingTB_WaitRoutingTable.c | 4 +- 7 files changed, 49 insertions(+), 49 deletions(-) diff --git a/engine/HAL/NATIVE/luos_hal.h b/engine/HAL/NATIVE/luos_hal.h index 847bdbab4..e6529c5f5 100644 --- a/engine/HAL/NATIVE/luos_hal.h +++ b/engine/HAL/NATIVE/luos_hal.h @@ -15,7 +15,7 @@ * Definitions ******************************************************************************/ #ifndef _CRITICAL -#define _CRITICAL + #define _CRITICAL #endif #define LUOS_UUID ((uint32_t *)0x00000001) diff --git a/engine/HAL/NATIVE/luos_hal_config.h b/engine/HAL/NATIVE/luos_hal_config.h index 58b48dfa7..18247a83e 100644 --- a/engine/HAL/NATIVE/luos_hal_config.h +++ b/engine/HAL/NATIVE/luos_hal_config.h @@ -11,17 +11,17 @@ #define _LUOSHAL_CONFIG_H_ #ifndef MCUFREQ -#define MCUFREQ 100000000 // MCU frequence + #define MCUFREQ 100000000 // MCU frequence #endif /******************************************************************************* * DEFINE STUB FLASH FOR X86 ******************************************************************************/ #ifndef FLASH_PAGE_SIZE -#define FLASH_PAGE_SIZE 0x100 + #define FLASH_PAGE_SIZE 0x100 #endif #ifndef FLASH_PAGE_NUMBER -#define FLASH_PAGE_NUMBER 8 + #define FLASH_PAGE_NUMBER 8 #endif static uint32_t stub_flash_x86[FLASH_PAGE_NUMBER][FLASH_PAGE_SIZE]; static uint32_t *last_page_stub_flash_x86 = &stub_flash_x86[FLASH_PAGE_NUMBER - 1][FLASH_PAGE_SIZE]; @@ -30,10 +30,10 @@ static uint32_t *last_page_stub_flash_x86 = &stub_flash_x86[FLASH_PAGE_NUMBER - * FLASH CONFIG ******************************************************************************/ #ifndef PAGE_SIZE -#define PAGE_SIZE (uint32_t) FLASH_PAGE_SIZE + #define PAGE_SIZE (uint32_t) FLASH_PAGE_SIZE #endif #ifndef ADDRESS_LAST_PAGE_FLASH -#define ADDRESS_LAST_PAGE_FLASH (uint32_t) last_page_stub_flash_x86 + #define ADDRESS_LAST_PAGE_FLASH (uint32_t) last_page_stub_flash_x86 #endif /******************************************************************************* @@ -42,13 +42,13 @@ static uint32_t *last_page_stub_flash_x86 = &stub_flash_x86[FLASH_PAGE_NUMBER - #define FLASH_END FLASH_SIZE - 1 #ifndef END_ERASE_BOOTLOADER -#define END_ERASE_BOOTLOADER (uint32_t)0x08020000 + #define END_ERASE_BOOTLOADER (uint32_t)0x08020000 #endif #ifndef SHARED_MEMORY_ADDRESS -#define SHARED_MEMORY_ADDRESS (uint32_t)0x0801F800 + #define SHARED_MEMORY_ADDRESS (uint32_t)0x0801F800 #endif #ifndef APP_ADDRESS -#define APP_ADDRESS (uint32_t)0x0800C800 + #define APP_ADDRESS (uint32_t)0x0800C800 #endif #endif /* _LUOSHAL_CONFIG_H_ */ diff --git a/engine/core/inc/luos_engine.h b/engine/core/inc/luos_engine.h index 67ad52914..3fea5e7f1 100644 --- a/engine/core/inc/luos_engine.h +++ b/engine/core/inc/luos_engine.h @@ -24,7 +24,7 @@ #define LUOS_RUN() Luos_Run(); #ifndef _WEAKED -#define _WEAKED + #define _WEAKED #endif /****************************************************************************** diff --git a/network/robus/HAL/NATIVE/robus_hal_config.h b/network/robus/HAL/NATIVE/robus_hal_config.h index e8470044d..0a5ebc2db 100644 --- a/network/robus/HAL/NATIVE/robus_hal_config.h +++ b/network/robus/HAL/NATIVE/robus_hal_config.h @@ -20,83 +20,83 @@ // If your MCU have CRC polynome 16 #define USE_CRC_HW 1 else #define USE_CRC_HW 0 #ifndef USE_CRC_HW -#define USE_CRC_HW 0 + #define USE_CRC_HW 0 #endif #ifndef TIMERDIV -#define TIMERDIV 1 // clock divider for timer clock chosen + #define TIMERDIV 1 // clock divider for timer clock chosen #endif /******************************************************************************* * PINOUT CONFIG ******************************************************************************/ #ifndef PORT_CLOCK_ENABLE -#define PORT_CLOCK_ENABLE() X86_STUB + #define PORT_CLOCK_ENABLE() X86_STUB #endif // PTP pin definition #ifndef PTPA_PIN -#define PTPA_PIN X86_STUB + #define PTPA_PIN X86_STUB #endif #ifndef PTPA_PORT -#define PTPA_PORT X86_STUB + #define PTPA_PORT X86_STUB #endif #ifndef PTPA_IRQ -#define PTPA_IRQ X86_STUB + #define PTPA_IRQ X86_STUB #endif #ifndef PTPB_PIN -#define PTPB_PIN X86_STUB + #define PTPB_PIN X86_STUB #endif #ifndef PTPB_PORT -#define PTPB_PORT X86_STUB + #define PTPB_PORT X86_STUB #endif #ifndef PTPB_IRQ -#define PTPB_IRQ X86_STUB + #define PTPB_IRQ X86_STUB #endif // COM pin definition #ifndef TX_LOCK_DETECT_PIN -#define TX_LOCK_DETECT_PIN DISABLE + #define TX_LOCK_DETECT_PIN DISABLE #endif #ifndef TX_LOCK_DETECT_PORT -#define TX_LOCK_DETECT_PORT DISABLE + #define TX_LOCK_DETECT_PORT DISABLE #endif #ifndef TX_LOCK_DETECT_IRQ -#define TX_LOCK_DETECT_IRQ DISABLE + #define TX_LOCK_DETECT_IRQ DISABLE #endif #ifndef RX_EN_PIN -#define RX_EN_PIN X86_STUB + #define RX_EN_PIN X86_STUB #endif #ifndef RX_EN_PORT -#define RX_EN_PORT X86_STUB + #define RX_EN_PORT X86_STUB #endif #ifndef TX_EN_PIN -#define TX_EN_PIN X86_STUB + #define TX_EN_PIN X86_STUB #endif #ifndef TX_EN_PORT -#define TX_EN_PORT X86_STUB + #define TX_EN_PORT X86_STUB #endif #ifndef COM_TX_PIN -#define COM_TX_PIN X86_STUB + #define COM_TX_PIN X86_STUB #endif #ifndef COM_TX_PORT -#define COM_TX_PORT X86_STUB + #define COM_TX_PORT X86_STUB #endif #ifndef COM_TX_AF -#define COM_TX_AF X86_STUB + #define COM_TX_AF X86_STUB #endif #ifndef COM_RX_PIN -#define COM_RX_PIN X86_STUB + #define COM_RX_PIN X86_STUB #endif #ifndef COM_RX_PORT -#define COM_RX_PORT X86_STUB + #define COM_RX_PORT X86_STUB #endif #ifndef COM_RX_AF -#define COM_RX_AF X86_STUB + #define COM_RX_AF X86_STUB #endif #ifndef PINOUT_IRQHANDLER @@ -107,48 +107,48 @@ * COM CONFIG ******************************************************************************/ #ifndef LUOS_COM_CLOCK_ENABLE -#define LUOS_COM_CLOCK_ENABLE() X86_STUB + #define LUOS_COM_CLOCK_ENABLE() X86_STUB #endif #ifndef LUOS_COM -#define LUOS_COM X86_STUB // STUB + #define LUOS_COM X86_STUB // STUB #endif #ifndef LUOS_COM_IRQ -#define LUOS_COM_IRQ X86_STUB // STUB + #define LUOS_COM_IRQ X86_STUB // STUB #endif #ifndef LUOS_COM_IRQHANDLER -#define LUOS_COM_IRQHANDLER() // STUB + #define LUOS_COM_IRQHANDLER() // STUB #endif /******************************************************************************* * DMA CONFIG ******************************************************************************/ #ifndef LUOS_DMA_CLOCK_ENABLE -#define LUOS_DMA_CLOCK_ENABLE() X86_STUB + #define LUOS_DMA_CLOCK_ENABLE() X86_STUB #endif #ifndef LUOS_DMA -#define LUOS_DMA X86_STUB // STUB + #define LUOS_DMA X86_STUB // STUB #endif #ifndef LUOS_DMA_CHANNEL -#define LUOS_DMA_CHANNEL X86_STUB // STUB + #define LUOS_DMA_CHANNEL X86_STUB // STUB #endif #ifndef LUOS_DMA_REMAP -#define LUOS_DMA_REMAP X86_STUB // STUB + #define LUOS_DMA_REMAP X86_STUB // STUB #endif /******************************************************************************* * COM TIMEOUT CONFIG ******************************************************************************/ #ifndef LUOS_TIMER_CLOCK_ENABLE -#define LUOS_TIMER_LOCK_ENABLE() // STUB + #define LUOS_TIMER_LOCK_ENABLE() // STUB #endif #ifndef LUOS_TIMER -#define LUOS_TIMER X86_STUB // STUB + #define LUOS_TIMER X86_STUB // STUB #endif #ifndef LUOS_TIMER_IRQ -#define LUOS_TIMER_IRQ X86_STUB // STUB + #define LUOS_TIMER_IRQ X86_STUB // STUB #endif #ifndef LUOS_TIMER_IRQHANDLER -#define LUOS_TIMER_IRQHANDLER() x86_Timer_IRQHandler() + #define LUOS_TIMER_IRQHANDLER() x86_Timer_IRQHandler() #endif #endif /* _ROBUSHAL_CONFIG_H_ */ diff --git a/network/robus/inc/robus.h b/network/robus/inc/robus.h index 361ec0868..171d0ed90 100644 --- a/network/robus/inc/robus.h +++ b/network/robus/inc/robus.h @@ -22,7 +22,7 @@ typedef enum } network_state_t; #ifndef _WEAKED -#define _WEAKED + #define _WEAKED #endif /******************************************************************************* * Variables diff --git a/test/_resources/Mock/Mock_Luos_Assert.c b/test/_resources/Mock/Mock_Luos_Assert.c index 53393f67c..36bcd8da7 100644 --- a/test/_resources/Mock/Mock_Luos_Assert.c +++ b/test/_resources/Mock/Mock_Luos_Assert.c @@ -5,9 +5,9 @@ * @version 1.0.0 ******************************************************************************/ #ifdef UNIT_TEST -#include "unit_test.h" + #include "unit_test.h" #else -#include "luos_hal.h" + #include "luos_hal.h" #endif /******************************************************************************* * Function diff --git a/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c b/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c index 52a98567c..6e2eed9cd 100644 --- a/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c +++ b/test/_resources/Mock/Mock_RoutingTB_WaitRoutingTable.c @@ -5,9 +5,9 @@ * @version 1.0.0 ******************************************************************************/ #ifdef UNIT_TEST -#include "unit_test.h" + #include "unit_test.h" #else -#include "luos_hal.h" + #include "luos_hal.h" #endif #include "service_structs.h" From 8088ac67df4564bb61a99f16089531fb8e480ee7 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Tue, 25 Oct 2022 14:23:56 +0200 Subject: [PATCH 21/36] Update versions fix --- examples/projects/Arduino/bldc_simple_foc/README.md | 2 +- examples/projects/Arduino/stepper_simple_foc/README.md | 2 +- examples/projects/native/button/lib/Button/library.json | 2 +- examples/projects/native/button/platformio.ini | 4 ++-- examples/projects/native/gate_wscom/lib/Button/library.json | 2 +- examples/projects/native/gate_wscom/platformio.ini | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/projects/Arduino/bldc_simple_foc/README.md b/examples/projects/Arduino/bldc_simple_foc/README.md index 015c00837..d2f541b32 100644 --- a/examples/projects/Arduino/bldc_simple_foc/README.md +++ b/examples/projects/Arduino/bldc_simple_foc/README.md @@ -9,7 +9,7 @@ [![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) [![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) -Version: 2.6.1 +Version: 2.7.0 # Hardware specification ## Board​ diff --git a/examples/projects/Arduino/stepper_simple_foc/README.md b/examples/projects/Arduino/stepper_simple_foc/README.md index 6614eac45..a65a59a74 100644 --- a/examples/projects/Arduino/stepper_simple_foc/README.md +++ b/examples/projects/Arduino/stepper_simple_foc/README.md @@ -9,7 +9,7 @@ [![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) [![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) -Version: 2.6.1 +Version: 2.7.0 # Hardware specification ## Board​ diff --git a/examples/projects/native/button/lib/Button/library.json b/examples/projects/native/button/lib/Button/library.json index 7d38ee4fb..bebb162e8 100644 --- a/examples/projects/native/button/lib/Button/library.json +++ b/examples/projects/native/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.5.3" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/native/button/platformio.ini b/examples/projects/native/button/platformio.ini index 77ba4464d..c7d089cf7 100644 --- a/examples/projects/native/button/platformio.ini +++ b/examples/projects/native/button/platformio.ini @@ -12,10 +12,10 @@ default_envs = native [env:native] lib_ldf_mode =off -lib_extra_dirs = ../../../../../ +lib_extra_dirs = $PROJECT_DIR/../../../../../ platform = native lib_deps = - luos_engine@^2.5.3 + luos_engine@^2.7.0 Button build_unflags = -Os build_flags = diff --git a/examples/projects/native/gate_wscom/lib/Button/library.json b/examples/projects/native/gate_wscom/lib/Button/library.json index 7d38ee4fb..bebb162e8 100644 --- a/examples/projects/native/gate_wscom/lib/Button/library.json +++ b/examples/projects/native/gate_wscom/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.5.3" + "luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/platformio.ini b/examples/projects/native/gate_wscom/platformio.ini index af3d019f2..670e3afb0 100644 --- a/examples/projects/native/gate_wscom/platformio.ini +++ b/examples/projects/native/gate_wscom/platformio.ini @@ -17,7 +17,7 @@ lib_extra_dirs = $PROJECT_DIR/../../../../../ platform = native lib_deps = - luos_engine@^2.5.3 + luos_engine@^2.7.0 Pipe Gate Button From d7fad8309a503b2fee8dadedde04da03dffd4910 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Tue, 25 Oct 2022 15:06:53 +0200 Subject: [PATCH 22/36] Fix native luos hal selection --- examples/projects/native/button/platformio.ini | 2 +- examples/projects/native/gate_wscom/platformio.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/projects/native/button/platformio.ini b/examples/projects/native/button/platformio.ini index c7d089cf7..2261d9dd0 100644 --- a/examples/projects/native/button/platformio.ini +++ b/examples/projects/native/button/platformio.ini @@ -22,4 +22,4 @@ build_flags = -I inc -include node_config.h -O1 - -DLUOSHAL=native + -D LUOSHAL=NATIVE diff --git a/examples/projects/native/gate_wscom/platformio.ini b/examples/projects/native/gate_wscom/platformio.ini index 670e3afb0..54629ee6c 100644 --- a/examples/projects/native/gate_wscom/platformio.ini +++ b/examples/projects/native/gate_wscom/platformio.ini @@ -26,7 +26,7 @@ build_flags = -I inc -include node_config.h -O1 - -D LUOSHAL=native + -D LUOSHAL=NATIVE -D GATEFORMAT=TinyJSON -D PIPEMODE=WS -D PIPEHAL=native From 960fa51daf825d307c3acb46c44478a8cdd43316 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Tue, 25 Oct 2022 16:22:31 +0200 Subject: [PATCH 23/36] Typo correction --- examples/projects/native/gate_wscom/lib/Button/button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projects/native/gate_wscom/lib/Button/button.c b/examples/projects/native/gate_wscom/lib/Button/button.c index 18055c13e..fe3811e8b 100644 --- a/examples/projects/native/gate_wscom/lib/Button/button.c +++ b/examples/projects/native/gate_wscom/lib/Button/button.c @@ -43,7 +43,7 @@ void Button_Init(void) // Service creation following state profile ProfileState_CreateService(&button, 0, "button", revision); // set_fl(STDOUT_FILENO, O_NONBLOCK); - printf("Button serice running.\n\tUse the SPACE button to swap the button state.\n"); + printf("Button service running.\n\tUse the SPACE button to swap the button state.\n"); } #ifndef _WIN32 int kbhit(void) From 00c4e4c00685f9afe40ef71b0bf85ba69360c851 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Wed, 2 Nov 2022 15:54:28 +0100 Subject: [PATCH 24/36] Improve native button display --- .../native/button/lib/Button/button.c | 56 +++++++++++++++++-- .../native/gate_wscom/lib/Button/button.c | 56 +++++++++++++++++-- 2 files changed, 104 insertions(+), 8 deletions(-) diff --git a/examples/projects/native/button/lib/Button/button.c b/examples/projects/native/button/lib/Button/button.c index fe3811e8b..f600a764e 100644 --- a/examples/projects/native/button/lib/Button/button.c +++ b/examples/projects/native/button/lib/Button/button.c @@ -15,6 +15,7 @@ #include #include "button.h" #include "profile_state.h" +#include /******************************************************************************* * Definitions @@ -29,6 +30,16 @@ profile_state_t button; * Function ******************************************************************************/ +void clear_screen() +{ +#ifdef _WIN32 + system("cls"); +#else + // Assume POSIX + system("clear"); +#endif +} + /****************************************************************************** * @brief init must be call in project init * @param None @@ -43,7 +54,20 @@ void Button_Init(void) // Service creation following state profile ProfileState_CreateService(&button, 0, "button", revision); // set_fl(STDOUT_FILENO, O_NONBLOCK); - printf("Button service running.\n\tUse the SPACE button to swap the button state.\n"); + clear_screen(); + printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); + printf( + " ______________________________________________\n" + " / /;\n" + " / ________________ .-. //\n" + " / / /; |`-°| //\n" + " / / // | | //\n" + " / / // [ `-° ) //\n" + " / /______________ // `---° //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'"); } #ifndef _WIN32 int kbhit(void) @@ -73,6 +97,7 @@ int kbhit(void) return 0; } #endif + /****************************************************************************** * @brief loop must be call in project loop * @param None @@ -84,12 +109,35 @@ void Button_Loop(void) { if (getchar() == ' ') { - printf("\nButton state : "); + clear_screen(); + printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); button.state = !button.state; if (button.state) - printf("True"); + printf( + " ______________________________________________\n" + " / /;\n" + " / ________________ \\ | / //\n" + " / / /; .-. //\n" + " / / // |`-°| //\n" + " / / // [ `-° ) //\n" + " / /______________ // `---° //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'"); else - printf("False"); + printf( + " ______________________________________________\n" + " / /;\n" + " / ________________ .-. //\n" + " / / /; |`-°| //\n" + " / / // | | //\n" + " / / // [ `-° ) //\n" + " / /______________ // `---° //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'"); } } } \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/lib/Button/button.c b/examples/projects/native/gate_wscom/lib/Button/button.c index fe3811e8b..f600a764e 100644 --- a/examples/projects/native/gate_wscom/lib/Button/button.c +++ b/examples/projects/native/gate_wscom/lib/Button/button.c @@ -15,6 +15,7 @@ #include #include "button.h" #include "profile_state.h" +#include /******************************************************************************* * Definitions @@ -29,6 +30,16 @@ profile_state_t button; * Function ******************************************************************************/ +void clear_screen() +{ +#ifdef _WIN32 + system("cls"); +#else + // Assume POSIX + system("clear"); +#endif +} + /****************************************************************************** * @brief init must be call in project init * @param None @@ -43,7 +54,20 @@ void Button_Init(void) // Service creation following state profile ProfileState_CreateService(&button, 0, "button", revision); // set_fl(STDOUT_FILENO, O_NONBLOCK); - printf("Button service running.\n\tUse the SPACE button to swap the button state.\n"); + clear_screen(); + printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); + printf( + " ______________________________________________\n" + " / /;\n" + " / ________________ .-. //\n" + " / / /; |`-°| //\n" + " / / // | | //\n" + " / / // [ `-° ) //\n" + " / /______________ // `---° //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'"); } #ifndef _WIN32 int kbhit(void) @@ -73,6 +97,7 @@ int kbhit(void) return 0; } #endif + /****************************************************************************** * @brief loop must be call in project loop * @param None @@ -84,12 +109,35 @@ void Button_Loop(void) { if (getchar() == ' ') { - printf("\nButton state : "); + clear_screen(); + printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); button.state = !button.state; if (button.state) - printf("True"); + printf( + " ______________________________________________\n" + " / /;\n" + " / ________________ \\ | / //\n" + " / / /; .-. //\n" + " / / // |`-°| //\n" + " / / // [ `-° ) //\n" + " / /______________ // `---° //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'"); else - printf("False"); + printf( + " ______________________________________________\n" + " / /;\n" + " / ________________ .-. //\n" + " / / /; |`-°| //\n" + " / / // | | //\n" + " / / // [ `-° ) //\n" + " / /______________ // `---° //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'"); } } } \ No newline at end of file From ccb4eb3895e65210020ccf956eaad8bedd24b67e Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Wed, 2 Nov 2022 16:22:21 +0100 Subject: [PATCH 25/36] Fix button display --- .../native/button/lib/Button/button.c | 22 +++++++++---------- .../native/gate_wscom/lib/Button/button.c | 22 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/examples/projects/native/button/lib/Button/button.c b/examples/projects/native/button/lib/Button/button.c index f600a764e..dcce12222 100644 --- a/examples/projects/native/button/lib/Button/button.c +++ b/examples/projects/native/button/lib/Button/button.c @@ -60,10 +60,10 @@ void Button_Init(void) " ______________________________________________\n" " / /;\n" " / ________________ .-. //\n" - " / / /; |`-°| //\n" - " / / // | | //\n" - " / / // [ `-° ) //\n" - " / /______________ // `---° //\n" + " / / /; |`-'| //\n" + " / / MCU // | | //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" @@ -118,9 +118,9 @@ void Button_Loop(void) " / /;\n" " / ________________ \\ | / //\n" " / / /; .-. //\n" - " / / // |`-°| //\n" - " / / // [ `-° ) //\n" - " / /______________ // `---° //\n" + " / / MCU // |`-'| //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" @@ -130,10 +130,10 @@ void Button_Loop(void) " ______________________________________________\n" " / /;\n" " / ________________ .-. //\n" - " / / /; |`-°| //\n" - " / / // | | //\n" - " / / // [ `-° ) //\n" - " / /______________ // `---° //\n" + " / / /; |`-'| //\n" + " / / MCU // | | //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" diff --git a/examples/projects/native/gate_wscom/lib/Button/button.c b/examples/projects/native/gate_wscom/lib/Button/button.c index f600a764e..dcce12222 100644 --- a/examples/projects/native/gate_wscom/lib/Button/button.c +++ b/examples/projects/native/gate_wscom/lib/Button/button.c @@ -60,10 +60,10 @@ void Button_Init(void) " ______________________________________________\n" " / /;\n" " / ________________ .-. //\n" - " / / /; |`-°| //\n" - " / / // | | //\n" - " / / // [ `-° ) //\n" - " / /______________ // `---° //\n" + " / / /; |`-'| //\n" + " / / MCU // | | //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" @@ -118,9 +118,9 @@ void Button_Loop(void) " / /;\n" " / ________________ \\ | / //\n" " / / /; .-. //\n" - " / / // |`-°| //\n" - " / / // [ `-° ) //\n" - " / /______________ // `---° //\n" + " / / MCU // |`-'| //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" @@ -130,10 +130,10 @@ void Button_Loop(void) " ______________________________________________\n" " / /;\n" " / ________________ .-. //\n" - " / / /; |`-°| //\n" - " / / // | | //\n" - " / / // [ `-° ) //\n" - " / /______________ // `---° //\n" + " / / /; |`-'| //\n" + " / / MCU // | | //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" From 562122f903356ef68bb4c7d08abdd342119a9274 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Wed, 2 Nov 2022 16:30:18 +0100 Subject: [PATCH 26/36] Print websocket disconnection --- tool_services/pipe/WS/native/pipe_com.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool_services/pipe/WS/native/pipe_com.c b/tool_services/pipe/WS/native/pipe_com.c index 8dcf069b7..04b5262c0 100644 --- a/tool_services/pipe/WS/native/pipe_com.c +++ b/tool_services/pipe/WS/native/pipe_com.c @@ -60,6 +60,10 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) struct mg_ws_message *wm = (struct mg_ws_message *)ev_data; Stream_PutSample(Pipe_GetRxStreamChannel(), wm->data.ptr, wm->data.len); } + else if (ev == MG_EV_CLOSE) + { + printf("Websocket is disconnected \n"); + } (void)fn_data; } From f7182e444797ec50c0e0bbfd64df53a15aebae29 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Wed, 2 Nov 2022 16:32:44 +0100 Subject: [PATCH 27/36] Add a native led example --- examples/projects/native/led/README.md | 36 ++++ .../projects/native/led/lib/Led/README.md | 18 ++ examples/projects/native/led/lib/Led/led.c | 173 ++++++++++++++++++ examples/projects/native/led/lib/Led/led.h | 28 +++ .../projects/native/led/lib/Led/library.json | 14 ++ examples/projects/native/led/node_config.h | 95 ++++++++++ examples/projects/native/led/platformio.ini | 25 +++ examples/projects/native/led/src/main.c | 13 ++ 8 files changed, 402 insertions(+) create mode 100644 examples/projects/native/led/README.md create mode 100644 examples/projects/native/led/lib/Led/README.md create mode 100644 examples/projects/native/led/lib/Led/led.c create mode 100644 examples/projects/native/led/lib/Led/led.h create mode 100644 examples/projects/native/led/lib/Led/library.json create mode 100644 examples/projects/native/led/node_config.h create mode 100644 examples/projects/native/led/platformio.ini create mode 100644 examples/projects/native/led/src/main.c diff --git a/examples/projects/native/led/README.md b/examples/projects/native/led/README.md new file mode 100644 index 000000000..ae24a9447 --- /dev/null +++ b/examples/projects/native/led/README.md @@ -0,0 +1,36 @@ +Luos logo + +![](https://github.com/Luos-io/luos_engine/actions/workflows/build.yml/badge.svg) +[![](https://img.shields.io/github/license/Luos-io/Luos)](https://github.com/Luos-io/luos_engine/blob/master/LICENSE) + +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](http://certified.luos.io)](https://luos.io) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos_engine/library/Luos.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) + +[![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) +[![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) +[![](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Unleash%20electronic%20devices%20as%20microservices%20thanks%20to%20Luos&https://luos.io&via=Luos_io&hashtags=embeddedsystems,electronics,microservices,api) +[![](https://img.shields.io/badge/LinkedIn-Share-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fluos-io) + + + +# Button project example :bulb: +This project demonstrate how to make and use a simple button through Luos. Feel free to use electronics and code example as you want. + +## How to compile the code :computer: + + 1. Download and install [Platformio](https://platformio.org/platformio-ide) + 2. Open this folder into Platformio + 3. Build (Platformio will do the rest) + +## How to open the electronic design :electric_plug: +You can open [a working example electronic design](https://github.com/Luos-io/luos_engine/tree/main/examples/hardware) with Kicad. This design use Luos_components library for more information to install and use it read [our doc](https://docs.luos.io). + +## Linked driver +This project is linked to the [Button driver](../../Drivers/button). + +## Don't hesitate to read [our documentation](https://docs.luos.io), or to post your questions/issues on the [Luos' Forum](https://community.luos.io). :books: + +[![](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.luos.io&logo=Discourse)](https://community.luos.io) +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](https://img.shields.io/badge/LinkedIn-Follow%20us-0077B5?style=flat&logo=linkedin)](https://www.linkedin.com/company/luos) diff --git a/examples/projects/native/led/lib/Led/README.md b/examples/projects/native/led/lib/Led/README.md new file mode 100644 index 000000000..34ffbab82 --- /dev/null +++ b/examples/projects/native/led/lib/Led/README.md @@ -0,0 +1,18 @@ +Luos logo + +[![](http://certified.luos.io)](https://luos.io) +[![](https://img.shields.io/github/license/Luos-io/Examples)]( +https://github.com/Luos-io/Examples/blob/master/LICENSE) + +[![](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Unleash%20electronic%20devices%20as%20microservices%20thanks%20to%20Luos&https://luos.io&via=Luos_io&hashtags=embeddedsystems,electronics,microservices,api) +[![](https://img.shields.io/badge/LinkedIn-Share-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fluos-io) + +# LED driver +Driver for using an RGB LED in your projects with Luos. + +# Link project +This driver is linked to the [LED project](../../Projects/Led). + +[![](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.luos.io&logo=Discourse)](https://community.luos.io) +[![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) +[![](https://img.shields.io/badge/LinkedIn-Follow%20us-0077B5?style=flat&logo=linkedin)](https://www.linkedin.com/company/luos) diff --git a/examples/projects/native/led/lib/Led/led.c b/examples/projects/native/led/lib/Led/led.c new file mode 100644 index 000000000..17d6e83d4 --- /dev/null +++ b/examples/projects/native/led/lib/Led/led.c @@ -0,0 +1,173 @@ +/****************************************************************************** + * @file Led + * @brief driver example a simple Led + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#include +#include +#ifdef _WIN32 + #include +#else + #include +#endif +//#include +#include "led.h" +#include + +/******************************************************************************* + * Definitions + ******************************************************************************/ + +/******************************************************************************* + * Variables + ******************************************************************************/ +uint8_t Led_last_state = 0; + +/******************************************************************************* + * Function + ******************************************************************************/ +static void Led_MsgHandler(service_t *service, msg_t *msg); + +void clear_screen(void) +{ +#ifdef _WIN32 + system("cls"); +#else + // Assume POSIX + system("clear"); +#endif +} + +/****************************************************************************** + * @brief init must be call in project init + * @param None + * @return None + ******************************************************************************/ +void Led_Init(void) +{ + revision_t revision = {.major = 1, .minor = 0, .build = 0}; + Luos_CreateService(Led_MsgHandler, STATE_TYPE, "led", revision); + clear_screen(); + printf("LED service running.\n\n"); + printf( + " ___________________________.-.________________\n" + " / | | /;\n" + " / ________________ | | //\n" + " / / /; [` - ') //\n" + " / / // `---' //\n" + " / / // | | //\n" + " / /______________ // //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "`---------------------------------------------'\n"); +} + +/****************************************************************************** + * @brief loop must be call in project loop + * @param None + * @return None + ******************************************************************************/ +void Led_Loop(void) {} + +/****************************************************************************** + * @brief Msg manager callback when a msg receive for this service + * @param service destination + * @param Msg receive + * @return None + ******************************************************************************/ +static void Led_MsgHandler(service_t *service, msg_t *msg) +{ + if (msg->header.cmd == GET_CMD) + { + // fill the message infos + msg_t pub_msg; + pub_msg.header.cmd = IO_STATE; + pub_msg.header.target_mode = SERVICEID; + pub_msg.header.target = msg->header.source; + pub_msg.header.size = sizeof(char); + Luos_SendMsg(service, &pub_msg); + return; + } + else if (msg->header.cmd == IO_STATE) + { + if (msg->data[0] != Led_last_state) + { + Led_last_state = msg->data[0]; + clear_screen(); + printf("LED service running.\n\n"); + if (Led_last_state == LED_OFF) + { + printf( + " ___________________________.-.________________\n" + " / | | /;\n" + " / ________________ | | //\n" + " / / /; [` - ') //\n" + " / / MCU // `---' //\n" + " / / // | | //\n" + " / /______________ // //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "`---------------------------------------------'\n"); + } + else if (Led_last_state == LED_ON) + { + printf( + " \\ | /\n" + " ___________________________.-._______________\n" + " / - |***| - /;\n" + " / ________________ - |***| - //\n" + " / / /; [` - ') //\n" + " / / MCU // `---' //\n" + " / / // | | //\n" + " / /______________ // //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "`---------------------------------------------'\n"); + } + else + { + printf("[UNKWNOWN STATE] LED can only be ON or OFF...\n"); + } + } + else if (msg->data[0] == LED_ON) + { + + clear_screen(); + printf("LED service running. => LED is already ON\n\n"); + printf( + " \\ | /\n" + " ___________________________.-._______________\n" + " / - |***| - /;\n" + " / ________________ - |***| - //\n" + " / / /; [` - ') //\n" + " / / MCU // `---' //\n" + " / / // | | //\n" + " / /______________ // //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "`---------------------------------------------'\n"); + } + else if (msg->data[0] == LED_OFF) + { + clear_screen(); + printf("LED service running. => LED is already OFF\n\n"); + printf( + " ___________________________.-.________________\n" + " / | | /;\n" + " / ________________ | | //\n" + " / / /; [` - ') //\n" + " / / MCU // `---' //\n" + " / / // | | //\n" + " / /______________ // //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "`---------------------------------------------'\n"); + } + } +} \ No newline at end of file diff --git a/examples/projects/native/led/lib/Led/led.h b/examples/projects/native/led/lib/Led/led.h new file mode 100644 index 000000000..5efb98688 --- /dev/null +++ b/examples/projects/native/led/lib/Led/led.h @@ -0,0 +1,28 @@ +/****************************************************************************** + * @file Led + * @brief driver example a simple Led + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef LED_H +#define LED_H + +#include "luos_engine.h" + +/******************************************************************************* + * Definitions + ******************************************************************************/ +#define LED_OFF 0 +#define LED_ON 1 + +/******************************************************************************* + * Variables + ******************************************************************************/ + +/******************************************************************************* + * Function + ******************************************************************************/ +void Led_Init(void); +void Led_Loop(void); + +#endif /* LED_H */ diff --git a/examples/projects/native/led/lib/Led/library.json b/examples/projects/native/led/lib/Led/library.json new file mode 100644 index 000000000..97ddfceb4 --- /dev/null +++ b/examples/projects/native/led/lib/Led/library.json @@ -0,0 +1,14 @@ +{ + "name": "led", + "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,container,ST", + "description": "a simple button driver", + "version": "0.7.0", + "authors": { + "name": "Luos", + "url": "https://luos.io" + }, + "licence": "MIT", + "dependencies": { + "luos_engine": "^2.7.0" + } +} \ No newline at end of file diff --git a/examples/projects/native/led/node_config.h b/examples/projects/native/led/node_config.h new file mode 100644 index 000000000..00a4f1ea4 --- /dev/null +++ b/examples/projects/native/led/node_config.h @@ -0,0 +1,95 @@ +/****************************************************************************** + * @file node_config.h + * @brief This file allow you to use standard preprocessor definitions to + * configure your project, Luos and Luos HAL libraries + * + * # Introduction + * This file is for the luos user. You may here configure your project and + * define your custom Luos service and custom Luos command for your product + * + * Luos libraries offer a minimal standard configuration to optimize + * memory usage. In some case you have to modify standard value to fit + * with your need concerning among of data transiting through the network + * or network speed for example + * + * Luos libraries can be use with a lot a MCU family. Luos compagny give you + * a default configuration, for specific MCU family, in robus_hal_config.h. + * This configuration can be modify here to fit with you design by + * preprocessor definitions of MCU Hardware needs + * + * # Usage + * This file should be place a the root folder of your project and include + * where build flag preprocessor definitions are define in your IDE + * -include node_config.h + * + * @author Luos + * @version 0.0.0 + ******************************************************************************/ +#ifndef _NODE_CONFIG_H_ +#define _NODE_CONFIG_H_ + +/******************************************************************************* + * PROJECT DEFINITION + *******************************************************************************/ + +/******************************************************************************* + * LUOS LIBRARY DEFINITION + ******************************************************************************* + * Define | Default Value | Description + * :---------------------|------------------------------------------------------ + * MAX_SERVICE_NUMBER | 5 | Service number in the node + * MSG_BUFFER_SIZE | 3*SIZE_MSG_MAX (405 Bytes) | Size in byte of the Luos buffer TX and RX + * MAX_MSG_NB | 2*MAX_SERVICE_NUMBER | Message number in Luos buffer + * NBR_PORT | 2 | PTP Branch number Max 8 + * NBR_RETRY | 10 | Send Retry number in case of NACK or collision + ******************************************************************************/ +#define MAX_SERVICE_NUMBER 1 +#define MAX_PROFILE_NUMBER 1 +#define MAX_MSG_NB 5 + +/******************************************************************************* + * LUOS HAL LIBRARY DEFINITION +******************************************************************************* + * Define | Description + * :-----------------------|----------------------------------------------- + * MCUFREQ | Put your the MCU frequency (value in Hz) + * TIMERDIV | Timer divider clock (see your clock configuration) + * USE_CRC_HW | define to 0 if there is no Module CRC in your MCU + * USE_TX_IT | define to 1 to not use DMA transfers for Luos Tx + * + * PORT_CLOCK_ENABLE | Enable clock for port + * PTPx | A,B,C,D etc. PTP Branch Pin/Port/IRQ + * TX_LOCK_DETECT | Disable by default use if not busy flag in USART Pin/Port/IRQ + * RX_EN | Rx enable for driver RS485 always on Pin/Port + * TX_EN | Tx enable for driver RS485 Pin/Port + * COM_TX | Tx USART Com Pin/Port/Alternate + * COM_RX | Rx USART Com Pin/Port/Alternate + * PINOUT_IRQHANDLER | Callback function for Pin IRQ handler + + * LUOS_COM_CLOCK_ENABLE | Enable clock for USART + * LUOS_COM | USART number + * LUOS_COM_IRQ | USART IRQ number + * LUOS_COM_IRQHANDLER | Callback function for USART IRQ handler + + * LUOS_DMA_CLOCK_ENABLE | Enable clock for DMA + * LUOS_DMA | DMA number + * LUOS_DMA_CHANNEL | DMA channel (depending on MCU DMA may need special config) + + * LUOS_TIMER_CLOCK_ENABLE | Enable clock for Timer + * LUOS_TIMER | Timer number + * LUOS_TIMER_IRQ | Timer IRQ number + * LUOS_TIMER_IRQHANDLER | Callback function for Timer IRQ handler +******************************************************************************/ + +/******************************************************************************* + * FLASH CONFIGURATION FOR APP WITH BOOTLOADER + ******************************************************************************** + * Define | Default Value | Description + * :---------------------|------------------------------------------------------ + * BOOT_START_ADDRESS | FLASH_BASE = 0x8000000 | Start address of Bootloader in flash + * SHARED_MEMORY_ADDRESS | 0x0800C000 | Start address of shared memory to save boot flag + * APP_START_ADDRESS | 0x0800C800 | Start address of application with bootloader + * APP_END_ADDRESS | FLASH_BANK1_END=0x0801FFFF | End address of application with bootloader + ******************************************************************************/ + +#endif /* _NODE_CONFIG_H_ */ diff --git a/examples/projects/native/led/platformio.ini b/examples/projects/native/led/platformio.ini new file mode 100644 index 000000000..1e3798b22 --- /dev/null +++ b/examples/projects/native/led/platformio.ini @@ -0,0 +1,25 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html +[platformio] +default_envs = native + +[env:native] +lib_ldf_mode =off +lib_extra_dirs = $PROJECT_DIR/../../../../../ +platform = native +lib_deps = + luos_engine@^2.7.0 + Led +build_unflags = -Os +build_flags = + -I inc + -include node_config.h + -O1 + -D LUOSHAL=NATIVE diff --git a/examples/projects/native/led/src/main.c b/examples/projects/native/led/src/main.c new file mode 100644 index 000000000..f9e6ad715 --- /dev/null +++ b/examples/projects/native/led/src/main.c @@ -0,0 +1,13 @@ +#include "luos_engine.h" +#include "led.h" + +int main(void) +{ + Luos_Init(); + Led_Init(); + while (1) + { + Luos_Loop(); + Led_Loop(); + } +} \ No newline at end of file From 48a7e32eca0c346cad7fa83df57179f5f84414e7 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Wed, 2 Nov 2022 16:33:51 +0100 Subject: [PATCH 28/36] Fix native button --- examples/projects/native/button/lib/Button/button.c | 6 +++--- examples/projects/native/gate_wscom/lib/Button/button.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/projects/native/button/lib/Button/button.c b/examples/projects/native/button/lib/Button/button.c index dcce12222..1fe921fc3 100644 --- a/examples/projects/native/button/lib/Button/button.c +++ b/examples/projects/native/button/lib/Button/button.c @@ -67,7 +67,7 @@ void Button_Init(void) " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" - "'---------------------------------------------'"); + "'---------------------------------------------'\n"); } #ifndef _WIN32 int kbhit(void) @@ -124,7 +124,7 @@ void Button_Loop(void) " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" - "'---------------------------------------------'"); + "'---------------------------------------------'\n"); else printf( " ______________________________________________\n" @@ -137,7 +137,7 @@ void Button_Loop(void) " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" - "'---------------------------------------------'"); + "'---------------------------------------------'\n"); } } } \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/lib/Button/button.c b/examples/projects/native/gate_wscom/lib/Button/button.c index dcce12222..1fe921fc3 100644 --- a/examples/projects/native/gate_wscom/lib/Button/button.c +++ b/examples/projects/native/gate_wscom/lib/Button/button.c @@ -67,7 +67,7 @@ void Button_Init(void) " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" - "'---------------------------------------------'"); + "'---------------------------------------------'\n"); } #ifndef _WIN32 int kbhit(void) @@ -124,7 +124,7 @@ void Button_Loop(void) " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" - "'---------------------------------------------'"); + "'---------------------------------------------'\n"); else printf( " ______________________________________________\n" @@ -137,7 +137,7 @@ void Button_Loop(void) " / '---------------' //\n" " / //\n" "/_____________________________________________//\n" - "'---------------------------------------------'"); + "'---------------------------------------------'\n"); } } } \ No newline at end of file From bd8ad52c622e6043c47f934353fd7b06151719f5 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Thu, 3 Nov 2022 09:10:27 +0100 Subject: [PATCH 29/36] Improve button for windows compatibility --- .../native/button/lib/Button/button.c | 75 +++++++-------- .../native/gate_wscom/lib/Button/button.c | 94 ++++++++++--------- 2 files changed, 90 insertions(+), 79 deletions(-) diff --git a/examples/projects/native/button/lib/Button/button.c b/examples/projects/native/button/lib/Button/button.c index 1fe921fc3..f8af23a4b 100644 --- a/examples/projects/native/button/lib/Button/button.c +++ b/examples/projects/native/button/lib/Button/button.c @@ -20,12 +20,41 @@ /******************************************************************************* * Definitions ******************************************************************************/ +#ifdef _WIN32 + #define get_character() getch() +#else + #define get_character() getchar() +#endif /******************************************************************************* * Variables ******************************************************************************/ profile_state_t button; +char button_ON[768] = " ______________________________________________\n" + " / /;\n" + " / ________________ \\ | / //\n" + " / / /; .-. //\n" + " / / MCU // |`-'| //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'\n"; + +char button_OFF[768] = " ______________________________________________\n" + " / /;\n" + " / ________________ .-. //\n" + " / / /; |`-'| //\n" + " / / MCU // | | //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'\n"; + /******************************************************************************* * Function ******************************************************************************/ @@ -36,7 +65,8 @@ void clear_screen() system("cls"); #else // Assume POSIX - system("clear"); + int systemRet; + systemRet = system("clear"); #endif } @@ -56,18 +86,7 @@ void Button_Init(void) // set_fl(STDOUT_FILENO, O_NONBLOCK); clear_screen(); printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); - printf( - " ______________________________________________\n" - " / /;\n" - " / ________________ .-. //\n" - " / / /; |`-'| //\n" - " / / MCU // | | //\n" - " / / // [ `-' ) //\n" - " / /______________ // `---' //\n" - " / '---------------' //\n" - " / //\n" - "/_____________________________________________//\n" - "'---------------------------------------------'\n"); + printf("%s", button_OFF); } #ifndef _WIN32 int kbhit(void) @@ -113,31 +132,13 @@ void Button_Loop(void) printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); button.state = !button.state; if (button.state) - printf( - " ______________________________________________\n" - " / /;\n" - " / ________________ \\ | / //\n" - " / / /; .-. //\n" - " / / MCU // |`-'| //\n" - " / / // [ `-' ) //\n" - " / /______________ // `---' //\n" - " / '---------------' //\n" - " / //\n" - "/_____________________________________________//\n" - "'---------------------------------------------'\n"); + { + printf("%s", button_ON); + } else - printf( - " ______________________________________________\n" - " / /;\n" - " / ________________ .-. //\n" - " / / /; |`-'| //\n" - " / / MCU // | | //\n" - " / / // [ `-' ) //\n" - " / /______________ // `---' //\n" - " / '---------------' //\n" - " / //\n" - "/_____________________________________________//\n" - "'---------------------------------------------'\n"); + { + printf("%s", button_OFF); + } } } } \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/lib/Button/button.c b/examples/projects/native/gate_wscom/lib/Button/button.c index 1fe921fc3..113457169 100644 --- a/examples/projects/native/gate_wscom/lib/Button/button.c +++ b/examples/projects/native/gate_wscom/lib/Button/button.c @@ -20,12 +20,41 @@ /******************************************************************************* * Definitions ******************************************************************************/ +#ifdef _WIN32 + #define get_character() getch() +#else + #define get_character() getchar() +#endif /******************************************************************************* * Variables ******************************************************************************/ profile_state_t button; +char button_ON[768] = " ______________________________________________\n" + " / /;\n" + " / ________________ \\ | / //\n" + " / / /; .-. //\n" + " / / MCU // |`-'| //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'\n"; + +char button_OFF[768] = " ______________________________________________\n" + " / /;\n" + " / ________________ .-. //\n" + " / / /; |`-'| //\n" + " / / MCU // | | //\n" + " / / // [ `-' ) //\n" + " / /______________ // `---' //\n" + " / '---------------' //\n" + " / //\n" + "/_____________________________________________//\n" + "'---------------------------------------------'\n"; + /******************************************************************************* * Function ******************************************************************************/ @@ -36,7 +65,8 @@ void clear_screen() system("cls"); #else // Assume POSIX - system("clear"); + int systemRet; + systemRet = system("clear"); #endif } @@ -55,19 +85,8 @@ void Button_Init(void) ProfileState_CreateService(&button, 0, "button", revision); // set_fl(STDOUT_FILENO, O_NONBLOCK); clear_screen(); - printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); - printf( - " ______________________________________________\n" - " / /;\n" - " / ________________ .-. //\n" - " / / /; |`-'| //\n" - " / / MCU // | | //\n" - " / / // [ `-' ) //\n" - " / /______________ // `---' //\n" - " / '---------------' //\n" - " / //\n" - "/_____________________________________________//\n" - "'---------------------------------------------'\n"); + printf("Button service running. Press Q to quit.\n\n\tUse the SPACE button to swap the button state.\n"); + printf("%s", button_OFF); } #ifndef _WIN32 int kbhit(void) @@ -105,39 +124,30 @@ int kbhit(void) ******************************************************************************/ void Button_Loop(void) { - if (kbhit()) + static bool stop_loop = false; + int c; + if ((kbhit()) && (!stop_loop)) { - if (getchar() == ' ') + c = get_character(); + if (c == ' ') { clear_screen(); - printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); + printf("Button service is running. Press Q to quit.\n\n\tUse the SPACE button to swap the button state.\n"); button.state = !button.state; if (button.state) - printf( - " ______________________________________________\n" - " / /;\n" - " / ________________ \\ | / //\n" - " / / /; .-. //\n" - " / / MCU // |`-'| //\n" - " / / // [ `-' ) //\n" - " / /______________ // `---' //\n" - " / '---------------' //\n" - " / //\n" - "/_____________________________________________//\n" - "'---------------------------------------------'\n"); + { + printf("%s", button_ON); + } else - printf( - " ______________________________________________\n" - " / /;\n" - " / ________________ .-. //\n" - " / / /; |`-'| //\n" - " / / MCU // | | //\n" - " / / // [ `-' ) //\n" - " / /______________ // `---' //\n" - " / '---------------' //\n" - " / //\n" - "/_____________________________________________//\n" - "'---------------------------------------------'\n"); + { + printf("%s", button_OFF); + } + } + else if ((c == 'q') || (c == 'Q')) + { + clear_screen(); + printf("\n\n--- Quit button service ---\n(press \"CTRL + C\" to close program)\n\n"); + stop_loop = true; } } -} \ No newline at end of file +} From 91aa43fa046cd436b957a12f4cb713c116719c48 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Thu, 3 Nov 2022 09:19:32 +0100 Subject: [PATCH 30/36] Add an exit function --- .../native/button/lib/Button/button.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/examples/projects/native/button/lib/Button/button.c b/examples/projects/native/button/lib/Button/button.c index f8af23a4b..113457169 100644 --- a/examples/projects/native/button/lib/Button/button.c +++ b/examples/projects/native/button/lib/Button/button.c @@ -85,7 +85,7 @@ void Button_Init(void) ProfileState_CreateService(&button, 0, "button", revision); // set_fl(STDOUT_FILENO, O_NONBLOCK); clear_screen(); - printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); + printf("Button service running. Press Q to quit.\n\n\tUse the SPACE button to swap the button state.\n"); printf("%s", button_OFF); } #ifndef _WIN32 @@ -124,12 +124,15 @@ int kbhit(void) ******************************************************************************/ void Button_Loop(void) { - if (kbhit()) + static bool stop_loop = false; + int c; + if ((kbhit()) && (!stop_loop)) { - if (getchar() == ' ') + c = get_character(); + if (c == ' ') { clear_screen(); - printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); + printf("Button service is running. Press Q to quit.\n\n\tUse the SPACE button to swap the button state.\n"); button.state = !button.state; if (button.state) { @@ -140,5 +143,11 @@ void Button_Loop(void) printf("%s", button_OFF); } } + else if ((c == 'q') || (c == 'Q')) + { + clear_screen(); + printf("\n\n--- Quit button service ---\n(press \"CTRL + C\" to close program)\n\n"); + stop_loop = true; + } } -} \ No newline at end of file +} From 5468b8f3ef9ee2865cd403b3aa72e07c52799288 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Thu, 3 Nov 2022 16:13:21 +0100 Subject: [PATCH 31/36] Link projects to platformio registry --- examples/apps/alarm_controller/library.json | 2 +- examples/apps/biometric-security/library.json | 2 +- examples/apps/start_controller/library.json | 2 +- .../projects/Arduino/bldc_simple_foc/lib/motor/library.json | 2 +- examples/projects/Arduino/button/lib/button/library.json | 2 +- .../projects/Arduino/fingerprint/lib/Fingerprint/library.json | 2 +- examples/projects/Arduino/lcd/lib/Lcd/library.json | 2 +- examples/projects/Arduino/led/lib/led/library.json | 2 +- .../projects/Arduino/servo_motor/lib/Servo_motor/library.json | 2 +- .../projects/Arduino/stepper_simple_foc/lib/motor/library.json | 2 +- examples/projects/ESP32/button/lib/button/library.json | 2 +- examples/projects/ESP32/button_arduino/lib/button/library.json | 2 +- examples/projects/ESP32/led/lib/led/library.json | 2 +- .../projects/NUCLEO-F072RB/barometer/lib/barometer/library.json | 2 +- examples/projects/NUCLEO-F072RB/button/lib/Button/library.json | 2 +- .../projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json | 2 +- .../NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-F401RE/button/lib/Button/library.json | 2 +- .../projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-F401RE/led/lib/Led/library.json | 2 +- examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json | 2 +- .../NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-F410RB/button/lib/Button/library.json | 2 +- .../projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json | 2 +- examples/projects/NUCLEO-F410RB/led/lib/Led/library.json | 2 +- .../NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-G431KB/button/lib/Button/library.json | 2 +- .../projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json | 2 +- .../NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-G474RE/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json | 2 +- examples/projects/NUCLEO-L432KC/button/lib/Button/library.json | 2 +- .../projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json | 2 +- .../NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json | 2 +- examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json | 2 +- examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json | 2 +- examples/projects/NUCLEO-L432KC/led/lib/Led/library.json | 2 +- .../NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json | 2 +- examples/projects/SAMD21XPLAINED/button/lib/button/library.json | 2 +- .../projects/STM32F4-discovery/button/lib/Button/library.json | 2 +- .../projects/STM32L4S5_discovery/button/lib/Button/library.json | 2 +- .../l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json | 2 +- .../l0/bike_alarm/start_controller/lib/Button/library.json | 2 +- examples/projects/l0/button/lib/Button/library.json | 2 +- examples/projects/l0/button_freertos/lib/Button/library.json | 2 +- examples/projects/l0/button_freertos/lib/Led/library.json | 2 +- .../l0/controller_motor/lib/Controller_motor/library.json | 2 +- examples/projects/l0/dc_motor/lib/DC_motor/library.json | 2 +- .../projects/l0/demo/detection_button/lib/Button/library.json | 2 +- .../l0/demo/detection_button/lib/Detection_Button/library.json | 2 +- .../demo/ledstrip_position/lib/LedStrip_Position/library.json | 2 +- .../projects/l0/demo/motor_copy_app/lib/motor_copy/library.json | 2 +- .../projects/l0/demo/motor_demo_app/lib/run_motor/library.json | 2 +- examples/projects/l0/distance/lib/Distance/library.json | 2 +- examples/projects/l0/dxl/lib/Dxl/library.json | 2 +- examples/projects/l0/fingerprint/lib/Fingerprint/library.json | 2 +- examples/projects/l0/gpio/lib/Gpio_dev/library.json | 2 +- examples/projects/l0/imu/lib/Imu/library.json | 2 +- examples/projects/l0/lcd/lib/Lcd/library.json | 2 +- examples/projects/l0/led/lib/Led/library.json | 2 +- examples/projects/l0/led_fader/lib/Led_Fader/library.json | 2 +- examples/projects/l0/led_strip/lib/Led_strip/library.json | 2 +- examples/projects/l0/light_sensor/lib/Light_sensor/library.json | 2 +- examples/projects/l0/load/lib/Load/library.json | 2 +- .../projects/l0/potentiometer/lib/Potentiometer/library.json | 2 +- examples/projects/l0/power_switch/lib/Power_switch/library.json | 2 +- examples/projects/l0/servo/lib/Servo/library.json | 2 +- examples/projects/l0/stepper/lib/Stepper/library.json | 2 +- examples/projects/native/button/lib/Button/library.json | 2 +- examples/projects/native/gate_wscom/lib/Button/library.json | 2 +- examples/projects/native/led/lib/Led/library.json | 2 +- tool_services/gate/library.json | 2 +- tool_services/inspector/library.json | 2 +- tool_services/pipe/library.json | 2 +- 75 files changed, 75 insertions(+), 75 deletions(-) diff --git a/examples/apps/alarm_controller/library.json b/examples/apps/alarm_controller/library.json index ff861194c..309e306f7 100644 --- a/examples/apps/alarm_controller/library.json +++ b/examples/apps/alarm_controller/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/apps/biometric-security/library.json b/examples/apps/biometric-security/library.json index 8d3c9b014..beb2e3b40 100644 --- a/examples/apps/biometric-security/library.json +++ b/examples/apps/biometric-security/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/apps/start_controller/library.json b/examples/apps/start_controller/library.json index 471bbff58..f6347e5a7 100644 --- a/examples/apps/start_controller/library.json +++ b/examples/apps/start_controller/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json b/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json index 16c57e576..c5e7b1ee2 100644 --- a/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json +++ b/examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json @@ -11,6 +11,6 @@ "build": {}, "dependencies": { "askuric/Simple FOC": "^2.2.1", - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/Arduino/button/lib/button/library.json b/examples/projects/Arduino/button/lib/button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/Arduino/button/lib/button/library.json +++ b/examples/projects/Arduino/button/lib/button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json b/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json index b094c1e5a..565f489d8 100644 --- a/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json +++ b/examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json @@ -5,7 +5,7 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0", + "luos/luos_engine": "^2.7.0", "adafruit/Adafruit Fingerprint Sensor Library": "*" } } \ No newline at end of file diff --git a/examples/projects/Arduino/lcd/lib/Lcd/library.json b/examples/projects/Arduino/lcd/lib/Lcd/library.json index ae7651dc2..40c26741b 100644 --- a/examples/projects/Arduino/lcd/lib/Lcd/library.json +++ b/examples/projects/Arduino/lcd/lib/Lcd/library.json @@ -5,7 +5,7 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0", + "luos/luos_engine": "^2.7.0", "arduino-libraries/LiquidCrystal": "*" } } \ No newline at end of file diff --git a/examples/projects/Arduino/led/lib/led/library.json b/examples/projects/Arduino/led/lib/led/library.json index 0a4473d60..4785f30a2 100644 --- a/examples/projects/Arduino/led/lib/led/library.json +++ b/examples/projects/Arduino/led/lib/led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json b/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json index bcb0f1472..50c5655ed 100644 --- a/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json +++ b/examples/projects/Arduino/servo_motor/lib/Servo_motor/library.json @@ -6,6 +6,6 @@ "licence": "MIT", "dependencies": { "arduino-libraries/servo": "^1.1.8", - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json b/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json index aabd11c50..6e91be34c 100644 --- a/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json +++ b/examples/projects/Arduino/stepper_simple_foc/lib/motor/library.json @@ -11,7 +11,7 @@ "build": {}, "dependencies": { "askuric/Simple FOC": "^2.2.1", - "luos_engine": "^2.7.0", + "luos/luos_engine": "^2.7.0", "Wire": "*", "SPI": "*" } diff --git a/examples/projects/ESP32/button/lib/button/library.json b/examples/projects/ESP32/button/lib/button/library.json index 8b98a7ff8..9b7bd536b 100644 --- a/examples/projects/ESP32/button/lib/button/library.json +++ b/examples/projects/ESP32/button/lib/button/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/ESP32/button_arduino/lib/button/library.json b/examples/projects/ESP32/button_arduino/lib/button/library.json index 8b98a7ff8..9b7bd536b 100644 --- a/examples/projects/ESP32/button_arduino/lib/button/library.json +++ b/examples/projects/ESP32/button_arduino/lib/button/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/ESP32/led/lib/led/library.json b/examples/projects/ESP32/led/lib/led/library.json index fbfb620e8..f51665f63 100644 --- a/examples/projects/ESP32/led/lib/led/library.json +++ b/examples/projects/ESP32/led/lib/led/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json b/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json index 4089d4f8f..deeb372e7 100644 --- a/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json +++ b/examples/projects/NUCLEO-F072RB/barometer/lib/barometer/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json b/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-F072RB/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json index 531e67778..74734cde9 100644 --- a/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-F072RB/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json index 36035b515..b1afb93ff 100644 --- a/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-F072RB/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json b/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-F401RE/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json index 531e67778..74734cde9 100644 --- a/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-F401RE/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json b/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json index 42c94e845..6e9cc57b3 100644 --- a/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json +++ b/examples/projects/NUCLEO-F401RE/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0", + "luos/luos_engine": "^2.7.0", "alias_save": "^1.0.0" }, "licence": "MIT" diff --git a/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json b/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json index c0abdfc9c..970884d5e 100644 --- a/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json +++ b/examples/projects/NUCLEO-F401RE/led/lib/alias_save/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json index 36035b515..b1afb93ff 100644 --- a/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-F401RE/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json b/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-F410RB/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json index 531e67778..74734cde9 100644 --- a/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-F410RB/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json b/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json index 0c25aec8f..41497c3ab 100644 --- a/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json +++ b/examples/projects/NUCLEO-F410RB/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json index 36035b515..b1afb93ff 100644 --- a/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-F410RB/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json b/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-G431KB/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json index 531e67778..74734cde9 100644 --- a/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-G431KB/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json index 36035b515..b1afb93ff 100644 --- a/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-G431KB/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json b/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json index 0c15ef172..58cd8322a 100644 --- a/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-G474RE/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json b/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-L073RZ/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json b/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json +++ b/examples/projects/NUCLEO-L432KC/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json b/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json index 531e67778..74734cde9 100644 --- a/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/NUCLEO-L432KC/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json b/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json index a51f1b41d..8b2fb9f34 100644 --- a/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json +++ b/examples/projects/NUCLEO-L432KC/fingerprint/lib/Fingerprint/library.json @@ -5,6 +5,6 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json b/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json index 0fceaa9af..e5334e103 100644 --- a/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json +++ b/examples/projects/NUCLEO-L432KC/gpio/lib/Gpio_dev/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json b/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json index bc9fbf8ea..2dbd7f3ef 100644 --- a/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json +++ b/examples/projects/NUCLEO-L432KC/lcd/lib/Lcd/library.json @@ -5,6 +5,6 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json b/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json index 0c25aec8f..41497c3ab 100644 --- a/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json +++ b/examples/projects/NUCLEO-L432KC/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json b/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json index 36035b515..b1afb93ff 100644 --- a/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/NUCLEO-L432KC/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json b/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json index b32a7b455..22e2a0c01 100644 --- a/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json +++ b/examples/projects/NUCLEO-L432KC/servo/lib/Servo/library.json @@ -5,6 +5,6 @@ "version": "1.0.0", "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/SAMD21XPLAINED/button/lib/button/library.json b/examples/projects/SAMD21XPLAINED/button/lib/button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/SAMD21XPLAINED/button/lib/button/library.json +++ b/examples/projects/SAMD21XPLAINED/button/lib/button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/STM32F4-discovery/button/lib/Button/library.json b/examples/projects/STM32F4-discovery/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/STM32F4-discovery/button/lib/Button/library.json +++ b/examples/projects/STM32F4-discovery/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json b/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json +++ b/examples/projects/STM32L4S5_discovery/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json b/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json index 1ce11d8e1..11737faaa 100644 --- a/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json +++ b/examples/projects/l0/bike_alarm/alarm_controller/lib/Led_Fader/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json b/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json +++ b/examples/projects/l0/bike_alarm/start_controller/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/button/lib/Button/library.json b/examples/projects/l0/button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/l0/button/lib/Button/library.json +++ b/examples/projects/l0/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/button_freertos/lib/Button/library.json b/examples/projects/l0/button_freertos/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/l0/button_freertos/lib/Button/library.json +++ b/examples/projects/l0/button_freertos/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/button_freertos/lib/Led/library.json b/examples/projects/l0/button_freertos/lib/Led/library.json index f585a58ab..90bcdd681 100644 --- a/examples/projects/l0/button_freertos/lib/Led/library.json +++ b/examples/projects/l0/button_freertos/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/controller_motor/lib/Controller_motor/library.json b/examples/projects/l0/controller_motor/lib/Controller_motor/library.json index 0d22e2eb9..b4465f28a 100644 --- a/examples/projects/l0/controller_motor/lib/Controller_motor/library.json +++ b/examples/projects/l0/controller_motor/lib/Controller_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/dc_motor/lib/DC_motor/library.json b/examples/projects/l0/dc_motor/lib/DC_motor/library.json index 531e67778..74734cde9 100644 --- a/examples/projects/l0/dc_motor/lib/DC_motor/library.json +++ b/examples/projects/l0/dc_motor/lib/DC_motor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/detection_button/lib/Button/library.json b/examples/projects/l0/demo/detection_button/lib/Button/library.json index 7f70b7ea5..8aad765f2 100644 --- a/examples/projects/l0/demo/detection_button/lib/Button/library.json +++ b/examples/projects/l0/demo/detection_button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json b/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json index 3f9db49f2..11633c33a 100644 --- a/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json +++ b/examples/projects/l0/demo/detection_button/lib/Detection_Button/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json b/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json index 27e1dd5ff..ef07d0ab2 100644 --- a/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json +++ b/examples/projects/l0/demo/ledstrip_position/lib/LedStrip_Position/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json b/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json index bb423bf98..bdb39d0cb 100644 --- a/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json +++ b/examples/projects/l0/demo/motor_copy_app/lib/motor_copy/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json b/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json index 6020593e0..030d18bd5 100644 --- a/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json +++ b/examples/projects/l0/demo/motor_demo_app/lib/run_motor/library.json @@ -8,7 +8,7 @@ "url": "https://www.luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/distance/lib/Distance/library.json b/examples/projects/l0/distance/lib/Distance/library.json index eae256cae..9300b7fd2 100644 --- a/examples/projects/l0/distance/lib/Distance/library.json +++ b/examples/projects/l0/distance/lib/Distance/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT", "build": { diff --git a/examples/projects/l0/dxl/lib/Dxl/library.json b/examples/projects/l0/dxl/lib/Dxl/library.json index fad9101b4..1dfaebbdb 100644 --- a/examples/projects/l0/dxl/lib/Dxl/library.json +++ b/examples/projects/l0/dxl/lib/Dxl/library.json @@ -9,7 +9,7 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "build": { "flags": [ diff --git a/examples/projects/l0/fingerprint/lib/Fingerprint/library.json b/examples/projects/l0/fingerprint/lib/Fingerprint/library.json index 972130a9b..a5010ff8e 100644 --- a/examples/projects/l0/fingerprint/lib/Fingerprint/library.json +++ b/examples/projects/l0/fingerprint/lib/Fingerprint/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/l0/gpio/lib/Gpio_dev/library.json b/examples/projects/l0/gpio/lib/Gpio_dev/library.json index 0fceaa9af..e5334e103 100644 --- a/examples/projects/l0/gpio/lib/Gpio_dev/library.json +++ b/examples/projects/l0/gpio/lib/Gpio_dev/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/imu/lib/Imu/library.json b/examples/projects/l0/imu/lib/Imu/library.json index 11e63f3f5..60b7e519b 100644 --- a/examples/projects/l0/imu/lib/Imu/library.json +++ b/examples/projects/l0/imu/lib/Imu/library.json @@ -9,7 +9,7 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "build": { "flags": [ diff --git a/examples/projects/l0/lcd/lib/Lcd/library.json b/examples/projects/l0/lcd/lib/Lcd/library.json index 3bf7d0f90..035d4b00e 100644 --- a/examples/projects/l0/lcd/lib/Lcd/library.json +++ b/examples/projects/l0/lcd/lib/Lcd/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/examples/projects/l0/led/lib/Led/library.json b/examples/projects/l0/led/lib/Led/library.json index 0c25aec8f..41497c3ab 100644 --- a/examples/projects/l0/led/lib/Led/library.json +++ b/examples/projects/l0/led/lib/Led/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/led_fader/lib/Led_Fader/library.json b/examples/projects/l0/led_fader/lib/Led_Fader/library.json index 1ce11d8e1..11737faaa 100644 --- a/examples/projects/l0/led_fader/lib/Led_Fader/library.json +++ b/examples/projects/l0/led_fader/lib/Led_Fader/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/led_strip/lib/Led_strip/library.json b/examples/projects/l0/led_strip/lib/Led_strip/library.json index dd1ad75d7..af1b0be4d 100644 --- a/examples/projects/l0/led_strip/lib/Led_strip/library.json +++ b/examples/projects/l0/led_strip/lib/Led_strip/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/light_sensor/lib/Light_sensor/library.json b/examples/projects/l0/light_sensor/lib/Light_sensor/library.json index 5c50eb7b2..c99051baf 100644 --- a/examples/projects/l0/light_sensor/lib/Light_sensor/library.json +++ b/examples/projects/l0/light_sensor/lib/Light_sensor/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/load/lib/Load/library.json b/examples/projects/l0/load/lib/Load/library.json index 6574cf6b1..55ae31729 100644 --- a/examples/projects/l0/load/lib/Load/library.json +++ b/examples/projects/l0/load/lib/Load/library.json @@ -9,7 +9,7 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "build": { "flags": [ diff --git a/examples/projects/l0/potentiometer/lib/Potentiometer/library.json b/examples/projects/l0/potentiometer/lib/Potentiometer/library.json index 36035b515..b1afb93ff 100644 --- a/examples/projects/l0/potentiometer/lib/Potentiometer/library.json +++ b/examples/projects/l0/potentiometer/lib/Potentiometer/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/power_switch/lib/Power_switch/library.json b/examples/projects/l0/power_switch/lib/Power_switch/library.json index 49fa0a64c..e1a82e22b 100644 --- a/examples/projects/l0/power_switch/lib/Power_switch/library.json +++ b/examples/projects/l0/power_switch/lib/Power_switch/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/servo/lib/Servo/library.json b/examples/projects/l0/servo/lib/Servo/library.json index 7b15dde2c..94de8010c 100644 --- a/examples/projects/l0/servo/lib/Servo/library.json +++ b/examples/projects/l0/servo/lib/Servo/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/l0/stepper/lib/Stepper/library.json b/examples/projects/l0/stepper/lib/Stepper/library.json index b739cc4f8..947a56520 100644 --- a/examples/projects/l0/stepper/lib/Stepper/library.json +++ b/examples/projects/l0/stepper/lib/Stepper/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/native/button/lib/Button/library.json b/examples/projects/native/button/lib/Button/library.json index bebb162e8..db2921229 100644 --- a/examples/projects/native/button/lib/Button/library.json +++ b/examples/projects/native/button/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/native/gate_wscom/lib/Button/library.json b/examples/projects/native/gate_wscom/lib/Button/library.json index bebb162e8..db2921229 100644 --- a/examples/projects/native/gate_wscom/lib/Button/library.json +++ b/examples/projects/native/gate_wscom/lib/Button/library.json @@ -8,7 +8,7 @@ "url": "https://luos.io" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "licence": "MIT" } \ No newline at end of file diff --git a/examples/projects/native/led/lib/Led/library.json b/examples/projects/native/led/lib/Led/library.json index 97ddfceb4..0d7bac633 100644 --- a/examples/projects/native/led/lib/Led/library.json +++ b/examples/projects/native/led/lib/Led/library.json @@ -9,6 +9,6 @@ }, "licence": "MIT", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" } } \ No newline at end of file diff --git a/tool_services/gate/library.json b/tool_services/gate/library.json index 8ba29f9ab..a9ff3dee5 100644 --- a/tool_services/gate/library.json +++ b/tool_services/gate/library.json @@ -14,7 +14,7 @@ "extraScript": "select_format_script.py" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "repository": { "type": "git", diff --git a/tool_services/inspector/library.json b/tool_services/inspector/library.json index 2c2a10c0a..b1a7aa31c 100644 --- a/tool_services/inspector/library.json +++ b/tool_services/inspector/library.json @@ -11,7 +11,7 @@ "licence": "MIT", "headers": "inspector.h", "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "repository": { "type": "git", diff --git a/tool_services/pipe/library.json b/tool_services/pipe/library.json index f25936fcb..0f6f028ad 100644 --- a/tool_services/pipe/library.json +++ b/tool_services/pipe/library.json @@ -14,7 +14,7 @@ "extraScript": "select_hal_script.py" }, "dependencies": { - "luos_engine": "^2.7.0" + "luos/luos_engine": "^2.7.0" }, "repository": { "type": "git", From e85890ba400e6d19eed054d7b35efbc07fb79db9 Mon Sep 17 00:00:00 2001 From: Benjamin Christau Date: Thu, 3 Nov 2022 16:58:09 +0100 Subject: [PATCH 32/36] Fix broken link to Bootloader tutorial --- examples/projects/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projects/README.md b/examples/projects/README.md index 59df472fa..f2c828ada 100644 --- a/examples/projects/README.md +++ b/examples/projects/README.md @@ -18,7 +18,7 @@ This folder contains the sources of every examples sorted by boards. In most of the examples folder you will find a project called `Bootloader`, you can use this project to compile a Luos engine bootloader and load it into your board. All the other examples have a `*_with_bootloader` compilation mode allowing you to load your program using the bootloader. -For further informations please follow our [bootloader tutorial](https://www.luos.io/tutorials/bootloader/intro). +For further informations please follow our [bootloader tutorial](https://www.luos.io/tutorials/bootloader). From dcc0f844500c19449bb0552a90beee69bc4be685 Mon Sep 17 00:00:00 2001 From: Benjamin Christau Date: Thu, 3 Nov 2022 17:00:45 +0100 Subject: [PATCH 33/36] Fix PlatformIO badge link #1 --- examples/projects/native/led/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projects/native/led/README.md b/examples/projects/native/led/README.md index ae24a9447..4a4c02e1d 100644 --- a/examples/projects/native/led/README.md +++ b/examples/projects/native/led/README.md @@ -5,7 +5,7 @@ [![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) [![](http://certified.luos.io)](https://luos.io) -[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos_engine/library/Luos.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos/library/luos_engine.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) [![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) [![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) From 9ec743f8f98004fb844d850beae1cc9fa7d12780 Mon Sep 17 00:00:00 2001 From: Benjamin Christau Date: Thu, 3 Nov 2022 17:09:38 +0100 Subject: [PATCH 34/36] Fix PlatformIO badge link #1 --- examples/projects/native/button/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projects/native/button/README.md b/examples/projects/native/button/README.md index ae24a9447..4a4c02e1d 100644 --- a/examples/projects/native/button/README.md +++ b/examples/projects/native/button/README.md @@ -5,7 +5,7 @@ [![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) [![](http://certified.luos.io)](https://luos.io) -[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos_engine/library/Luos.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos/library/luos_engine.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) [![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) [![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) From 59571a89511a59d451279bd351a8ab4c971e0e04 Mon Sep 17 00:00:00 2001 From: Benjamin Christau Date: Thu, 3 Nov 2022 17:11:42 +0100 Subject: [PATCH 35/36] Fix PlatformIO badge link #2 --- examples/projects/native/gate_wscom/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projects/native/gate_wscom/README.md b/examples/projects/native/gate_wscom/README.md index ae24a9447..4a4c02e1d 100644 --- a/examples/projects/native/gate_wscom/README.md +++ b/examples/projects/native/gate_wscom/README.md @@ -5,7 +5,7 @@ [![](https://img.shields.io/badge/Luos-Documentation-34A3B4)](https://docs.luos.io) [![](http://certified.luos.io)](https://luos.io) -[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos_engine/library/Luos.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/luos/library/luos_engine.svg)](https://registry.platformio.org/libraries/luos_engine/luos_engine) [![](https://img.shields.io/discord/902486791658041364?label=Discord&logo=discord&style=social)](http://bit.ly/JoinLuosDiscord) [![](https://img.shields.io/reddit/subreddit-subscribers/Luos?style=social)](https://www.reddit.com/r/Luos) From 55e50d2a08111cb4ba46fe4f91976f920081b11b Mon Sep 17 00:00:00 2001 From: Benjamin Christau Date: Thu, 3 Nov 2022 17:16:02 +0100 Subject: [PATCH 36/36] Fix PlatformIO badge link #3 --- examples/projects/native/led/lib/Led/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projects/native/led/lib/Led/README.md b/examples/projects/native/led/lib/Led/README.md index 34ffbab82..4d95e3d9c 100644 --- a/examples/projects/native/led/lib/Led/README.md +++ b/examples/projects/native/led/lib/Led/README.md @@ -1,4 +1,4 @@ -Luos logo +Luos logo [![](http://certified.luos.io)](https://luos.io) [![](https://img.shields.io/github/license/Luos-io/Examples)](