Hello,
When compiling my application, I get the following error:
_let ble_timer = BleTimer::init(device_peripherals.TIMER0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait NrfTimerExt is not implemented for nrf52840_hal::nrf52840_pac::TIMER0
|
note: required by BleTimer::<T>::init
--> /Users/xxxx/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rubble-nrf5x-0.0.4/src/timer.rs:38:5
|
38 | pub fn init(mut peripheral: T) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound nrf52840_hal::nrf52840_pac::TIMER0: NrfTimerExt is not satisfied
--> src/main.rs:52:25
|
52 | let ble_timer = BleTimer::init(device_peripherals.TIMER0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait NrfTimerExt is not implemented for nrf52840_hal::nrf52840_pac::TIMER0
|
::: /Users/xxxx/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rubble-nrf5x-0.0.4/src/timer.rs:30:24
|
30 | pub struct BleTimer<T: NrfTimerExt> {
| ----------- required by this bound in BleTimer_
Here are my dependencies:
_[dependencies]
rubble = "0.0.4"
rubble-nrf5x = "0.0.4"
cortex-m = "0.7.3"
cortex-m-rt = "0.7.0"
cortex-m-rtic = "0.5.9"
cortex-m-semihosting = "0.3.7"
panic-halt = "0.2.0"
rtt-target = { version = "0.3.1", features = ["cortex-m"] }
nrf52840-hal = { version = "0.14", features = ["rt"], optional = true }
[features]
52840 = ["rubble-nrf5x/52840", "nrf52840-hal"]_
I compile the app by calling cargo build --features 52840.
Does anybody have any idea what to do?
Hello,
When compiling my application, I get the following error:
_let ble_timer = BleTimer::init(device_peripherals.TIMER0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait
NrfTimerExtis not implemented fornrf52840_hal::nrf52840_pac::TIMER0|
note: required by
BleTimer::<T>::init--> /Users/xxxx/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rubble-nrf5x-0.0.4/src/timer.rs:38:5
|
38 | pub fn init(mut peripheral: T) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound
nrf52840_hal::nrf52840_pac::TIMER0: NrfTimerExtis not satisfied--> src/main.rs:52:25
|
52 | let ble_timer = BleTimer::init(device_peripherals.TIMER0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait
NrfTimerExtis not implemented fornrf52840_hal::nrf52840_pac::TIMER0|
::: /Users/xxxx/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rubble-nrf5x-0.0.4/src/timer.rs:30:24
|
30 | pub struct BleTimer<T: NrfTimerExt> {
| ----------- required by this bound in
BleTimer_Here are my dependencies:
_[dependencies]
rubble = "0.0.4"
rubble-nrf5x = "0.0.4"
cortex-m = "0.7.3"
cortex-m-rt = "0.7.0"
cortex-m-rtic = "0.5.9"
cortex-m-semihosting = "0.3.7"
panic-halt = "0.2.0"
rtt-target = { version = "0.3.1", features = ["cortex-m"] }
nrf52840-hal = { version = "0.14", features = ["rt"], optional = true }
[features]
52840 = ["rubble-nrf5x/52840", "nrf52840-hal"]_
I compile the app by calling cargo build --features 52840.
Does anybody have any idea what to do?