creatoy / py32-rs

Embedded Rust device crates for PY32 microcontrollers
Other
8 stars 1 forks source link

Reversed meaning on RCC CR register bit meanings #2

Closed gpgreen closed 1 month ago

gpgreen commented 1 month ago

I was testing a simple led flashing program on my dev board, and could not get the clock subsystem to use the external oscillator. Determined that it was due to a bug in the peripheral crate.

Peripheral RCC register CR HSEON and HSION had On/Off bit enums backwards. Reversed them. I only have the PY32F030 device, but it appears that the same problem is in some of the other devices also.