Merge pull request #1493 from linusharberg/nrf-buffered-uarte-drop

Disable ppi group in BufferedUarte drop
This commit is contained in:
Dario Nieuwenhuis 2023-05-26 17:33:03 +02:00 committed by GitHub
commit a8b426d0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -646,6 +646,8 @@ mod _embedded_io {
impl<'a, U: UarteInstance, T: TimerInstance> Drop for BufferedUarte<'a, U, T> {
fn drop(&mut self) {
self._ppi_group.disable_all();
let r = U::regs();
self.timer.stop();

View File

@ -124,7 +124,7 @@ impl<'d, T: Instance> Timer<'d, T> {
this.stop();
if is_counter {
regs.mode.write(|w| w.mode().counter());
regs.mode.write(|w| w.mode().low_power_counter());
} else {
regs.mode.write(|w| w.mode().timer());
}