Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions bsp/ESP/ESP32_C3/README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

![hongxu](images/hx_shang.png)

- ESP32-C3-DevKitM-1

这块板用本 BSP 能进 msh。板上 RGB 灯在 GPIO8,菜单里的灯脚仍是 LUATOS 的 IO12,这颗灯没有对上。Wi-Fi 和 BLE 不在这次记录里。

该LUATOS_ESP32C3开发板常用 **板载资源** 如下:

Expand Down
29 changes: 29 additions & 0 deletions bsp/wch/risc-v/ch32v203c-evt-r0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,35 @@ CH32V203C8T6-EVT-R0 是 WCH 推出的一款基于 RISC-V 内核的开发板,

更多信息请访问 [CH32V203](https://www.wch.cn/products/CH32V203.html) 以及 [openwch/ch32v20x](https://github.com/openwch/ch32v20x)

## 外设支持

本 BSP 目前对外设的支持情况如下:

| **片上外设** | **支持情况** | **备注** |
| :----------- | :----------: | :------- |
| GPIO | 支持 | PA8 设成输出后,写高读回 high,写低读回 low。外接灯能亮 |
| UART | 支持 | USART1,TX PA9,RX PA10。115200,能进 msh |
| ADC | 支持 | ADC1。通道 17 稳定在 `0x5CA` 附近;通道 16 稳定后约 `0x6BB`。PA0 接 3V3 为 `0xFFF`,接 GND 为 `0x4` 或 `0x5` |
| PWM | 支持 | TIM1 通道 1,PA8,1 kHz,占空比 50% |
| RTC | 支持 | 使用 LSE。设好时间后再读,秒数往前走 |
| IWDT | 支持 | 默认关闭。打开 utest 后,停喂大约 5 秒会复位 |
| USB Device | 支持 | 板载 Type-C。虚拟串口 VID `0FFE`,PID `0001`,能进 msh |
| SPI | 待支持 | |
| I2C | 待支持 | |
| CAN | 待支持 | |

默认镜像只打开 GPIO 和 UART1。ADC、PWM、RTC、看门狗和 USB 要在 menuconfig 里打开。

### IO 在板级支持包中的映射情况

| IO | 板级包中的定义 |
| ---- | -------------- |
| PA9 | USART1_TX |
| PA10 | USART1_RX |
| PA13 | SWDIO |
| PA14 | SWCLK |
| PA8 | GPIO / TIM1 PWM |

## 2 编译说明

板级包支持 RISC-V GCC 开发环境,以下是具体版本信息:
Expand Down
9 changes: 9 additions & 0 deletions bsp/wch/risc-v/ch32v307v-r1/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ CH32V307V-R1 是 WCH 推出的一款基于 RISC-V 内核的开发板,最高主

更多信息和资源请访问[互联型 RISC-V 单片机 CH32V307](https://www.wch.cn/products/CH32V307.html) 以及 [官网文档资料](https://github.com/openwch/ch32v307)

## 外设支持

下表只记已经在 CH32V307V-EVT-R1 上看到结果的驱动。菜单里还有别的驱动,这里不改它们的状态。

| **片上外设** | **支持情况** | **备注** |
| :----------- | :----------: | :------- |
| UART | 支持 | 板载 WCH-Link 串口,115200,能进 msh |
| Ethernet | 支持 | 板载 10M PHY。打开以太网后,DHCP 能拿到地址 |

## 2 编译说明

板级包支持 RISC-V GCC 开发环境,以下是具体版本信息:
Expand Down
Loading