Skip to content
Snippets Groups Projects
Commit 28b1b366 authored by Stephen D's avatar Stephen D
Browse files

move frequency into a constant

parent b6718cf8
Branches master
No related tags found
No related merge requests found
Pipeline #7058 passed
......@@ -28,6 +28,8 @@ mod app {
use crate::packet::PACKET_LEN;
use crate::spi_data::{self, SpiData};
const FREQUENCY_HZ: u32 = 446_900_000;
// in # packets
const BUFFER_LEN: usize = 100;
......@@ -147,7 +149,7 @@ mod app {
let delay = ctx.device.TIM5.delay_us(&clocks);
let mut radio = Rf4463::new(spi, sdn, cs, delay, &mut RADIO_CONFIG_500_2.clone()).unwrap();
radio.set_frequency(446_900_000).unwrap();
radio.set_frequency(FREQUENCY_HZ).unwrap();
radio_irq.make_interrupt_source(&mut sys_cfg);
radio_irq.enable_interrupt(&mut ctx.device.EXTI);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment