nrf: add support for nrf52805, nrf52811, nrf52820
This commit is contained in:
@ -24,14 +24,11 @@ async fn main(spawner: Spawner) {
|
||||
|
||||
let p = unsafe { Peripherals::steal() };
|
||||
|
||||
let config = spim::Config {
|
||||
frequency: spim::Frequency::M16,
|
||||
mode: spim::MODE_0,
|
||||
orc: 0x00,
|
||||
};
|
||||
let mut config = spim::Config::default();
|
||||
config.frequency = spim::Frequency::M16;
|
||||
|
||||
let irq = interrupt::take!(SPIM3);
|
||||
let mut spim = spim::Spim::new(p.SPIM3, irq, p.P0_29, p.P0_28, p.P0_30, config);
|
||||
let mut spim = spim::Spim::new(p.SPI3, irq, p.P0_29, p.P0_28, p.P0_30, config);
|
||||
|
||||
let mut ncs = Output::new(p.P0_31, Level::High, OutputDrive::Standard);
|
||||
|
||||
|
Reference in New Issue
Block a user