gd32v-rust / gd32vf103-hal

Hardware abstract layer (HAL) `embedded-hal` for RISC-V microcontroller GD32VF103 in Rust. Contributions welcomed!
MIT License
62 stars 17 forks source link

timer.rs #2

Open torntrousers opened 4 years ago

torntrousers commented 4 years ago

I see there's some unfinished timer code in timer.rs. Whats the status of that and could you give any pointers on what needs to be done to get it working?

luojia65 commented 4 years ago

I personally is lack of equipments to check if clock frequencies are set correctly (I cannot read the frequency directly from LED by human's eyes, without an oscilloscope). The design model is similar as STM32 series and the clock setting process are almost the same (as I read the chip manual) though there are two more PLLs than F103 where we need to check its functions.

fplust commented 4 years ago

gd32vf103 clock tree is more like stm32f105/f107,so the problem is almost same as this issue: #109

luojia65 commented 4 years ago

@fplust Thanks! That's exactly where we should look into.

luojia65 commented 4 years ago

rcu::Strict clock configurator is shipped with version 0.0.3.