mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
remove default on radio
This commit is contained in:
parent
847b8be814
commit
d408056a66
@ -17,10 +17,7 @@ use core::task::Poll;
|
||||
|
||||
use embassy_hal_internal::drop::OnDrop;
|
||||
use embassy_hal_internal::{into_ref, PeripheralRef};
|
||||
use jewel::phy::{
|
||||
AdvertisingChannel, Channel, ChannelTrait, HeaderSize, Mode, Radio as BleRadio, ADV_ADDRESS, ADV_CRC_INIT,
|
||||
CRC_POLY, MAX_PDU_LENGTH,
|
||||
};
|
||||
use jewel::phy::{Channel, ChannelTrait, HeaderSize, Mode, Radio as BleRadio, CRC_POLY, MAX_PDU_LENGTH};
|
||||
use pac::radio::mode::MODE_A as PacMode;
|
||||
use pac::radio::pcnf0::PLEN_A as PreambleLength;
|
||||
// Re-export SVD variants to allow user to directly set values.
|
||||
@ -145,14 +142,6 @@ impl<'d, T: Instance> Radio<'d, T> {
|
||||
|
||||
let mut radio = Self { _p: radio };
|
||||
|
||||
// set defaults
|
||||
radio.set_mode(Mode::Ble1mbit);
|
||||
radio.set_tx_power(0);
|
||||
radio.set_header_size(HeaderSize::TwoBytes);
|
||||
radio.set_access_address(ADV_ADDRESS);
|
||||
radio.set_crc_init(ADV_CRC_INIT);
|
||||
radio.set_channel(AdvertisingChannel::Ch39.into());
|
||||
|
||||
radio
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user