Browse Source

format code according to conventions [skip ci]

pull/7994/head 0.7.117
QMK Bot 4 years ago
parent
commit
fe50883c15
3 changed files with 3 additions and 4 deletions
  1. +1
    -1
      drivers/eeprom/eeprom_transient.h
  2. +1
    -1
      tmk_core/common/arm_atsam/eeprom.c
  3. +1
    -2
      tmk_core/common/chibios/eeprom_teensy.c

+ 1
- 1
drivers/eeprom/eeprom_transient.h View File

@ -21,5 +21,5 @@
*/
#ifndef TRANSIENT_EEPROM_SIZE
# include "eeconfig.h"
# define TRANSIENT_EEPROM_SIZE (((EECONFIG_SIZE+3)/4)*4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
# define TRANSIENT_EEPROM_SIZE (((EECONFIG_SIZE + 3) / 4) * 4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
#endif

+ 1
- 1
tmk_core/common/arm_atsam/eeprom.c View File

@ -18,7 +18,7 @@
#ifndef EEPROM_SIZE
# include "eeconfig.h"
# define EEPROM_SIZE (((EECONFIG_SIZE+3)/4)*4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
# define EEPROM_SIZE (((EECONFIG_SIZE + 3) / 4) * 4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
#endif
__attribute__((aligned(4))) static uint8_t buffer[EEPROM_SIZE];


+ 1
- 2
tmk_core/common/chibios/eeprom_teensy.c View File

@ -61,7 +61,6 @@
Attempts to modify the EEPROM_SIZE setting may brick your board.
*/
// Writing unaligned 16 or 32 bit data is handled automatically when
// this is defined, but at a cost of extra code size. Without this,
// any unaligned write will cause a hard fault exception! If you're
@ -529,7 +528,7 @@ void eeprom_write_block(const void *buf, void *addr, uint32_t len) {
# ifndef EEPROM_SIZE
# include "eeconfig.h"
# define EEPROM_SIZE (((EECONFIG_SIZE+3)/4)*4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
# define EEPROM_SIZE (((EECONFIG_SIZE + 3) / 4) * 4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
# endif
__attribute__((aligned(4))) static uint8_t buffer[EEPROM_SIZE];


Loading…
Cancel
Save