File tree 3 files changed +19
-3
lines changed 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -565,18 +565,26 @@ GenF0.name=Generic STM32F0 series
565
565
566
566
GenF0.build.core=arduino
567
567
GenF0.build.board=GenF0
568
+ GenF0.build.mcu=cortex-m0
569
+ GenF0.build.series=STM32F0xx
570
+ GenF0.build.cmsis_lib_gcc=arm_cortexM0l_math
568
571
GenF0.build.extra_flags=-D{build.product_line} {build.xSerial}
569
572
570
573
# DEMO_F030F4 board
571
574
GenF0.menu.pnum.DEMO_F030F4=STM32F030F4 Demo board
572
575
GenF0.menu.pnum.DEMO_F030F4.upload.maximum_data_size=4096
573
576
GenF0.menu.pnum.DEMO_F030F4.upload.maximum_size=16384
574
- GenF0.menu.pnum.DEMO_F030F4.build.mcu=cortex-m0
575
577
GenF0.menu.pnum.DEMO_F030F4.build.board=DEMO_F030F4
576
- GenF0.menu.pnum.DEMO_F030F4.build.series=STM32F0xx
577
578
GenF0.menu.pnum.DEMO_F030F4.build.product_line=STM32F030x6
578
579
GenF0.menu.pnum.DEMO_F030F4.build.variant=DEMO_F030F4
579
- GenF0.menu.pnum.DEMO_F030F4.build.cmsis_lib_gcc=arm_cortexM0l_math
580
+
581
+ # DEMO_F030F4_16M board
582
+ GenF0.menu.pnum.DEMO_F030F4_16M=STM32F030F4 Demo board (16Mhz)
583
+ GenF0.menu.pnum.DEMO_F030F4_16M.upload.maximum_data_size=4096
584
+ GenF0.menu.pnum.DEMO_F030F4_16M.upload.maximum_size=16384
585
+ GenF0.menu.pnum.DEMO_F030F4_16M.build.board=DEMO_F030F4_16M
586
+ GenF0.menu.pnum.DEMO_F030F4_16M.build.product_line=STM32F030x6
587
+ GenF0.menu.pnum.DEMO_F030F4_16M.build.variant=DEMO_F030F4
580
588
581
589
# Upload menu
582
590
GenF0.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
Original file line number Diff line number Diff line change @@ -95,7 +95,11 @@ WEAK void SystemClock_Config(void)
95
95
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
96
96
RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE;
97
97
RCC_OscInitStruct.PLL .PLLMUL = RCC_PLL_MUL6;
98
+ #ifdef ARDUINO_DEMO_F030F4_16M
99
+ RCC_OscInitStruct.PLL .PREDIV = RCC_PREDIV_DIV2;
100
+ #else
98
101
RCC_OscInitStruct.PLL .PREDIV = RCC_PREDIV_DIV1;
102
+ #endif
99
103
if (HAL_RCC_OscConfig (&RCC_OscInitStruct) != HAL_OK) {
100
104
_Error_Handler (__FILE__, __LINE__);
101
105
}
Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ extern "C" {
89
89
#define PIN_SERIAL_RX PA3
90
90
#define PIN_SERIAL_TX PA2
91
91
92
+ #ifdef ARDUINO_DEMO_F030F4_16M
93
+ #define HSE_VALUE 16000000U /*!< Value of the External oscillator in Hz */
94
+ #endif
95
+
92
96
#ifdef __cplusplus
93
97
} // extern "C"
94
98
#endif
You can’t perform that action at this time.
0 commit comments