target.h 315 B

12345678910111213141516171819202122232425
  1. #ifndef TARGET_H
  2. #define TARGET_H
  3. /**
  4. * Initialize hardware
  5. */
  6. void target_init();
  7. /**
  8. * Check if dfu mode requested
  9. * @return 1 if dfu mode requested, 0 if not
  10. */
  11. int target_is_dfu_requested();
  12. /**
  13. * Switch to dfu mode
  14. */
  15. void target_switch2dfu();
  16. /**
  17. * Switch to OS
  18. */
  19. void target_switch2os();
  20. #endif