Move static radio_mem to rust
This commit is contained in:
parent
8430209828
commit
0acf55a971
2
radio.c
2
radio.c
@ -69,8 +69,6 @@ void set_active_device(radio_device_t* d) {
|
|||||||
active_device = d;
|
active_device = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char radio_mem [1024*1024*2]; // Radio memory contents, up to 2 Mbytes
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Read the configuration from text file, and modify the firmware.
|
// Read the configuration from text file, and modify the firmware.
|
||||||
//
|
//
|
||||||
|
@ -31,6 +31,10 @@ static mut RADIO_TABLE: [(&'static str, &'static radio_device_t); 16] = unsafe {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Radio memory contents, up to 2 Mbytes
|
||||||
|
#[no_mangle]
|
||||||
|
pub static mut radio_mem: [u8; 1024*1024*2] = [0; 1024*1024*2];
|
||||||
|
|
||||||
extern {
|
extern {
|
||||||
|
|
||||||
fn get_active_device() -> *const radio_device_t;
|
fn get_active_device() -> *const radio_device_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user