mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
add new makefile structure to G0 (forgotten before)
This commit is contained in:
@@ -62,9 +62,8 @@
|
||||
#define PLLR 2
|
||||
#endif
|
||||
|
||||
#define WAITWHILE(x) do{StartUpCounter = 0; while((x) && (++StartUpCounter < 0xffffff)){nop();}}while(0)
|
||||
#define WAITWHILE(x) do{register uint32_t StartUpCounter = 0; while((x) && (++StartUpCounter < 0xffffff)){nop();}}while(0)
|
||||
TRUE_INLINE void StartHSEHSI(int isHSE){
|
||||
uint32_t StartUpCounter;
|
||||
RCC->CR &= ~RCC_CR_PLLON; // disable PLL
|
||||
WAITWHILE(RCC->CR & RCC_CR_PLLRDY); // wait while PLL on
|
||||
if(isHSE){
|
||||
|
||||
Reference in New Issue
Block a user