Merge #461
461: nrf: add initial nrf5340 support r=Dirbaio a=Dirbaio Thanks to `@diondokter's` work on DPPI this was quite easy! :) TODO: - [ ] Add config option to enable 128mhz - [ ] Add config option to unlock APPROTECT automatically. - [ ] Add a way to boot net (config option or API?) - [ ] Support WDT (there's WDT0, WDT1. Needs some refactor) - [ ] Support NVMC - [ ] Support TEMP Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
This commit is contained in:
@ -75,6 +75,7 @@ impl Stack {
|
||||
f(stack)
|
||||
}
|
||||
|
||||
#[allow(clippy::absurd_extreme_comparisons)]
|
||||
pub fn get_local_port(&mut self) -> u16 {
|
||||
let res = self.next_local_port;
|
||||
self.next_local_port = if res >= LOCAL_PORT_MAX {
|
||||
|
Reference in New Issue
Block a user