Skip to content

Commit

Permalink
Arduino-enable CH32V203RB
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Mar 27, 2024
1 parent f515d0a commit d966301
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion boards/genericCH32V203RBT6.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"build": {
"arduino": {
"openwch": {
"variant": "CH32V20x/CH32V203RB",
"variant_h": "variant_CH32V203RB.h"
}
},
"core": "openwch",
"extra_flags": "-DCH32V203RB -DCH32V20X -DCH32V203 -DCH32V20x_D8",
"f_cpu": "144000000L",
"hwids": [
Expand All @@ -25,7 +32,8 @@
"freertos",
"harmony-liteos",
"rt-thread",
"tencent-os"
"tencent-os",
"arduino"
],
"name": "Generic CH32V203RBT6",
"upload": {
Expand Down
3 changes: 3 additions & 0 deletions examples/blinky-arduino/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ board = genericCH32V103R8T6
[env:genericCH32V203C8T6]
board = genericCH32V203C8T6

[env:genericCH32V203RBT6]
board = genericCH32V203RBT6

[env:genericCH32V307VCT6]
board = genericCH32V307VCT6
1 change: 1 addition & 0 deletions misc/scripts/gen_boarddefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class OpenWCHVariant:
OpenWCHVariant("ch32v203c6", "CH32V20x/CH32V203C6", "variant_CH32V203C6.h"),
OpenWCHVariant("ch32v203c8", "CH32V20x/CH32V203C8", "variant_CH32V203C8.h"),
OpenWCHVariant("ch32v203g8", "CH32V20x/CH32V203G8", "variant_CH32V203G8.h"),
OpenWCHVariant("ch32v203rb", "CH32V20x/CH32V203RB", "variant_CH32V203RB.h"),
OpenWCHVariant("ch32v307vct6", "CH32V30x/CH32V307VCT6", "variant_CH32V307VCT6.h", "-DCH32V30x_C"),
OpenWCHVariant("ch32x035g8u", "CH32X035/CH32X035G8U", "variant_CH32X035G8U.h")
]
Expand Down

0 comments on commit d966301

Please sign in to comment.