remove radio feature

This commit is contained in:
Guilherme S. Salustiano 2024-02-07 18:09:10 +01:00
parent 5f1b80d40b
commit add7894314
11 changed files with 12 additions and 16 deletions

View File

@ -57,9 +57,6 @@ unstable-pac = []
## Enable GPIO tasks and events
gpiote = []
## Enable radio driver
radio = []
## Use RTC1 as the time driver for `embassy-time`, with a tick rate of 32.768khz
time-driver-rtc1 = ["_time-driver"]

View File

@ -212,7 +212,6 @@ impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_04, ANALOG_INPUT2);
impl_saadc_input!(P0_05, ANALOG_INPUT3);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -238,7 +238,6 @@ impl_saadc_input!(P0_29, ANALOG_INPUT5);
impl_saadc_input!(P0_30, ANALOG_INPUT6);
impl_saadc_input!(P0_31, ANALOG_INPUT7);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -240,7 +240,6 @@ impl_saadc_input!(P0_29, ANALOG_INPUT5);
impl_saadc_input!(P0_30, ANALOG_INPUT6);
impl_saadc_input!(P0_31, ANALOG_INPUT7);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -227,7 +227,6 @@ impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -267,7 +267,6 @@ impl_saadc_input!(P0_31, ANALOG_INPUT7);
impl_i2s!(I2S, I2S, I2S);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -309,7 +309,6 @@ impl_saadc_input!(P0_31, ANALOG_INPUT7);
impl_i2s!(I2S, I2S, I2S);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -314,7 +314,6 @@ impl_saadc_input!(P0_31, ANALOG_INPUT7);
impl_i2s!(I2S, I2S, I2S);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -348,7 +348,6 @@ impl_ppi_channel!(PPI_CH29, 29 => configurable);
impl_ppi_channel!(PPI_CH30, 30 => configurable);
impl_ppi_channel!(PPI_CH31, 31 => configurable);
#[cfg(feature = "radio")]
impl_radio!(RADIO, RADIO, RADIO);
embassy_hal_internal::interrupt_mod!(

View File

@ -46,10 +46,17 @@ pub mod gpio;
#[cfg(feature = "gpiote")]
pub mod gpiote;
#[cfg(feature = "radio")]
#[cfg(any(
feature = "nrf52805",
feature = "nrf52810",
feature = "nrf52811",
feature = "nrf52820",
feature = "nrf52832",
feature = "nrf52833",
feature = "nrf52840",
feature = "_nrf5340-net"
))]
pub mod radio;
#[cfg(all(feature = "radio", feature = "_nrf9160"))]
compile_error!("feature `radio` is not valid for nRF91 series chips.");
#[cfg(any(feature = "nrf52832", feature = "nrf52833", feature = "nrf52840"))]
pub mod i2s;

View File

@ -8,8 +8,8 @@ license = "MIT OR Apache-2.0"
embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
embassy-sync = { version = "0.5.0", path = "../../embassy-sync", features = ["defmt"] }
embassy-executor = { version = "0.5.0", path = "../../embassy-executor", features = ["task-arena-size-32768", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] }
embassy-time = { version = "0.3.0", features = ["defmt", "defmt-timestamp-uptime"] }
embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac", "time", "radio"]}
embassy-time = { version = "0.3.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] }
embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac", "time"] }
embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet"] }
embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] }
embedded-io = { version = "0.6.0", features = ["defmt-03"] }