mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
cpu/kinetis: silence -Wcast-align
This commit is contained in:
parent
b9c07f9622
commit
b433183e0e
@ -88,8 +88,11 @@ enum {
|
||||
ERASE_ERROR = -6,
|
||||
};
|
||||
|
||||
/* Pointer to FCCOB register */
|
||||
volatile uint32_t *const FCCOBx = (volatile uint32_t *)&FTFx->FCCOB3;
|
||||
/* Pointer to FCCOB register. An intermediate cast is used to silence
|
||||
* -Wcast-align as the address of the h/w register is properly aligned
|
||||
* for 32 bit accesses
|
||||
*/
|
||||
static volatile uint32_t *const FCCOBx = (volatile uint32_t *)(uintptr_t)&FTFx->FCCOB3;
|
||||
|
||||
/* Erasing/Programming flash is not allowed inside the same flash block
|
||||
where the program is being read, for _run_command to be executed in
|
||||
|
Loading…
Reference in New Issue
Block a user