// return device serial number in array pointed to by snum // return value is actual copied data size in bytes
uint32_t blGetSnum(uint32_t *snum, uint32_t length); // early platform init; after return from this call blHostActive() and blConfigIo() may be called immediately void blSetup(); // platform cleanup before leaving bootloader; restore configuration altered by blSetup // on return from this call system state is similar enough to conditions seen after HW reset // it is safe to re-run all the bootloader code sequence again // it is also safe to start the custom code from flash void blCleanup(); // returns true if host is requesting us to start bootloader bool blHostActive(); // prepare data channel to exchange data with host void blConfigIo(); // reads data stream from host until synccode is seen; returns true if received synccode, false otherwise // must be called after blConfigIo() bool blSyncWait(uint32_t syncCode); // reset IO channel HW; // makes controller ready for next data packet // current packet is abandoned void blResetRxData();
// exchange 1 byte in both directions (SPI only)
uint8_t blSpiTxRxByte(uint32_t val);
// this must be called from reset vector handler // once data bss and stack are set properly // this method executes boot protocol, and returns when it is done // after calling method bootloader must jump to the OS boot address void blMain(uint32_t bootAddr);
#endif/* _BL_H_ */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-06-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.