mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
add sentinels for test automation
This commit is contained in:
parent
a1474b3e40
commit
cae1c3267e
2 changed files with 6 additions and 3 deletions
|
|
@ -80,7 +80,8 @@ pub(crate) fn set_durations(prompt: i64, presence: i64) {
|
||||||
/// Some(char) => user is present, and they hit the key indicated
|
/// Some(char) => user is present, and they hit the key indicated
|
||||||
/// None => user was not present
|
/// None => user was not present
|
||||||
pub(crate) fn request_permission_blocking(reason: String, channel_id: [u8; 4]) -> Option<char> {
|
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)
|
request_permission_inner(reason, channel_id, true, None)
|
||||||
}
|
}
|
||||||
pub(crate) fn request_permission_polling(reason: String, application: [u8; 32]) -> bool {
|
pub(crate) fn request_permission_polling(reason: String, application: [u8; 32]) -> bool {
|
||||||
|
|
|
||||||
|
|
@ -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
|
/// continue be polled, and it shall return a value other than `Suspend` from `poll` when it no
|
||||||
/// longer detects the suspend condition.
|
/// longer detects the suspend condition.
|
||||||
fn suspend(&self) {
|
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
|
/// Resumes from suspend mode. This may only be called after the peripheral has been previously
|
||||||
/// suspended.
|
/// suspended.
|
||||||
fn resume(&self) {
|
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
|
/// Gets information about events and incoming data. Usually called in a loop or from an
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue