]> git.ayabusa.dev Git - numworks-zeta-os.git/commitdiff
updated clock
authorayabusa <lebgpub@gmail.com>
Sun, 21 Apr 2024 12:06:16 +0000 (14:06 +0200)
committerayabusa <lebgpub@gmail.com>
Sun, 21 Apr 2024 12:06:16 +0000 (14:06 +0200)
13 files changed:
numworks_port/build/Laplace/clock.o
numworks_port/build/Laplace/gpio_helper.o
numworks_port/build/Laplace/keyboard.o
numworks_port/build/Laplace/laplace.o
numworks_port/build/Laplace/led.o
numworks_port/build/Laplace/time.o
numworks_port/build/info_headers.o
numworks_port/build/main.bin
numworks_port/build/main.elf
numworks_port/build/main.o
numworks_port/build/start_handler.o
numworks_port/build/vector_table.o
numworks_port/src/Laplace/clock.c

index bcff223f382c2dab081442c3053f0797a167d133..182dca0591fd19ee99e8a3fc074898c12f34103b 100644 (file)
Binary files a/numworks_port/build/Laplace/clock.o and b/numworks_port/build/Laplace/clock.o differ
index d291bcf6117a92650ea23a68cdafd67ab8a507d3..1b90e95773a4b61fd31851ae5e564fcded8da67c 100644 (file)
Binary files a/numworks_port/build/Laplace/gpio_helper.o and b/numworks_port/build/Laplace/gpio_helper.o differ
index b8cdc077345fce4e7314ac2a5fc6c59fe89abb86..b517e5973fb5923a0ee31f003b963a6f515ac4cf 100644 (file)
Binary files a/numworks_port/build/Laplace/keyboard.o and b/numworks_port/build/Laplace/keyboard.o differ
index 489fd842e5990d22e4d15b67513ff9584aeb5065..b93b56a1428b53c79f810292e9ac3844968930c8 100644 (file)
Binary files a/numworks_port/build/Laplace/laplace.o and b/numworks_port/build/Laplace/laplace.o differ
index 0fcbf308745087be2750774bdd0ed5cb26e976b4..fb9c2e21c7c2a63a1ecb841b797ba2280a5e1190 100644 (file)
Binary files a/numworks_port/build/Laplace/led.o and b/numworks_port/build/Laplace/led.o differ
index ccb66eb0f543507c7e82484561876100bd533580..5d25b1ec0f7556fed8e3d433f89c69cb85887503 100644 (file)
Binary files a/numworks_port/build/Laplace/time.o and b/numworks_port/build/Laplace/time.o differ
index e6000dcc982528f3b05e0694153c2587a5f488f9..f52abfde37b4040bc1c1554ddf9e39fd7cfae8ee 100644 (file)
Binary files a/numworks_port/build/info_headers.o and b/numworks_port/build/info_headers.o differ
index a09e114a5d427c5ee553ef1968c6ffa54e2a5f31..e40322c3bc03ec15c5c559d8a5e6ace69cc9be7c 100755 (executable)
Binary files a/numworks_port/build/main.bin and b/numworks_port/build/main.bin differ
index be4345c890370838e8734792c252e960331f29a7..444eedcc1ae2edb78ae29f29dc31dbfc2219661e 100755 (executable)
Binary files a/numworks_port/build/main.elf and b/numworks_port/build/main.elf differ
index b825c0197079124d243ec7b5ed4fa0cecc045dab..b5601668f96494505469d464e8935eb3ca931e65 100644 (file)
Binary files a/numworks_port/build/main.o and b/numworks_port/build/main.o differ
index 37f6436d3798c2f8d7abe302f59cd49e92ff3252..7dbb8092057accd2b112952c2f3f843bd7e04ad5 100644 (file)
Binary files a/numworks_port/build/start_handler.o and b/numworks_port/build/start_handler.o differ
index 256854684e3f8c5284f16917a29b3af3a82dbba0..e543fb5d3c24334df87f1bca11f1c5c9ada6b5e6 100644 (file)
Binary files a/numworks_port/build/vector_table.o and b/numworks_port/build/vector_table.o differ
index 733768b4e6eea919b45594f5c14dc7d781aa3a81..78033029230e512b3ca205a351926e4a17f16d6e 100644 (file)
@@ -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