Skip to content

Commit 780cef7

Browse files
committed
docs: add new driver pages and correct STM32 flash/USB docs
1 parent 4f09921 commit 780cef7

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

docs/basic_coding/driver/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ LibXR 所有设备接口均遵循以下设计原则:
2626
- [SPI(SPI 接口)](./spi.md)
2727
- [CAN / FDCAN(控制器局域网)](./can.md)
2828
- [ADC(模数转换)](./adc.md)
29+
- [DAC(数字转模拟)](./dac.md)
2930
- [PWM(脉宽调制)](./pwm.md)
3031
- [Flash(闪存接口)](./flash.md)
3132
- [Power(电源管理)](./power.md)
3233
- [Timebase(时间基准)](./timebase.md)
34+
- [看门狗(Watchdog)](./watchdog.md)
35+
- [USB(USB 设备)](./usb.md)
3336

3437
---
3538

docs/code_gen/stm32/flash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ Database::Key<uint32_t> key1(database, "key1", 0);
7070
## 写入数据库
7171

7272
```cpp
73-
key1.set(key1.data_ + 1);
73+
key1.Set(key1.data_ + 1);
7474
```

docs/code_gen/stm32/uart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ USART:
152152
dma_section: ''
153153
tx_queue_size: 5
154154
155-
# USB CDC 配置(FreeRTOS 下有效)
155+
# USB CDC 配置
156156
USB:
157157
USB_OTG_FS:
158158
enable: true

i18n/en/docusaurus-plugin-content-docs/current/basic_coding/driver/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ All device interfaces in LibXR follow these design principles:
2626
- [SPI (SPI Interface)](./spi.md)
2727
- [CAN / FDCAN (Controller Area Network)](./can.md)
2828
- [ADC (Analog-to-Digital Conversion)](./adc.md)
29+
- [DAC (Digital-to-Analog Conversion)](./dac.md)
2930
- [PWM (Pulse-Width Modulation)](./pwm.md)
3031
- [Flash (Flash Interface)](./flash.md)
3132
- [Power (Power Management)](./power.md)
3233
- [Timebase (Time Base)](./timebase.md)
34+
- [Watchdog (Watchdog Timer)](./watchdog.md)
35+
- [USB (Universal Serial Bus)](./usb.md)
3336

3437
---
3538

i18n/en/docusaurus-plugin-content-docs/current/code_gen/stm32/flash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ Database::Key<uint32_t> key1(database, "key1", 0);
7777
## Writing to the Database
7878

7979
```cpp
80-
key1.set(key1.data_ + 1);
80+
key1.Set(key1.data_ + 1);
8181
```

i18n/en/docusaurus-plugin-content-docs/current/code_gen/stm32/uart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ USART:
153153
dma_section: ''
154154
tx_queue_size: 5
155155
156-
# USB CDC configuration (effective under FreeRTOS)
156+
# USB CDC configuration
157157
USB:
158158
USB_OTG_FS:
159159
enable: true

0 commit comments

Comments
 (0)