mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
2 files changed
+12
-12
No files matched your search
@@ -28,14 +28,14 @@ void SystemInit(void) { // Called automatically by startup code
|
|||||||
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); // Enable FPU
|
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); // Enable FPU
|
||||||
asm("DSB");
|
asm("DSB");
|
||||||
asm("ISB");
|
asm("ISB");
|
||||||
PWR->CR3 |= BIT(1); // select LDO (reset value)
|
PWR->CR3 |= BIT(1); // select LDO (reset value)
|
||||||
while ((PWR->CSR1 && BIT(13)) == 0) spin(1); // ACTVOSRDY
|
while ((PWR->CSR1 & BIT(13)) == 0) spin(1); // ACTVOSRDY
|
||||||
PWR->D3CR |= BIT(15) | BIT(14); // Select VOS1
|
PWR->D3CR |= BIT(15) | BIT(14); // Select VOS1
|
||||||
uint32_t f = PWR->D3CR; // fake read to wait for bus clocking
|
uint32_t f = PWR->D3CR; // fake read to wait for bus clocking
|
||||||
while ((PWR->CSR1 && BIT(13)) == 0) spin(1); // ACTVOSRDY
|
while ((PWR->CSR1 & BIT(13)) == 0) spin(1); // ACTVOSRDY
|
||||||
SYSCFG->PWRCR |= BIT(0); // ODEN
|
SYSCFG->PWRCR |= BIT(0); // ODEN
|
||||||
f = SYSCFG->PWRCR;
|
f = SYSCFG->PWRCR;
|
||||||
while ((PWR->CSR1 && BIT(13)) == 0) spin(1); // ACTVOSRDY
|
while ((PWR->CSR1 & BIT(13)) == 0) spin(1); // ACTVOSRDY
|
||||||
(void) f;
|
(void) f;
|
||||||
SETBITS(
|
SETBITS(
|
||||||
RCC->D1CFGR, (0x0F << 8) | (7 << 4) | (0x0F << 0),
|
RCC->D1CFGR, (0x0F << 8) | (7 << 4) | (0x0F << 0),
|
||||||
|
|||||||
@@ -28,14 +28,14 @@ void SystemInit(void) { // Called automatically by startup code
|
|||||||
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); // Enable FPU
|
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); // Enable FPU
|
||||||
asm("DSB");
|
asm("DSB");
|
||||||
asm("ISB");
|
asm("ISB");
|
||||||
PWR->CR3 |= BIT(1); // select LDO (reset value)
|
PWR->CR3 |= BIT(1); // select LDO (reset value)
|
||||||
while ((PWR->CSR1 && BIT(13)) == 0) spin(1); // ACTVOSRDY
|
while ((PWR->CSR1 & BIT(13)) == 0) spin(1); // ACTVOSRDY
|
||||||
PWR->D3CR |= BIT(15) | BIT(14); // Select VOS1
|
PWR->D3CR |= BIT(15) | BIT(14); // Select VOS1
|
||||||
uint32_t f = PWR->D3CR; // fake read to wait for bus clocking
|
uint32_t f = PWR->D3CR; // fake read to wait for bus clocking
|
||||||
while ((PWR->CSR1 && BIT(13)) == 0) spin(1); // ACTVOSRDY
|
while ((PWR->CSR1 & BIT(13)) == 0) spin(1); // ACTVOSRDY
|
||||||
SYSCFG->PWRCR |= BIT(0); // ODEN
|
SYSCFG->PWRCR |= BIT(0); // ODEN
|
||||||
f = SYSCFG->PWRCR;
|
f = SYSCFG->PWRCR;
|
||||||
while ((PWR->CSR1 && BIT(13)) == 0) spin(1); // ACTVOSRDY
|
while ((PWR->CSR1 & BIT(13)) == 0) spin(1); // ACTVOSRDY
|
||||||
(void) f;
|
(void) f;
|
||||||
SETBITS(
|
SETBITS(
|
||||||
RCC->D1CFGR, (0x0F << 8) | (7 << 4) | (0x0F << 0),
|
RCC->D1CFGR, (0x0F << 8) | (7 << 4) | (0x0F << 0),
|
||||||
|
|||||||
Reference in new issue
Block a user