diff --git a/boards/bw_swan_r5.json b/boards/bw_swan_r5.json index 9ab5ef44..d2e91bcf 100644 --- a/boards/bw_swan_r5.json +++ b/boards/bw_swan_r5.json @@ -1,8 +1,11 @@ { "build": { + "arduino": { + "variant_h": "variant_SWAN_R5.h" + }, "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L4 -DSTM32L4xx -DSTM32L4R5xx", + "extra_flags": "-DARDUINO_SWAN_R5 -DSTM32L4 -DSTM32L4xx -DSTM32L4R5xx", "f_cpu": "120000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS"