Add BOOTLOADER_TAG

This commit is contained in:
László Monda
2017-09-22 01:17:41 +02:00
parent e7362a057c
commit cc3208a947
2 changed files with 5 additions and 3 deletions

View File

@@ -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)
};

View File

@@ -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)