cap9qd
cf52021d38
[core] Split reboot reasons due to wakeup ( #254 )
...
* Updates to break out wakeup reasons.
Per https://github.com/libretiny-eu/libretiny/issues/234
* Update cores/common/base/api/lt_device.h
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
* fix clang-format
* Fix formatting of python files.
* Update lt_device.h
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
2024-02-25 18:45:22 +01:00
cap9qd
b78c9387a6
[beken-72xx] Fix duration rollover in deep sleep ( #253 )
2024-02-22 20:24:40 +01:00
Hajo Noerenberg
4cddc01f22
[libs] Fix MD5 calculation during OTA update ( #240 )
2024-01-17 22:49:33 +01:00
Piotr Szulc
1d80b5fff7
[beken-72xx] Free list returned by wlan_sta_scan_result() ( #226 )
...
* Free list returned by wlan_sta_scan_result()
* scanAlloc improvements
There were a few things I didn't like about this function:
1) realloc() was called a bit too often.
2) if realloc() failed, the previous memory was not freed.
3) scanAlloc returned previous count or 255 on error. But there was no real check for error and 255 could've been used as index to null. I think it's better to simple return boolean.
4) scanAlloc was clearing memory only up to (and excluding) the new entries.
* Corrected clearing new entries in scanAlloc
* scanAlloc() now returns number of allocated items
* Fixed compilation issues related to goto.
2024-01-06 19:41:01 +01:00
Piotr Szulc
1e3a82f439
[beken-72xx] Improve ddev ADC support ( #220 )
2024-01-06 19:40:33 +01:00
Cossid
c90794e9f5
[beken-72xx] Allow connecting to specific BSSID if provided ( #209 )
...
* Switch to bk_wlan_start_sta_adv for specific bssid control.
* Allow split sta/adv_sta configs.
* Add wifi_mode back for regular STA mode.
* Fix apparent bug of setting null/empty wifi key.
Reset STA_ADV_CFG.dhcp_mode in reconnect, as it seems to not survive for some reason.
Do les _CFG setting in reconnect()
* Move all _CFG setting to begin()
* Fix dhcp_mode in STA_ADV_CFG.
* Remove no longer necessary dhcp_mode re-set.
* Formatting cleanups.
* Formatting.
* Update cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
* Apply suggestions from code review
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
2024-01-06 19:40:08 +01:00
Piotr Szulc
eed39c9cfb
[beken-72xx] Pause PWM instead of stopping, track PWM state ( #222 )
...
* Pause PWM instead of stopping on duty cycle 0.
* Merged paused and stopped conditions
2023-12-16 13:57:47 +01:00
Piotr Szulc
7bd6d1d815
[beken-72xx] Fix stopping PWM, use pin-scoped PWM struct ( #215 )
...
* Fixed stopping PWM
* Clang-formatted as required
* Use separate memory block for each pwm pin
2023-12-08 19:20:41 +01:00
Mike La Spina
3b79636d00
[libs] Fix SerialClass available() return value ( #173 )
...
Co-authored-by: descipher <120155735+GelidusResearch@users.noreply.github.com >
2023-09-21 17:19:51 +02:00
Kuba Szczodrzyński
57c43ce515
[libs] Fix possible MD5 memory leak in Update
2023-08-30 11:35:11 +02:00
Kuba Szczodrzyński
1ac3d30d84
[libs] Implement Update MD5
2023-08-29 19:19:28 +02:00
Kuba Szczodrzyński
27393e47c3
[beken-72xx] Initialize UART to fix deep sleep
2023-08-23 16:08:03 +02:00
Péter Sárközi
bd47772c04
[beken-72xx] Fix GPIO deep sleep wakeup edge ( #159 )
...
Manufacturer docs: https://docs-bekencorp-com.translate.goog/sdk_3.0.x/bk7238/html/developer-guide/power_save/sleep_test.html?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=hu&_x_tr_pto=wapp
Discussion: https://github.com/libretiny-eu/libretiny-esphome/pull/11
2023-08-23 16:06:55 +02:00
Hajo Noerenberg
ccf21b4eab
[realtek-ambz] Enable Mbed-TLS for MD5 hashing, remove Polar SSL ( #156 )
...
* Enable Mbed-TLS, remove Polar SSL
* Reformat lt_defs.h
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
2023-08-17 15:20:02 +02:00
Péter Sárközi
93e0a5d066
[beken-72xx] Implement deep sleep ( #140 )
...
* Initial support code for Deep Sleep
* Global functions
* Remove unnecessary override
* clang-format
* Support for multiple pins
* Fix math
* Add a way to unset GPIOs
* Clang format
* Update brief
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
2023-07-13 18:00:14 +02:00
Kuba Szczodrzyński
4d81fcac26
[realtek-ambz2] Flash bootloader & partition table in UF2
2023-07-13 17:00:42 +02:00
Kuba Szczodrzyński
a3bbdf1c16
[core] Migrate to uf2ota v5.0.0, refactor OTA API
2023-07-13 12:15:48 +02:00
Kuba Szczodrzyński
39df2e7b54
[core] Move C types to API units
2023-07-13 12:06:37 +02:00
Kuba Szczodrzyński
e38e53bac0
[core] Split lt_api.c into separate units
2023-06-22 18:30:14 +02:00
Kuba Szczodrzyński
b38a4d5d46
[core] Add hardware peripheral availability defines
2023-06-21 17:02:48 +02:00
Kuba Szczodrzyński
73ede2838c
Merge branch 'master' into family/ambz2
2023-06-20 18:53:46 +02:00
Kuba Szczodrzyński
273a86532b
[beken-72xx] Add initial BK7231Q support, add WA2 board
2023-06-20 17:22:12 +02:00
Kuba Szczodrzyński
05e13dafed
[beken-72xx] Rename BK7231U to BK7231T, add BK7231Q family
2023-06-20 17:19:21 +02:00
Kuba Szczodrzyński
e7f35c584b
[realtek-ambz2] Reuse Log UART for Serial
2023-05-31 12:37:34 +02:00
Kuba Szczodrzyński
1e49c3ff6f
[realtek-ambz2] Fix missing flash API resource lock unit
2023-05-31 12:36:46 +02:00
Kuba Szczodrzyński
9c6e9d1525
[realtek-ambz2] Disable SoftwareSerial and Wire
2023-05-30 18:15:44 +02:00
Kuba Szczodrzyński
f1e41f7cc1
[realtek-ambz2] Add GDB init command
2023-05-29 22:25:23 +02:00
Kuba Szczodrzyński
6135e4f7b0
[boards] Update flash layouts, add W302 chip
2023-05-29 16:16:58 +02:00
Kuba Szczodrzyński
af8c7417b3
[realtek-ambz2] Keep LOG UART enabled, wipe OTA2 in UF2
2023-05-28 19:18:54 +02:00
Kuba Szczodrzyński
babdb1287f
[realtek-ambz2] Replace lwIP with external port
2023-05-27 20:54:40 +02:00
Kuba Szczodrzyński
4532c88873
[core] Add lt_set_debug_mode() function, update core types
2023-05-27 16:03:46 +02:00
Kuba Szczodrzyński
87ad0798e4
[realtek-ambz2] Adapt WiFi library to ambz2_sdk
2023-05-27 15:41:07 +02:00
Kuba Szczodrzyński
a80032d46c
[core] Move Wiring common core to wiring/, reset watchdog in yield()
2023-05-26 15:29:33 +02:00
Kuba Szczodrzyński
4dae304f51
[core] Add lt_get_device_mac() function
2023-05-25 20:43:00 +02:00
Kuba Szczodrzyński
9b7d34fa65
[realtek-ambz2] Fix C++ support, implement SerialClass
2023-05-25 14:35:41 +02:00
Kuba Szczodrzyński
c0cc602c9a
[core] Add configure() for SerialClass
2023-05-25 14:29:35 +02:00
Kuba Szczodrzyński
e5f98ff41f
[core] Refactor Wiring, use PinData for parameters
2023-05-24 22:01:05 +02:00
Kuba Szczodrzyński
bc74c21599
[realtek-ambz2] Enable compilation of Arduino core
2023-05-24 13:02:33 +02:00
Kuba Szczodrzyński
3836ad20b7
[core] Refactor SerialClass as API library
2023-05-24 11:55:07 +02:00
Kuba Szczodrzyński
b073290989
[realtek-ambz2] Implement base C API
2023-05-23 19:54:00 +02:00
Kuba Szczodrzyński
c40bdd68af
[realtek-ambz2] Use external FreeRTOS port
2023-05-23 15:14:59 +02:00
Kuba Szczodrzyński
620e457eb6
[realtek-ambz2] Fix C++ linker support
2023-05-23 12:56:42 +02:00
Kuba Szczodrzyński
8c636e44f7
[realtek-ambz2] Add initial SDK fixups and API layer
2023-05-23 12:11:17 +02:00
Kuba Szczodrzyński
07e9aa1ded
[realtek-ambz2] Make compiling base core possible
2023-05-19 10:42:59 +02:00
Kuba Szczodrzyński
752768b1e2
[docs] Update supported chip list, remove AmebaZ2 boards for now
2023-05-18 21:03:08 +02:00
Stroe Andrei Catalin
219415174e
[libs] Fix mDNS after a wifi disconnect / reconnect event ( #112 )
...
* [libs] Fix mDNS not responding when device disconnects / reconnects to wifi
* Minor bugfix
* Reworked mDNS fix
* Update LwIPmDNS.cpp
2023-05-01 21:44:03 +02:00
Kuba Szczodrzyński
8337ac121e
[core] Fix reentrant malloc wrappers
2023-05-01 20:58:37 +02:00
Kuba Szczodrzyński
d332315e7a
[beken-72xx] Fix WiFi compilation issue
2023-04-28 21:24:41 +02:00
Péter Sárközi
882f58bae4
[beken-72xx] Implement WiFi powersave ( #111 )
...
* Rebase
* Clang-format
2023-04-28 17:21:49 +02:00
Kuba Szczodrzyński
dbc905dca3
[core] Rename project to LibreTiny
2023-04-27 23:30:46 +02:00