From 81008773707069d20856fae60946c7156bb4b511 Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Sun, 14 Jul 2024 01:19:51 +0200 Subject: [PATCH] Add X035 to examples --- platformio.ini | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index ab2ed64e..25c8da1c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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) @@ -255,3 +260,19 @@ build_src_filter = ${fun_base.build_src_filter} + [env:v30x_blink] extends = fun_base_307 build_src_filter = ${fun_base.build_src_filter} + + +[env:x035_blink] +extends = fun_base_x035 +build_src_filter = ${fun_base.build_src_filter} + + +[env:x035_debugprintfdemo] +extends = fun_base_x035 +build_src_filter = ${fun_base.build_src_filter} + + +[env:x035_sandbox] +extends = fun_base_x035 +build_src_filter = ${fun_base.build_src_filter} + + +[env:x035_usbdevice] +extends = fun_base_x035 +build_src_filter = ${fun_base.build_src_filter} +