lancaster-university / codal-nrf52

MIT License
4 stars 15 forks source link

Error in clock config #22

Closed bsiever closed 3 years ago

bsiever commented 3 years ago

I think NRFLowLevelTimer.cpp's setBitMode() has an error. It looks like BitMode32 is using the wrong constant.

According to the NRF52 docs it should be 3. See: https://infocenter.nordicsemi.com/topic/ps_nrf52833/timer.html?cp=4_1_0_5_27_4_11#register.BITMODE

See: https://github.com/lancaster-university/codal-nrf52/blob/86be5f29342b2bac245d42ad26f81a4e7fde2c69/source/NRFLowLevelTimer.cpp#L232