main.c 269 B

1234567891011121314
  1. #include "target.h"
  2. int main() {
  3. // Initialize hardware
  4. target_init();
  5. // Check if dfu requested
  6. if(target_is_dfu_requested()) {
  7. target_switch2dfu();
  8. }
  9. // Switch to OS
  10. target_switch2os();
  11. // Never should get here
  12. return 0;
  13. }