Skip to content

Commit 9f42fa2

Browse files
committed
Fix comment about CLOCK_SOURCE configuration in mbed_app.json file
1 parent f584c73 commit 9f42fa2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/main.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
#include "usbd_dfu_flash.h"
3535
#endif
3636

37-
// clock source is selected with CLOCK_SOURCE in json config
38-
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
39-
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
40-
#define USE_PLL_HSI 0x2 // Use HSI internal clock
37+
/*
38+
* CLOCK_SOURCE is configured with "target.clock_source" in mbed_app.json file
39+
*/
40+
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
41+
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
42+
#define USE_PLL_HSI 0x2 // Use HSI internal clock
4143

4244
extern "C" uint8_t SetSysClock_PLL_HSE(uint8_t bypass, bool lowspeed);
4345

0 commit comments

Comments
 (0)