diff options
| author | xoviat <[email protected]> | 2023-06-17 08:37:00 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-06-17 08:37:00 -0500 |
| commit | 391f0b5d09dba018dd984a706dc8071f87e06dec (patch) | |
| tree | d26cf267e7f4ca54397ade9dfb4efe280d37dc4b | |
| parent | 9e8de5f596ffa9036c2343ccc1e69f471a4770eb (diff) | |
revert reset changes
| -rw-r--r-- | embassy-stm32-wpan/src/ble.rs | 5 | ||||
| -rw-r--r-- | embassy-stm32-wpan/src/sys.rs | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/embassy-stm32-wpan/src/ble.rs b/embassy-stm32-wpan/src/ble.rs index d8af861ae..3a6cc6f07 100644 --- a/embassy-stm32-wpan/src/ble.rs +++ b/embassy-stm32-wpan/src/ble.rs | |||
| @@ -16,11 +16,6 @@ pub struct Ble; | |||
| 16 | impl Ble { | 16 | impl Ble { |
| 17 | pub(super) fn enable() { | 17 | pub(super) fn enable() { |
| 18 | unsafe { | 18 | unsafe { |
| 19 | // Ensure reproducible behavior | ||
| 20 | BLE_CMD_BUFFER | ||
| 21 | .as_mut_ptr() | ||
| 22 | .write_volatile(MaybeUninit::zeroed().assume_init()); | ||
| 23 | |||
| 24 | LinkedListNode::init_head(EVT_QUEUE.as_mut_ptr()); | 19 | LinkedListNode::init_head(EVT_QUEUE.as_mut_ptr()); |
| 25 | 20 | ||
| 26 | TL_BLE_TABLE.as_mut_ptr().write_volatile(BleTable { | 21 | TL_BLE_TABLE.as_mut_ptr().write_volatile(BleTable { |
diff --git a/embassy-stm32-wpan/src/sys.rs b/embassy-stm32-wpan/src/sys.rs index fb247f276..36b4a144d 100644 --- a/embassy-stm32-wpan/src/sys.rs +++ b/embassy-stm32-wpan/src/sys.rs | |||
| @@ -16,11 +16,6 @@ pub struct Sys; | |||
| 16 | impl Sys { | 16 | impl Sys { |
| 17 | pub fn enable() { | 17 | pub fn enable() { |
| 18 | unsafe { | 18 | unsafe { |
| 19 | // Ensure reproducible behavior | ||
| 20 | SYS_CMD_BUF | ||
| 21 | .as_mut_ptr() | ||
| 22 | .write_volatile(MaybeUninit::zeroed().assume_init()); | ||
| 23 | |||
| 24 | LinkedListNode::init_head(SYSTEM_EVT_QUEUE.as_mut_ptr()); | 19 | LinkedListNode::init_head(SYSTEM_EVT_QUEUE.as_mut_ptr()); |
| 25 | 20 | ||
| 26 | TL_SYS_TABLE.as_mut_ptr().write_volatile(SysTable { | 21 | TL_SYS_TABLE.as_mut_ptr().write_volatile(SysTable { |
