From ee23bf80fd7235b2de31582d825d032b0be994a1 Mon Sep 17 00:00:00 2001 From: ayabusa Date: Wed, 17 Apr 2024 20:10:01 +0200 Subject: [PATCH] started working on clock control, not working --- numworks_port/build/Laplace/clock.o | Bin 0 -> 3960 bytes numworks_port/build/Laplace/keyboard.o | Bin 5760 -> 5760 bytes numworks_port/build/Laplace/laplace.o | Bin 2480 -> 2520 bytes numworks_port/build/main.bin | Bin 67681 -> 67817 bytes numworks_port/build/main.elf | Bin 279660 -> 281112 bytes numworks_port/build/main.o | Bin 2488 -> 2468 bytes numworks_port/src/Laplace/clock.c | 32 +++++++++++++++++++++++++ numworks_port/src/Laplace/clock.h | 25 +++++++++++++++++++ numworks_port/src/Laplace/laplace.c | 1 + numworks_port/src/Laplace/laplace.h | 1 + numworks_port/src/device/stm32f730xx.h | 1 + numworks_port/src/main.c | 10 +++++--- 12 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 numworks_port/build/Laplace/clock.o create mode 100644 numworks_port/src/Laplace/clock.c create mode 100644 numworks_port/src/Laplace/clock.h diff --git a/numworks_port/build/Laplace/clock.o b/numworks_port/build/Laplace/clock.o new file mode 100644 index 0000000000000000000000000000000000000000..a3dec5089e10b0cb1e0eec1464b5f29c4c0a9e06 GIT binary patch literal 3960 zcma)9Yit}>6+U-nXCHUHj_tJ*J9eT?alxhCr=2)WW9s$Var{VXtxd(F#h%@reWd$h zXV$et1V$<eZphR2$+H>48g&h@cQYslhsoz^M4CW zM|0twiM8?S_-gL`gX!oF9F8K>--l^<_@BQUSv$V^g`HuvL|1cn4s7xdkpB+Yt4mLR;QLB@8TE_WJe=3&gF6dBzYgFN zwfWdfh<&H<^_W`0P2m90nExjlf@VBP;4^L!1dT@sSTK&^nihBkLH`z-^qH|89O-)k zUz#uQZE^<#e@8HUMy=_P@m*wo3ZOXxU3@VJ#%*Tg`fhGzJhH@)7F_Wy1kC9K4Y=D2Cm@e5cU!j?Nl8y2_F+&@q zjhNt*RFq%(V*K~S0+LPgrz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wXU_!h*uK!mld4 zsqiI*KUVm2g>Neq|5L&Iw-x`3!n+E^{|V4PihDtId{W_zLh&1p_6^0qq_D2=y22L~ z{!rl?3g1%rTZQi_{IkLj6y77mN1Pj8odMb(fh)zdh)zz>; zJCG=ujtPl^Z9@Wkc%oz#x|Qu(v)n?L(9J@jW9@pqX2)z+tRn;JwWj3`!2FOXwi*o! z`-LZIxnnjkD4V~MFde5;D|8)9^8d>?hT?Jbz99O0gnEQ4?w5834HQQ|+azy^_x%_7 zNT`3{)&HMyDU5N)pepilH@V062OD!hP>4@ptt`kqGa&G$Cuqq->{ z+1-2%)M-o#ACg-Jz|Zh5x#<{u4M)Q(<9UpIf zzwxY>x}#ek{Y`;e+eQ%b8s^Km1d-+?A@r0Dw`s9xq+Uq9l=8W2_Z&Oi#v)Fl&lNWx Rjq}F6hxPry4MKF|{sVzE86^M! literal 0 HcmV?d00001 diff --git a/numworks_port/build/Laplace/keyboard.o b/numworks_port/build/Laplace/keyboard.o index 7962349cca4579b6435d2b41eaf9f6e47cbaea08..b8cdc077345fce4e7314ac2a5fc6c59fe89abb86 100644 GIT binary patch delta 84 zcmZqBZP49d#NrUoR>{b~a0G~B7#J8B=SVX#FbEapmoqTN3+DnwnI`57e*nqED>wov gripnXSAfDcK(=Tm17pJGB9=l{#{b~a0G~B7#J8B=SVX#FbEapmoqTN3FiVunI`57e*nqEDL4Wt gripnXSAfDcK(=Tm17rN=B9=l{#@5YGIOp&H0L!frx&QzG diff --git a/numworks_port/build/Laplace/laplace.o b/numworks_port/build/Laplace/laplace.o index 699b906f65a7176356a540c00ae2e416cce4287f..489fd842e5990d22e4d15b67513ff9584aeb5065 100644 GIT binary patch delta 263 zcmdlWd_#DG0^^Q}iiQ*YR2kJKmZSrTJ2AX!3<%&e*_F|aQGatc;|9jbHq0`NYMUdO zwHX=JCbzPfGrCM(%M#3;nU`4-pPZAQoXs%#KZ_=t98f!#&}KE(WgvBD*_2roSQ!`$ zCVyp9W{jHb$SywFfL#F0QfG|)a!+0fBpoJSjGww)xMm{tQS}q82rJSJ2(Yc1=tuEmVtNxYMMd> delta 231 zcmca1yg_(^0^@{uSV*_9c?COfjL1IdNV;*%TL1%RxH zK)%N0oj~%@BfZUl->p1cxBvQ54SByA@D zl|hV28GF`oXV_wSQr>wCeP(mmUscQdKtpu3_ugX00581 BHVps( diff --git a/numworks_port/build/main.bin b/numworks_port/build/main.bin index 90cc9f1a85de47aa0f9fcdca4a42f73854b3e667..d02b2206ec633b92b2412fab7fa72e431f3779f7 100755 GIT binary patch delta 427 zcmaDjf#u~ymI*2>-5ib+HZv;R;NK)r^r8OMFGdB157xgOKXn)|d|2|E0mw6f^5*{j z@SK66VGF~0Id7>9Sx<*g?8d^*+zB$?(izfT&R-ggg%cR|O8|MyUl@!Tw0~X@^%nDr zN)Q2x2zxnyXeb8B3xMQ5FcgF2dA(<6@OUYIU}m12zy)M;>I0QA0XYo&*@0Z<4;;)O zWeocn_V0Cz{lQXQ;0|QlFgY+-Fgb7}IB`s!!>Aw>%IG*@J`leIVq+%93AIdH&oQ22 z6f$IXoL~#YoDw|8I7iIW?@{*cw>4Z zD`ULc4Pd}DY-L!_sPO;$%6|+Wcz-YfSxf#g0Lg{_{(pZ6#G-$vKVoH^!^kteo{dqN z>DQm>4Qz}u(+{vQvN62?bHt|KV`Jozz4nL0Te{*`C99%@+yC$9|FD923}D`g?dWsp-elzUnFyHIeu=gl4gTfIYelgvVgHZthBOjna delta 297 zcmaDkk>%k8mI*2>%p8srHZv;R;NK)r^g(OIFaIyU5*R)t|7KQnS77*1^o!YzL7Vvk zBar>(*O%uEK>Ee656>AGrYkTqDhOR= zM}hbv5Z`5*uE)&SC*;fQI3XH{Gl94qh+CPrpJQgsU}Q9yZqCZMmN8)ZQ&z@!r2wF- z8n!a5XH@wAedRxf58OYPfUG6|7=Yx$fB(Nf{5L&|jd2bW-{0v0?2Ka5<=7c{82?Q7 zXJ-@#vDw%e6eZmLe}4rMQI@^&hr?UC;#VarSn%Q>R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7Q+d}V*ENV-jRtI!yr)6r^A7p# z2JwoLmn!dCfu;VvbiuZ`RVa>4x6zllGm F_;-idEtLQO diff --git a/numworks_port/build/main.o b/numworks_port/build/main.o index e6051ad8b9f98d5b3cfe510564595d68b3da1454..a89f7cbc9b9894c74907c3a5e3a271d9da42fe86 100644 GIT binary patch delta 321 zcmdlXyhM0{0%OZWMQI5}h5z6G{dfG-VF02T;Jk@3%8Y6g8`6Qqix^%t1_TJ39LQ)c z%gV{X#KOodrw5{JL4-G)<-U0a<9x=+7R)k?YMVouwHX=JCO5LEGwM&?$zo((oLUl} zlbRA=l$yejTO41Wm|4QWzydU%iyw$Vv;YHx5Qr9JV32_F6~O$>daTPphFxV-X8OW1 z`4^iSW7K3tc6Bf*J~@G10LUr?@?|E^1d`7t9|V#blV1YKEt3T~)LA_k85p7_+j1x~ z9+{lTq0YEyawm}Fn7k24+DyI)B+pD{4(W`B9kpfE8+nNe?IMLLjp z5W}m-fB>G8JsHgf^jUeBCA?U&)n=iK7>^2E#%hV;~u`0Uh5hGHO{lbRA=l$yf8zyegp#m~UN1EPU? zL_oA41A_vH7Ghw~0MnbLSeJn;Imo8W#KAiG8Jiko(qvwCbs#yHS$wh&y8w_C3*;M2 zZUvI>Ca+~zXEk618Z&tzv+(3MK=~7s{{qDVfMUL2F&hp6#v7A;In){FPA&zK%#-H= zNsGxxf#ie9Z#mRiQACR |= (FLASH_ACR_LATENCY_7WS | // 7 wait states + FLASH_ACR_PRFTEN | // prefetch on + FLASH_ACR_ARTEN); // ART on + + // enables HSE and wait for it to be ready + RCC->CR |= (RCC_CR_HSEON); + while (!(RCC->CR & RCC_CR_HSERDY)) {}; + + // clear the specified bit + + // (8/4)*108 = 216MHz + /* + RCC->PLLCFGR |= (RCC_PLLCFGR_PLLSRC_HSE | // HSE: 8MHz + RCC_PLLCFGR_PLLN_108 | // *108 + RCC_PLLCFGR_PLLM_25); // /4 + */ + RCC->PLLCFGR = 0b00001000010000100110000000001000; // HSE: 8MHz*/ + + // enable the RCC clock and wait for it to be ready + RCC->CR |= (RCC_CR_PLLON); + while (!(RCC->CR & RCC_CR_PLLRDY)) {}; + + // set it as the system clock source + RCC->CFGR &= ~(RCC_CFGR_SW); + RCC->CFGR |= (RCC_CFGR_SW_PLL); + while (!(RCC->CFGR & RCC_CFGR_SWS_PLL)) {}; +} \ No newline at end of file diff --git a/numworks_port/src/Laplace/clock.h b/numworks_port/src/Laplace/clock.h new file mode 100644 index 0000000..9120586 --- /dev/null +++ b/numworks_port/src/Laplace/clock.h @@ -0,0 +1,25 @@ +/** @file clock.h + * + * @brief Handle clock init and all + * + */ + +#ifndef CLOCK_H +#define CLOCK_H + +#include "stdint.h" +#include "../device/stm32f730xx.h" + +#define PLL_N 384 +#define PLL_M 8 +#define PLL_P 2 +#define PLL_Q 8 + +/* +RCC->PLLCFGR |= 0b00001000010000100110000000001000; // HSE: 8MHz*/ + //0b0000/*<-null*/1000/*<-PLLQ*/0/*<-null*/1/*<-PLLPSRC(HSE)*/0000/*<-null*/10/*<-PLLP*/0/*<-null*/110000000/*<-PLLN*/001000/*<-PLLM*/ + + +void init_clock(); + +#endif \ No newline at end of file diff --git a/numworks_port/src/Laplace/laplace.c b/numworks_port/src/Laplace/laplace.c index 03f9459..abc4c1b 100644 --- a/numworks_port/src/Laplace/laplace.c +++ b/numworks_port/src/Laplace/laplace.c @@ -10,4 +10,5 @@ void laplace_init(){ enable_gpio_x_rcc(GPIO_C); //column (in) enable_gpio_x_rcc(GPIO_A); //row (out) keyboard_init(); + init_clock(); } \ No newline at end of file diff --git a/numworks_port/src/Laplace/laplace.h b/numworks_port/src/Laplace/laplace.h index 860f370..e66addd 100644 --- a/numworks_port/src/Laplace/laplace.h +++ b/numworks_port/src/Laplace/laplace.h @@ -10,6 +10,7 @@ #include "gpio_helper.h" #include "led.h" #include "keyboard.h" +#include "clock.h" /* Initialize all needed peripherals, should be called early in your program */ void laplace_init(); diff --git a/numworks_port/src/device/stm32f730xx.h b/numworks_port/src/device/stm32f730xx.h index 235c758..a40cfda 100644 --- a/numworks_port/src/device/stm32f730xx.h +++ b/numworks_port/src/device/stm32f730xx.h @@ -9403,6 +9403,7 @@ typedef struct #define RCC_PLLCFGR_PLLN_6 (0x040UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00001000 */ #define RCC_PLLCFGR_PLLN_7 (0x080UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00002000 */ #define RCC_PLLCFGR_PLLN_8 (0x100UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00004000 */ +#define RCC_PLLCFGR_PLLN_384 (0x180UL << RCC_PLLCFGR_PLLN_Pos) /*!< ? */ #define RCC_PLLCFGR_PLLP_Pos (16U) #define RCC_PLLCFGR_PLLP_Msk (0x3UL << RCC_PLLCFGR_PLLP_Pos) /*!< 0x00030000 */ #define RCC_PLLCFGR_PLLP RCC_PLLCFGR_PLLP_Msk diff --git a/numworks_port/src/main.c b/numworks_port/src/main.c index 241d613..079e576 100644 --- a/numworks_port/src/main.c +++ b/numworks_port/src/main.c @@ -4,7 +4,6 @@ void main_entry(){ // init all the peripherals laplace_init(); - ms_wait(2000); // infinite loop while (1){ @@ -27,12 +26,17 @@ void main_entry(){ } } }*/ - + /* if(get_key('G', 3)){ set_led_red(true); }else{ set_led_red(false); - } + }*/ + + set_led_red(true); + ms_wait(5000); + set_led_red(false); + ms_wait(5000); } } \ No newline at end of file