Move static radio_mem to rust

This commit is contained in:
Greg Shuflin 2021-03-01 23:25:54 -08:00
parent 8430209828
commit 0acf55a971
2 changed files with 4 additions and 2 deletions

View File

@ -69,8 +69,6 @@ void set_active_device(radio_device_t* 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.
//

View File

@ -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 {
fn get_active_device() -> *const radio_device_t;