Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1874: nrf52: dont write to read only register r=ppannuto a=hudson-ayers ### Pull Request Overview While trying to debug what is wrong with the nrf52 15.4 driver, I realized that the nrf52 clock code attempts to write to a register that both the nrf52840 and nrf52832 datasheets define as a read only register (page 107: https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf , https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fclock.html&cp=4_0_0_4_3_2_16&anchor=register.HFCLKSTAT) . This PR removes this incorrect code. Despite this function call not working, the code was actually functionally correct, because the subsequent line that starts the high speed clock has a side effect of setting the HighClockSource to XTAL anyway (per https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html?cp=4_0_0_4_3_2_0#register.TASKS_HFCLKSTART). ### Testing Strategy Flashing the 15.4 radio_tx app on an nrf52840. It works the same as before this change. ### TODO or Help Wanted N/A. ### Documentation Updated - [x] No updates are required. ### Formatting - [x] Ran `make format`. - [x] Fixed errors surfaced by `make clippy`. Co-authored-by: Hudson Ayers <hayers@stanford.edu>
- Loading branch information