From cc3208a947645ae5e57e753a0788a034c55e28ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 22 Sep 2017 01:17:41 +0200 Subject: [PATCH] Add BOOTLOADER_TAG --- left/src/bootloader_config.c | 6 +++--- shared/kboot.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/left/src/bootloader_config.c b/left/src/bootloader_config.c index f0db0b0..aa7ab58 100644 --- a/left/src/bootloader_config.c +++ b/left/src/bootloader_config.c @@ -2,10 +2,10 @@ #include "i2c_addresses.h" __attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = { - .tag = 0x6766636B, // Magic Number + .tag = BOOTLOADER_TAG, .enabledPeripherals = ENABLE_PERIPHERAL_I2C, .i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER, .peripheralDetectionTimeoutMs = 300, - .clockFlags = 0xFF, // Disable High speed mode - .clockDivider = 0xFF, // Use clock divider (0) + .clockFlags = 0xFF, // Disable High speed mode + .clockDivider = 0xFF, // Use clock divider (0) }; diff --git a/shared/kboot.h b/shared/kboot.h index d5721e3..5a68090 100644 --- a/shared/kboot.h +++ b/shared/kboot.h @@ -8,6 +8,8 @@ // Macros: + #define BOOTLOADER_TAG 0x6766636B + // bits for bootloader_config_t.enabledPeripherals #define ENABLE_PERIPHERAL_UART (1<<0) #define ENABLE_PERIPHERAL_I2C (1<<1)