X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/43b9d552bb0a32c5cd5f9fa72a8cb3c871ad5ef3..9d733d44b402ce33c3c41e45b497c2f92be393f5:/LUFA/ManPages/SoftwareBootloaderJump.txt diff --git a/LUFA/ManPages/SoftwareBootloaderJump.txt b/LUFA/ManPages/SoftwareBootloaderJump.txt index d0b41e1b6..1fad85fb7 100644 --- a/LUFA/ManPages/SoftwareBootloaderJump.txt +++ b/LUFA/ManPages/SoftwareBootloaderJump.txt @@ -12,12 +12,15 @@ * hardware). This might be required because the device does not have any physical user input, or simply * just to streamline the device upgrade process on the host PC. * - * The following C code snippet may be used to enter the bootloader upon request by the user application. + * The following C code snippets may be used to enter the bootloader upon request by the user application. * By using the watchdog to physically reset the controller, it is ensured that all system hardware is * completely reset to their defaults before the bootloader is run. This is important; since bootloaders * are written to occupy a very limited space, they usually make assumptions about the register states based * on the default values after a hard-reset of the chip. * + * \section Sec_SoftareBootAVR8 AVR8 Architecture + * The following software bootloader jump code is written for the AVR8 architecture. + * * \code * #include * #include @@ -51,8 +54,7 @@ * cli(); * * // Wait two seconds for the USB detachment to register on the host - * for (uint8_t i = 0; i < 128; i++) - * _delay_ms(16); + * Delay_MS(2000); * * // Set the bootloader key to the magic value and force a reset * Boot_Key = MAGIC_BOOT_KEY;