add testing feature for rekey in hosted mode to LLIO (dna swap)

This commit is contained in:
bunnie 2022-07-19 03:16:51 +08:00
parent e8188309cf
commit 900df7b223
2 changed files with 4 additions and 0 deletions

View file

@ -38,5 +38,6 @@ chrono = "0.4.19"
debugprint = []
wfi_off = [] # useful for serial port debugging, forces power on so the UART characters can finish printing
tts = []
test-rekey = []
default = [] # "debugprint"
#default = ["debugprint"] # , "fccagent"

View file

@ -21,6 +21,9 @@ impl Llio {
pub fn gpio_int_pending(&self, ) -> u32 { 0x0 }
pub fn gpio_int_ena(&self, _d: u32) {}
pub fn set_uart_mux(&self, _mux: UartType) {}
#[cfg(feature="test-rekey")]
pub fn get_info_dna(&self, ) -> (usize, usize) { (0, 1) }
#[cfg(not(feature="test-rekey"))]
pub fn get_info_dna(&self, ) -> (usize, usize) { (0, 0) }
pub fn get_info_git(&self, ) -> (usize, usize) { (0, 0) }
pub fn get_info_platform(&self, ) -> (usize, usize) { (0, 0) }