/** Return whether a specific address considered considered memory or peripheral */
Return whether a specific address considered considered memory or peripheral
Return whether a specific address considered considered memory or peripheral
fn is_memory(address: u64) -> bool {
    let mem_len = 6 * 1024 * 1024;
    let mem_no_cache_len = 8 * 1024 * 1024;
    // Note: This comes from the Kendryte SDK as-is. No, I have no idea why the AES accelerator
    // input address 0x50450040 is considered memory, either.
       ((address >= 0x80000000) && (address < 0x80000000 + mem_len))
    || ((address >= 0x40000000) && (address < 0x40000000 + mem_no_cache_len))
    || (address == 0x50450040)
}
fn is_memory ( address : u64 ) -> bool { let mem_len = 6 * 1024 * 1024 ; let mem_no_cache_len = 8 * 1024 * 1024 ; // Note: This comes from the Kendryte SDK as-is. No, I have no idea why the AES accelerator // input address 0x50450040 is considered memory, either. ( ( address >= 0x80000000 ) && ( address < 0x80000000 + mem_len ) ) || ( ( address >= 0x40000000 ) && ( address < 0x40000000 + mem_no_cache_len ) ) || ( address == 0x50450040 ) }
Return whether a specific address considered considered memory or peripheral
Return whether a specific address considered considered memory or peripheral
address
u64