jump_to_app.h 353 B

12345678910111213
  1. #ifndef JUMP_TO_APP_H
  2. #define JUMP_TO_APP_H
  3. #include <stdint.h>
  4. #include "boot_layout.h"
  5. /* APP 向量表合法性检查(MSP/Reset_Handler/Thumb)。1=合法 */
  6. uint8_t app_vector_ok(void);
  7. /* 写 boot reason 后跳转到 APP(不返回)。BL 侧调用前须保证 app_vector_ok() */
  8. void jump_to_app(boot_reason_t reason);
  9. #endif /* JUMP_TO_APP_H */