aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/stack.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-11-07 22:58:27 +0000
committerGitHub <[email protected]>2021-11-07 22:58:27 +0000
commit5322e293bdfca7c02fce76eae7a851ac59f422e0 (patch)
tree6d9fbf57670eb729f208ff7b33b5dbc3e366ed6b /embassy-net/src/stack.rs
parent90095adedf370ddcda6d364dbb5e7f3a0a9b5895 (diff)
parent663141b4e456bbfacaaff8decdba6840c76a136b (diff)
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 <[email protected]>
Diffstat (limited to 'embassy-net/src/stack.rs')
-rw-r--r--embassy-net/src/stack.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-net/src/stack.rs b/embassy-net/src/stack.rs
index 42defdcaf..4faf94953 100644
--- a/embassy-net/src/stack.rs
+++ b/embassy-net/src/stack.rs
@@ -75,6 +75,7 @@ impl Stack {
75 f(stack) 75 f(stack)
76 } 76 }
77 77
78 #[allow(clippy::absurd_extreme_comparisons)]
78 pub fn get_local_port(&mut self) -> u16 { 79 pub fn get_local_port(&mut self) -> u16 {
79 let res = self.next_local_port; 80 let res = self.next_local_port;
80 self.next_local_port = if res >= LOCAL_PORT_MAX { 81 self.next_local_port = if res >= LOCAL_PORT_MAX {