You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
231: Implement unsafe overclocking safety overrides r=TeXitoi a=rukai
I am porting a C firmware that slightly overclocks the following values on an stm32f439.
* SYSCLK 192MHz (max 180MHz)
* APB1/PCLK1/PPRE1_register 48Mhz (max 45MHz)
* APB2/PCLK2/PPRE2_register 96Mhz (max 90MHz)
I need to maintain these clock speeds in the rust port, so my usage will look like this:
```rust
let clocks = unsafe {
rcc.cfgr
.use_hse(4.mhz())
.sysclk(192.mhz())
.hclk(192.mhz())
.pclk1(48.mhz())
.pclk2(96.mhz())
.sysclk_allow_overclock()
.pclk1_allow_overclock()
.pclk2_allow_overclock()
.freeze()
};
```
Would love to hear suggestions for better naming of the builder method names.
Co-authored-by: Rukai <rubickent@gmail.com>
0 commit comments