-
-
Notifications
You must be signed in to change notification settings - Fork 97
[lightning-ln882h] Add support for Lightning LN882H family #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 41 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
a8058c6
fix mbedtls bad pointer in function call (prototype mismatch)
lamauny f59d1fb
fix issue with weak families functions implemented in static library,…
lamauny cab456b
[ln882x] add support for lightning ln882x & ln882h families
lamauny 9efbcb8
add i2c (wire) support
lamauny 95063cc
add analog (adc) support
lamauny 4ec6b77
add watchdog support
lamauny 11550ca
[ln882x] changed default uart 0/1 pins; added board wl2s
lamauny 2b93209
[ln882x] fix IRQ & ADC pins
lamauny c55a938
[ln882x] boards cosmetic
lamauny 5b37010
[ln882x] wifi sta use otp mac addr by default; re-enabled wifi powers…
lamauny 79ad9ad
[ln882x] clang-format clean code
lamauny 8609794
[ln882x] clang-format clean code
lamauny d3eee5d
Update families.json
kuba2k2 addb243
Apply suggestions from code review
kuba2k2 dc4d0a6
[ln882x] reformat json board files
lamauny 9f8ccc4
[ln882x] os_queue cleanup
lamauny 74518c3
[ln882x] removed Beken auto-download command
lamauny 7fe87f6
[ln882x] removed personal script file
lamauny 04be87b
[ln882x] removed unusefull pi section in debugging.md
lamauny 4e24d8d
[ln882x] removed Arduino.h and changed private I2C definition
lamauny 347158f
Merge branch 'feature/ln882x' of https://github.com/lamauny/libretiny…
lamauny 87b61f6
[ln882x] updated README.md
lamauny d19ee1d
[ln882x] changed pin naming scheme to PA/PB
lamauny f716aa7
[ln882x] clean code
lamauny 3c332f0
[ln882x] clean code
lamauny 0d751cf
[ln882x] add ota image verification
lamauny acbb572
Update push-dev.yml
lamauny c01e38b
[ln882x] fix boards ADC missing inputs]
lamauny badfb69
[ln882x] removed reg_xxx fixup files and use include guards instead
lamauny 06c288c
[ln882x] cleanup code
lamauny 52626ad
Merge branch 'feature/ln882x' of https://github.com/lamauny/libretiny…
lamauny 43f1634
[ln882x] cleanup code
lamauny 7ff923c
[ln882x] fix lt_init weak functions linking
lamauny 369566d
[ln882x] revert lt_api.h modification, fixed with previous commit
lamauny 74ffeb9
[ln882x] setup UF2 firmware for flasher with partitions
lamauny 8642601
[ln882x] update README.md
lamauny 02f6380
[ln882x] include ln_wifi.h and ln_serial.h to avoid including bad hea…
lamauny 0be2e6e
Merge branch 'libretiny-eu:master' into feature/ln882x
lamauny 26eb5bf
[ln882x] Replace RingBuffer by SerialRingBuffer
lamauny 12747b6
[ln882x] clang-format
lamauny 25e7ae8
[ln882x] update README.md
lamauny 263e51c
Apply suggestions from code review
kuba2k2 dff4baf
Reformat board JSON files
kuba2k2 c957054
Add mkdocs link redirect
kuba2k2 b209228
Update ltchiptool to v4.12.0
kuba2k2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ on: | |
| push: | ||
| branches: ["**"] | ||
| pull_request: | ||
| workflow_dispatch: | ||
| jobs: | ||
| lint-clang: | ||
| name: Run Clang lint | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,149 @@ | ||
| { | ||
| "pcb": { | ||
| "ic": { | ||
| "7": { | ||
| "IO": "I", | ||
| "CTRL": "CEN" | ||
| }, | ||
| "8": { | ||
| "C_NAME": "PA_0", | ||
| "GPIO": "PA00", | ||
| "IRQ": null, | ||
| "ADC": 2, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "9": { | ||
| "C_NAME": "PA_1", | ||
| "GPIO": "PA01", | ||
| "IRQ": null, | ||
| "ADC": 3, | ||
| "SWD": "DIO", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "10": { | ||
| "C_NAME": "PA_2", | ||
| "GPIO": "PA02", | ||
| "IRQ": null, | ||
| "UART": "0_TX", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "11": { | ||
| "C_NAME": "PA_3", | ||
| "GPIO": "PA03", | ||
| "IRQ": null, | ||
| "UART": "0_RX", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "12": { | ||
| "C_NAME": "PA_4", | ||
| "GPIO": "PA04", | ||
| "ADC": 4, | ||
| "SWD": "CLK", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "13": { | ||
| "C_NAME": "PA_5", | ||
| "GPIO": "PA05", | ||
| "IRQ": null, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "14": { | ||
| "C_NAME": "PA_6", | ||
| "GPIO": "PA06", | ||
| "IRQ": null, | ||
| "SD": "D2", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "15": { | ||
| "C_NAME": "PA_7", | ||
| "GPIO": "PA07", | ||
| "IRQ": null, | ||
| "SD": "D3", | ||
| "I2S": "0_RX", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "16": { | ||
| "C_NAME": "PA_8", | ||
| "GPIO": "PA08", | ||
| "CTRL": "BOOT0", | ||
| "SD": "CMD", | ||
| "I2S": "0_WS", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "17": { | ||
| "C_NAME": "PA_9", | ||
| "GPIO": "PA09", | ||
| "CTRL": "BOOT1", | ||
| "SD": "CLK", | ||
| "I2S": "0_SCLK", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "21": { | ||
| "C_NAME": "PA_10", | ||
| "GPIO": "PA10", | ||
| "SD": "D0", | ||
| "I2S": "0_TX", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "22": { | ||
| "C_NAME": "PA_11", | ||
| "GPIO": "PA11", | ||
| "SD": "D1", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "23": { | ||
| "C_NAME": "PA_12", | ||
| "GPIO": "PA12", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "24": { | ||
| "C_NAME": "PB_3", | ||
| "GPIO": "PB03", | ||
| "GPIONUM": 19, | ||
| "ADC": 5, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "25": { | ||
| "C_NAME": "PB_4", | ||
| "GPIO": "PB04", | ||
| "GPIONUM": 20, | ||
| "ADC": 6, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "26": { | ||
| "C_NAME": "PB_5", | ||
| "GPIO": "PB05", | ||
| "GPIONUM": 21, | ||
| "ADC": 7, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "27": { | ||
| "C_NAME": "PB_6", | ||
| "GPIO": "PB06", | ||
| "GPIONUM": 22, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "28": { | ||
| "C_NAME": "PB_7", | ||
| "GPIO": "PB07", | ||
| "GPIONUM": 23, | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "29": { | ||
| "C_NAME": "PB_8", | ||
| "GPIO": "PB08", | ||
| "GPIONUM": 24, | ||
| "UART": "1_RX", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| }, | ||
| "30": { | ||
| "C_NAME": "PB_9", | ||
| "GPIO": "PB09", | ||
| "GPIONUM": 25, | ||
| "IRQ": null, | ||
| "UART": "1_TX", | ||
| "I2C": ["0_SCL","0_SDA"] | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "build": { | ||
| "family": "LN882H", | ||
| "ldscript": "ln882hki_bsp.ld", | ||
| "bootfile": "boot_ln882h.bin" | ||
| }, | ||
| "flash": { | ||
| "boot": "0x000000+0x06000", | ||
| "part_tab": "0x006000+0x01000", | ||
| "app": "0x007000+0x12C000", | ||
| "ota": "0x133000+0xAA000", | ||
| "nvds": "0x1DD000+0x03000", | ||
| "kv": "0x1E0000+0x04000", | ||
| "kvs": "0x1E4000+0x08000", | ||
| "user": "0x1EC000+0x14000" | ||
| }, | ||
| "upload": { | ||
| "flash_size": 2097152, | ||
| "maximum_size": 1228800 | ||
| }, | ||
| "connectivity": [ | ||
| "ble" | ||
| ], | ||
| "doc": { | ||
| "params": { | ||
| "extra": { | ||
| "Bluetooth": "BLE v5.1" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "build": { | ||
| "f_cpu": "160000000L", | ||
| "prefix": "arm-none-eabi-" | ||
kuba2k2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "flash": { | ||
| }, | ||
| "connectivity": [ | ||
| "wifi" | ||
| ], | ||
| "debug": { | ||
| "protocol": "openocd", | ||
| "protocols": [ | ||
| "openocd" | ||
| ], | ||
| "openocd_config": "ln882x.cfg", | ||
| "gdb_init": [ | ||
| "mem 0x00000000 0x10000000 ro" | ||
| ] | ||
| }, | ||
| "upload": { | ||
| "maximum_ram_size": 302080, | ||
| "require_upload_port": true, | ||
| "speed": 115200, | ||
| "protocol": "uart", | ||
| "protocols": [ | ||
| "uart" | ||
| ] | ||
| }, | ||
| "doc": { | ||
| "params": { | ||
| "manufacturer": "Lightning", | ||
| "series": "LN882X", | ||
| "voltage": "3.0V - 3.6V", | ||
| "extra": { | ||
| "Wi-Fi": "802.11 b/g/n" | ||
| } | ||
| }, | ||
| "links": { | ||
| "Info & flashing guide": "../../docs/platform/lightning-ln882x/README.md", | ||
| "Debugging": "../../docs/platform/lightning-ln882x/debugging.md" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "pcb": { | ||
| "test_pads": { | ||
| "TBOOT": "ln-02.back.boot.anchor" | ||
| }, | ||
| "back": [ | ||
| { | ||
| "id": "boot", | ||
| "name": "label_line_up", | ||
| "pos": "12,12.1", | ||
| "vars": { | ||
| "DIR": "right", | ||
| "W": 2.5, | ||
| "H": 0 | ||
| } | ||
| }, | ||
| { | ||
| "name": "test_pad_1mm", | ||
| "pos": "11,12" | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| { | ||
| "pcb": { | ||
| "templates": [ | ||
| "tuya2", | ||
| "pcb-black", | ||
| "rf-type1" | ||
| ], | ||
| "scale": 10.5, | ||
| "pinout_hidden": "I2S,TRIG,WAKE,CTS,RTS,SD,SPI,I2C", | ||
| "pinout": { | ||
| "1": { | ||
| "PWR": 3.3 | ||
| }, | ||
| "2": { | ||
| "IC": 22, | ||
| "ARD": "D0" | ||
| }, | ||
| "3": { | ||
| "GND": null | ||
| }, | ||
| "4": { | ||
| "IC": 24, | ||
| "ARD": ["D1","A0"] | ||
| }, | ||
| "5": { | ||
| "IC": 11, | ||
| "ARD": "D2" | ||
| }, | ||
| "6": { | ||
| "IC": 29, | ||
| "ARD": "D3" | ||
| }, | ||
| "7": { | ||
| "IC": 10, | ||
| "ARD": "D4" | ||
| }, | ||
| "8": { | ||
| "IC": 30, | ||
| "ARD": "D5" | ||
| }, | ||
| "9": { | ||
| "IC": 9, | ||
| "ARD": ["D6","A1"] | ||
| }, | ||
| "10": { | ||
| "IC": 7 | ||
| }, | ||
| "11": { | ||
| "IC": 8, | ||
| "ARD": ["D7","A2"] | ||
| }, | ||
| "TBOOT": { | ||
| "IC": 17, | ||
| "ARD": "D8" | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.