diff options
| -rw-r--r-- | src/bus.rs | 2 | ||||
| -rw-r--r-- | src/consts.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/bus.rs b/src/bus.rs index 65caea8ec..add346b2f 100644 --- a/src/bus.rs +++ b/src/bus.rs | |||
| @@ -74,7 +74,7 @@ where | |||
| 74 | // 32-bit word length, little endian (which is the default endianess). | 74 | // 32-bit word length, little endian (which is the default endianess). |
| 75 | self.write32_swapped( | 75 | self.write32_swapped( |
| 76 | REG_BUS_CTRL, | 76 | REG_BUS_CTRL, |
| 77 | WORD_LENGTH_32 | HIGH_SPEED | INTERRUPT_HIGH | WAKE_UP | STATUS_ENABLE, | 77 | WORD_LENGTH_32 | HIGH_SPEED | INTERRUPT_HIGH | WAKE_UP | STATUS_ENABLE | INTERRUPT_WITH_STATUS, |
| 78 | ) | 78 | ) |
| 79 | .await; | 79 | .await; |
| 80 | 80 | ||
diff --git a/src/consts.rs b/src/consts.rs index 6ed7feb92..fee2d01ab 100644 --- a/src/consts.rs +++ b/src/consts.rs | |||
| @@ -16,7 +16,8 @@ pub(crate) const WORD_LENGTH_32: u32 = 0x1; | |||
| 16 | pub(crate) const HIGH_SPEED: u32 = 0x10; | 16 | pub(crate) const HIGH_SPEED: u32 = 0x10; |
| 17 | pub(crate) const INTERRUPT_HIGH: u32 = 1 << 5; | 17 | pub(crate) const INTERRUPT_HIGH: u32 = 1 << 5; |
| 18 | pub(crate) const WAKE_UP: u32 = 1 << 7; | 18 | pub(crate) const WAKE_UP: u32 = 1 << 7; |
| 19 | pub(crate) const STATUS_ENABLE: u32 = 0x10000; | 19 | pub(crate) const STATUS_ENABLE: u32 = 1 << 16; |
| 20 | pub(crate) const INTERRUPT_WITH_STATUS: u32 = 1 << 17; | ||
| 20 | 21 | ||
| 21 | // SPI_STATUS_REGISTER bits | 22 | // SPI_STATUS_REGISTER bits |
| 22 | pub(crate) const STATUS_DATA_NOT_AVAILABLE: u32 = 0x00000001; | 23 | pub(crate) const STATUS_DATA_NOT_AVAILABLE: u32 = 0x00000001; |
