Skip to content

Commit 42cfa29

Browse files
committed
update: 时钟树使用使用cpp进行配置
1 parent 252191a commit 42cfa29

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

variants/AIR32F103/F103CB/generic_clock.c renamed to variants/AIR32F103/F103CB/generic_clock.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
#if defined(ARDUINO_AIR32F103CB)
1414
#include "pins_arduino.h"
1515

16+
constexpr void test(constexpr uint8_t a)
17+
{
18+
constexpr uint8_t b = a;
19+
return;
20+
}
21+
1622
/**
1723
* @brief System Clock Configuration
1824
* @param None
@@ -57,6 +63,7 @@ WEAK void SystemClock_Config(void)
5763
}
5864
#else
5965
{
66+
test(8);
6067
RCC_OscInitTypeDef RCC_OscInitStruct = {};
6168
RCC_ClkInitTypeDef RCC_ClkInitStruct = {};
6269

0 commit comments

Comments
 (0)