mirror of
https://github.com/ayabusa/Numworks-zeta-os.git
synced 2024-11-21 18:53:24 +00:00
updated clock
This commit is contained in:
parent
7a2ef6a22c
commit
280af2f4d6
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -79,7 +79,15 @@ void init_clock(){
|
||||
// Set normal speed
|
||||
RCC->CFGR &= ~(RCC_CFGR_HPRE_Msk);
|
||||
|
||||
set_led_green(true);
|
||||
// UNSAFE CODE
|
||||
// 23999<=>0b0101 1101 1011 1111
|
||||
SysTick->LOAD &= ~(0b00000000111111111111111111111111);
|
||||
SysTick->LOAD |= 0b00000000000000000101110110111111;
|
||||
// set current
|
||||
SysTick->VAL &= ~(0b00000000111111111111111111111111);
|
||||
//set some things in CSR
|
||||
SysTick->CTRL &= ~(0b00000000000000000000000000000111);
|
||||
SysTick->CTRL |= 0b00000000000000000000000000000011;
|
||||
}
|
||||
|
||||
/* OLD
|
||||
|
Loading…
Reference in New Issue
Block a user