1
0
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:
Marian Buschsieweke 2021-11-05 21:52:43 +01:00
parent b9c07f9622
commit b433183e0e
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

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