pub fn get_global_app_hard_fault() -> usize
Get the APP_HARD_FAULT flag.
APP_HARD_FAULT
This indicates that the app triggered the hard fault handler.
We need to do this in assembly because we cannot have Rust access the global variable.