Skip to content

Commit

Permalink
Add X035 to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Jul 13, 2024
1 parent 26e18f6 commit 8100877
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ extends = fun_base
build_flags = ${fun_base.build_flags} -DCH32V30x
board = ch32v307_evt

[fun_base_x035]
extends = fun_base
build_flags = ${fun_base.build_flags} -DCH32X03x
board = genericCH32X035C8T6

; If creating a new example:
; 1. Add new [env:name]
; 2. Set the extends to the fun_base_{003, 103, 203, 307} as needed
; 2. Set the extends to the fun_base_{003, 103, 203, 307, x035} as needed
; 3. Add build_src_filter with fun base files + example folder (+ extra libraries if used) for source files
; 4. Add additional build flags as needed (see uartdemo)
; 5. Switch to new environment in VSCode bottom taskbar (https://docs.platformio.org/en/latest/integration/ide/vscode.html#project-tasks)
Expand Down Expand Up @@ -255,3 +260,19 @@ build_src_filter = ${fun_base.build_src_filter} +<examples_v20x/spidmatest>
[env:v30x_blink]
extends = fun_base_307
build_src_filter = ${fun_base.build_src_filter} +<examples_v30x/blink>

[env:x035_blink]
extends = fun_base_x035
build_src_filter = ${fun_base.build_src_filter} +<examples_x035/blink>

[env:x035_debugprintfdemo]
extends = fun_base_x035
build_src_filter = ${fun_base.build_src_filter} +<examples_x035/debugprintfdemo>

[env:x035_sandbox]
extends = fun_base_x035
build_src_filter = ${fun_base.build_src_filter} +<examples_x035/x035_sandbox>

[env:x035_usbdevice]
extends = fun_base_x035
build_src_filter = ${fun_base.build_src_filter} +<examples_x035/usbdevice>

0 comments on commit 8100877

Please sign in to comment.