Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 Jan 5, 2025
f59d1fb
fix issue with weak families functions implemented in static library,…
lamauny Jan 5, 2025
cab456b
[ln882x] add support for lightning ln882x & ln882h families
lamauny Jan 5, 2025
9efbcb8
add i2c (wire) support
lamauny Jan 19, 2025
95063cc
add analog (adc) support
lamauny Jan 19, 2025
4ec6b77
add watchdog support
lamauny Jan 19, 2025
11550ca
[ln882x] changed default uart 0/1 pins; added board wl2s
lamauny Feb 2, 2025
2b93209
[ln882x] fix IRQ & ADC pins
lamauny Feb 2, 2025
c55a938
[ln882x] boards cosmetic
lamauny Feb 2, 2025
5b37010
[ln882x] wifi sta use otp mac addr by default; re-enabled wifi powers…
lamauny Feb 2, 2025
79ad9ad
[ln882x] clang-format clean code
lamauny Feb 8, 2025
8609794
[ln882x] clang-format clean code
lamauny Feb 8, 2025
d3eee5d
Update families.json
kuba2k2 Feb 8, 2025
addb243
Apply suggestions from code review
kuba2k2 Feb 8, 2025
dc4d0a6
[ln882x] reformat json board files
lamauny Feb 9, 2025
9f8ccc4
[ln882x] os_queue cleanup
lamauny Feb 9, 2025
74518c3
[ln882x] removed Beken auto-download command
lamauny Feb 9, 2025
7fe87f6
[ln882x] removed personal script file
lamauny Feb 9, 2025
04be87b
[ln882x] removed unusefull pi section in debugging.md
lamauny Feb 9, 2025
4e24d8d
[ln882x] removed Arduino.h and changed private I2C definition
lamauny Feb 9, 2025
347158f
Merge branch 'feature/ln882x' of https://github.com/lamauny/libretiny…
lamauny Feb 9, 2025
87b61f6
[ln882x] updated README.md
lamauny Feb 9, 2025
d19ee1d
[ln882x] changed pin naming scheme to PA/PB
lamauny Feb 10, 2025
f716aa7
[ln882x] clean code
lamauny Feb 11, 2025
3c332f0
[ln882x] clean code
lamauny Feb 11, 2025
0d751cf
[ln882x] add ota image verification
lamauny Feb 19, 2025
acbb572
Update push-dev.yml
lamauny Feb 28, 2025
c01e38b
[ln882x] fix boards ADC missing inputs]
lamauny Feb 28, 2025
badfb69
[ln882x] removed reg_xxx fixup files and use include guards instead
lamauny Feb 28, 2025
06c288c
[ln882x] cleanup code
lamauny Feb 28, 2025
52626ad
Merge branch 'feature/ln882x' of https://github.com/lamauny/libretiny…
lamauny Feb 28, 2025
43f1634
[ln882x] cleanup code
lamauny Feb 28, 2025
7ff923c
[ln882x] fix lt_init weak functions linking
lamauny Mar 1, 2025
369566d
[ln882x] revert lt_api.h modification, fixed with previous commit
lamauny Mar 1, 2025
74ffeb9
[ln882x] setup UF2 firmware for flasher with partitions
lamauny Mar 3, 2025
8642601
[ln882x] update README.md
lamauny Mar 4, 2025
02f6380
[ln882x] include ln_wifi.h and ln_serial.h to avoid including bad hea…
lamauny Mar 6, 2025
0be2e6e
Merge branch 'libretiny-eu:master' into feature/ln882x
lamauny Mar 16, 2025
26eb5bf
[ln882x] Replace RingBuffer by SerialRingBuffer
lamauny Mar 16, 2025
12747b6
[ln882x] clang-format
lamauny Mar 16, 2025
25e7ae8
[ln882x] update README.md
lamauny Mar 16, 2025
263e51c
Apply suggestions from code review
kuba2k2 Mar 24, 2025
dff4baf
Reformat board JSON files
kuba2k2 Mar 25, 2025
c957054
Add mkdocs link redirect
kuba2k2 Mar 25, 2025
b209228
Update ltchiptool to v4.12.0
kuba2k2 Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/push-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
jobs:
lint-clang:
name: Run Clang lint
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@

![RTL8710BN](https://img.shields.io/badge/-rtl8710bn-blue)
![BK7231](https://img.shields.io/badge/-bk7231-blue)
![LN882H](https://img.shields.io/badge/-ln882h-blue)

</div>

PlatformIO development platform for BK7231 and RTL8710 IoT chips.
PlatformIO development platform for BK7231 and RTL8710 and LN882H IoT chips.

The main goal of this project is to provide a usable build environment for IoT developers. While also providing vendor SDKs as PlatformIO cores,
the project focuses on developing working Arduino-compatible cores for supported families. The cores are inspired by Espressif's official core for ESP32,
Expand Down
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* [Realtek AmebaZ](docs/platform/realtek-ambz/README.md)
* [Debugging](docs/platform/realtek-ambz/debugging.md)
* [Exception decoder](docs/platform/realtek-ambz/exception-decoder.md)
* [Lightning LN882x](docs/platform/lightning-ln882x/README.md)
* [🔧 LT Configuration](docs/dev/config.md)
* 🧑 Programmer's manual
* [⚠️ Migration guide](docs/dev/migration_v1.0.0.md)
Expand Down
209 changes: 209 additions & 0 deletions boards/_base/ic/ln882hk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
{
"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"
]
}
}
}
}
31 changes: 31 additions & 0 deletions boards/_base/lightning-ln882hki.json
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"
}
}
}
}
43 changes: 43 additions & 0 deletions boards/_base/lightning-ln882x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"build": {
"f_cpu": "160000000L",
"prefix": "arm-none-eabi-"
},
"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"
}
}
}
23 changes: 23 additions & 0 deletions boards/_base/pcb/ln-02-test.json
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"
}
]
}
}
Loading