MCPcopy Create free account
hub / github.com/kiibohd/controller / init_usb_bootloader

Function init_usb_bootloader

Bootloader/main.c:408–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void init_usb_bootloader( int config )
409{
410 dfu_init( setup_read, setup_write, finish_write, &dfu_ctx );
411
412#if defined(_kinetis_)
413 // Make sure SysTick counter is disabled (dfu has issues otherwise)
414 SYST_CSR = 0;
415#endif
416
417 // Clear verified status
418 dfu_ctx.verified = DFU_VALIDATION_UNKNOWN;
419}
420
421// Code jump routine
422__attribute__((noreturn))

Callers 1

usb_initFunction · 0.85

Calls 1

dfu_initFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…