Extract BOOTLOADER_TIMEOUT_MS and set it to 100 ms.

This commit is contained in:
László Monda
2017-09-22 01:22:03 +02:00
parent 228bebcd59
commit ccc93f48cc
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ __attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t Bo
.tag = BOOTLOADER_TAG,
.enabledPeripherals = ENABLE_PERIPHERAL_I2C,
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
.peripheralDetectionTimeoutMs = 300,
.peripheralDetectionTimeoutMs = BOOTLOADER_TIMEOUT_MS,
.clockFlags = 0xFF, // Disable High speed mode
.clockDivider = 0xFF, // Use clock divider (0)
};

View File

@@ -9,6 +9,7 @@
// Macros:
#define BOOTLOADER_TAG 0x6766636B
#define BOOTLOADER_TIMEOUT_MS 100
// bits for bootloader_config_t.enabledPeripherals
#define ENABLE_PERIPHERAL_UART (1<<0)