add sentinels for test automation

This commit is contained in:
bunnie 2022-06-10 21:16:59 +08:00
parent a1474b3e40
commit cae1c3267e
2 changed files with 6 additions and 3 deletions

View file

@ -80,7 +80,8 @@ pub(crate) fn set_durations(prompt: i64, presence: i64) {
/// Some(char) => user is present, and they hit the key indicated
/// None => user was not present
pub(crate) fn request_permission_blocking(reason: String, channel_id: [u8; 4]) -> Option<char> {
log::info!("requesting permission (blocking)");
log::trace!("requesting permission (blocking)");
log::info!("{}VAULT.PERMISSION,{}", xous::BOOKEND_START, xous::BOOKEND_END);
request_permission_inner(reason, channel_id, true, None)
}
pub(crate) fn request_permission_polling(reason: String, application: [u8; 32]) -> bool {

View file

@ -853,13 +853,15 @@ impl UsbBus for SpinalUsbDevice {
/// continue be polled, and it shall return a value other than `Suspend` from `poll` when it no
/// longer detects the suspend condition.
fn suspend(&self) {
log::warn!("USB suspend called, doing nothing");
log::info!("{}USB.SUSPEND,{}", xous::BOOKEND_START, xous::BOOKEND_END);
log::warn!("USB suspend called; this implementation does nothing.");
}
/// Resumes from suspend mode. This may only be called after the peripheral has been previously
/// suspended.
fn resume(&self) {
log::warn!("USB resume called, but suspend is not implemented");
log::info!("{}USB.RESUME,{}", xous::BOOKEND_START, xous::BOOKEND_END);
log::info!("USB resume called.");
}
/// Gets information about events and incoming data. Usually called in a loop or from an