Skip to content

Commit ccf333d

Browse files
committed
Merge remote-tracking branch 'origin/master' into feature/realtek-update
2 parents 70b82ba + 44667fd commit ccf333d

File tree

231 files changed

+9174
-1177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+9174
-1177
lines changed

.clang-format

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
# 2025-02-12
12
Language: Cpp
23
BasedOnStyle: LLVM
34
AlignAfterOpenBracket: BlockIndent
45
AlignArrayOfStructures: Left
56
AlignConsecutiveAssignments: true
67
AlignConsecutiveMacros: AcrossComments
8+
AlignEscapedNewlinesLeft: true
79
AlignTrailingComments: true
810
AllowAllArgumentsOnNextLine: false
11+
AllowAllParametersOfDeclarationOnNextLine: false
912
AllowShortBlocksOnASingleLine: Empty
1013
AllowShortFunctionsOnASingleLine: Empty
1114
AlwaysBreakTemplateDeclarations: Yes
@@ -21,7 +24,7 @@ IndentCaseLabels: true
2124
IndentWidth: 4
2225
LambdaBodyIndentation: Signature
2326
MaxEmptyLinesToKeep: 1
24-
# PointerAlignment: Left # TODO enable this and reformat project
27+
PenaltyReturnTypeOnItsOwnLine: 1000
2528
QualifierAlignment: Left
2629
ReflowComments: true
2730
SeparateDefinitionBlocks: Always

.github/workflows/push-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches: ["**"]
55
pull_request:
6+
workflow_dispatch:
67
jobs:
78
lint-clang:
89
name: Run Clang lint

.github/workflows/push-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python-version: '3.10'
1818

1919
- name: Install docs dependencies
20-
run: pip install -U ltchiptool "boardgen>=0.11.0"
20+
run: pip install -U ltchiptool "boardgen>=0.12.0"
2121

2222
- name: Generate docs and static JSON files
2323
run: |

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515

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

1920
</div>
2021

21-
PlatformIO development platform for BK7231 and RTL8710 IoT chips.
22+
PlatformIO development platform for BK7231, RTL8710 and LN882H IoT chips.
2223

2324
The main goal of this project is to provide a usable build environment for IoT developers. While also providing vendor SDKs as PlatformIO cores,
2425
the project focuses on developing working Arduino-compatible cores for supported families. The cores are inspired by Espressif's official core for ESP32,

SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* [Realtek AmebaZ](docs/platform/realtek-ambz/README.md)
2020
* [Debugging](docs/platform/realtek-ambz/debugging.md)
2121
* [Exception decoder](docs/platform/realtek-ambz/exception-decoder.md)
22+
* [Realtek AmebaZ2](docs/platform/realtek-ambz2/README.md)
23+
* [Lightning LN882x](docs/platform/lightning-ln882x/README.md)
2224
* [🔧 LT Configuration](docs/dev/config.md)
2325
* 🧑 Programmer's manual
2426
* [⚠️ Migration guide](docs/dev/migration_v1.0.0.md)

boards/_base/beken-7231-tuya.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44
},
55
"flash": {
66
"tuya": "0x1ED000+0x13000"
7+
},
8+
"doc": {
9+
"params": {
10+
"keys": "Beken and Tuya defaults"
11+
}
712
}
813
}

boards/_base/beken-7231n.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"doc": {
2727
"params": {
28+
"layout": "**Tuya default** for N (OTA 0x12A000)",
2829
"extra": {
2930
"Bluetooth": "BLE v5.1"
3031
}

boards/_base/beken-7231t.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
],
2222
"doc": {
2323
"params": {
24+
"layout": "**Tuya default** for T (OTA 0x132000)",
2425
"extra": {
2526
"Bluetooth": "BLE v4.2"
2627
}

boards/_base/beken-72xx.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@
4040
"Wi-Fi": "802.11 b/g/n"
4141
}
4242
},
43+
"flashing": {
44+
"links": {
45+
"ltchiptool user guide": "../../docs/flashing/tools/ltchiptool.md",
46+
"full flashing guide": "../../docs/platform/beken-72xx/README.md#flashing"
47+
},
48+
"pins": {
49+
"P10 / RX1": "TX of USB-UART adapter",
50+
"P11 / TX1": "RX of USB-UART adapter",
51+
"CEN (Chip-Enable)": "GND to reset the chip"
52+
},
53+
"guide": [
54+
"Connect the USB-UART adapter.",
55+
"Start the flashing process.",
56+
"Keep shorting CEN to GND or power-cycling the device, until flashing starts."
57+
]
58+
},
4359
"links": {
4460
"Info & flashing guide": "../../docs/platform/beken-72xx/README.md"
4561
},

boards/_base/ic/ln882hk.json

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
{
2+
"pcb": {
3+
"ic": {
4+
"7": {
5+
"IO": "I",
6+
"CTRL": "CEN"
7+
},
8+
"8": {
9+
"C_NAME": "PA_0",
10+
"GPIO": "PA00",
11+
"IRQ": null,
12+
"ADC": 2,
13+
"I2C": [
14+
"0_SCL",
15+
"0_SDA"
16+
]
17+
},
18+
"9": {
19+
"C_NAME": "PA_1",
20+
"GPIO": "PA01",
21+
"IRQ": null,
22+
"ADC": 3,
23+
"SWD": "DIO",
24+
"I2C": [
25+
"0_SCL",
26+
"0_SDA"
27+
]
28+
},
29+
"10": {
30+
"C_NAME": "PA_2",
31+
"GPIO": "PA02",
32+
"IRQ": null,
33+
"UART": "0_TX",
34+
"I2C": [
35+
"0_SCL",
36+
"0_SDA"
37+
]
38+
},
39+
"11": {
40+
"C_NAME": "PA_3",
41+
"GPIO": "PA03",
42+
"IRQ": null,
43+
"UART": "0_RX",
44+
"I2C": [
45+
"0_SCL",
46+
"0_SDA"
47+
]
48+
},
49+
"12": {
50+
"C_NAME": "PA_4",
51+
"GPIO": "PA04",
52+
"IRQ": null,
53+
"ADC": 4,
54+
"SWD": "CLK",
55+
"I2C": [
56+
"0_SCL",
57+
"0_SDA"
58+
]
59+
},
60+
"13": {
61+
"C_NAME": "PA_5",
62+
"GPIO": "PA05",
63+
"IRQ": null,
64+
"I2C": [
65+
"0_SCL",
66+
"0_SDA"
67+
]
68+
},
69+
"14": {
70+
"C_NAME": "PA_6",
71+
"GPIO": "PA06",
72+
"IRQ": null,
73+
"SD": "D2",
74+
"I2C": [
75+
"0_SCL",
76+
"0_SDA"
77+
]
78+
},
79+
"15": {
80+
"C_NAME": "PA_7",
81+
"GPIO": "PA07",
82+
"IRQ": null,
83+
"SD": "D3",
84+
"I2S": "0_RX",
85+
"I2C": [
86+
"0_SCL",
87+
"0_SDA"
88+
]
89+
},
90+
"16": {
91+
"C_NAME": "PA_8",
92+
"GPIO": "PA08",
93+
"IRQ": null,
94+
"CTRL": "BOOT0",
95+
"SD": "CMD",
96+
"I2S": "0_WS",
97+
"I2C": [
98+
"0_SCL",
99+
"0_SDA"
100+
]
101+
},
102+
"17": {
103+
"C_NAME": "PA_9",
104+
"GPIO": "PA09",
105+
"IRQ": null,
106+
"CTRL": "BOOT1",
107+
"SD": "CLK",
108+
"I2S": "0_SCLK",
109+
"I2C": [
110+
"0_SCL",
111+
"0_SDA"
112+
]
113+
},
114+
"21": {
115+
"C_NAME": "PA_10",
116+
"GPIO": "PA10",
117+
"IRQ": null,
118+
"SD": "D0",
119+
"I2S": "0_TX",
120+
"I2C": [
121+
"0_SCL",
122+
"0_SDA"
123+
]
124+
},
125+
"22": {
126+
"C_NAME": "PA_11",
127+
"GPIO": "PA11",
128+
"IRQ": null,
129+
"SD": "D1",
130+
"I2C": [
131+
"0_SCL",
132+
"0_SDA"
133+
]
134+
},
135+
"23": {
136+
"C_NAME": "PA_12",
137+
"GPIO": "PA12",
138+
"IRQ": null,
139+
"I2C": [
140+
"0_SCL",
141+
"0_SDA"
142+
]
143+
},
144+
"24": {
145+
"C_NAME": "PB_3",
146+
"GPIO": "PB03",
147+
"GPIONUM": 19,
148+
"IRQ": null,
149+
"ADC": 5,
150+
"I2C": [
151+
"0_SCL",
152+
"0_SDA"
153+
]
154+
},
155+
"25": {
156+
"C_NAME": "PB_4",
157+
"GPIO": "PB04",
158+
"GPIONUM": 20,
159+
"IRQ": null,
160+
"ADC": 6,
161+
"I2C": [
162+
"0_SCL",
163+
"0_SDA"
164+
]
165+
},
166+
"26": {
167+
"C_NAME": "PB_5",
168+
"GPIO": "PB05",
169+
"GPIONUM": 21,
170+
"IRQ": null,
171+
"ADC": 7,
172+
"I2C": [
173+
"0_SCL",
174+
"0_SDA"
175+
]
176+
},
177+
"27": {
178+
"C_NAME": "PB_6",
179+
"GPIO": "PB06",
180+
"GPIONUM": 22,
181+
"IRQ": null,
182+
"I2C": [
183+
"0_SCL",
184+
"0_SDA"
185+
]
186+
},
187+
"28": {
188+
"C_NAME": "PB_7",
189+
"GPIO": "PB07",
190+
"GPIONUM": 23,
191+
"IRQ": null,
192+
"I2C": [
193+
"0_SCL",
194+
"0_SDA"
195+
]
196+
},
197+
"29": {
198+
"C_NAME": "PB_8",
199+
"GPIO": "PB08",
200+
"GPIONUM": 24,
201+
"IRQ": null,
202+
"UART": "1_RX",
203+
"I2C": [
204+
"0_SCL",
205+
"0_SDA"
206+
]
207+
},
208+
"30": {
209+
"C_NAME": "PB_9",
210+
"GPIO": "PB09",
211+
"GPIONUM": 25,
212+
"IRQ": null,
213+
"UART": "1_TX",
214+
"I2C": [
215+
"0_SCL",
216+
"0_SDA"
217+
]
218+
}
219+
}
220+
}
221+
}

0 commit comments

Comments
 (0)