Add BOOTLOADER_TAG
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
#include "i2c_addresses.h"
|
#include "i2c_addresses.h"
|
||||||
|
|
||||||
__attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = {
|
__attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = {
|
||||||
.tag = 0x6766636B, // Magic Number
|
.tag = BOOTLOADER_TAG,
|
||||||
.enabledPeripherals = ENABLE_PERIPHERAL_I2C,
|
.enabledPeripherals = ENABLE_PERIPHERAL_I2C,
|
||||||
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
|
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
|
||||||
.peripheralDetectionTimeoutMs = 300,
|
.peripheralDetectionTimeoutMs = 300,
|
||||||
.clockFlags = 0xFF, // Disable High speed mode
|
.clockFlags = 0xFF, // Disable High speed mode
|
||||||
.clockDivider = 0xFF, // Use clock divider (0)
|
.clockDivider = 0xFF, // Use clock divider (0)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
// Macros:
|
// Macros:
|
||||||
|
|
||||||
|
#define BOOTLOADER_TAG 0x6766636B
|
||||||
|
|
||||||
// bits for bootloader_config_t.enabledPeripherals
|
// bits for bootloader_config_t.enabledPeripherals
|
||||||
#define ENABLE_PERIPHERAL_UART (1<<0)
|
#define ENABLE_PERIPHERAL_UART (1<<0)
|
||||||
#define ENABLE_PERIPHERAL_I2C (1<<1)
|
#define ENABLE_PERIPHERAL_I2C (1<<1)
|
||||||
|
|||||||
Reference in New Issue
Block a user