diff --git a/Libraries/PeriphDrivers/Source/SYS/sys_ai85.c b/Libraries/PeriphDrivers/Source/SYS/sys_ai85.c index 48daeec33b8..1e3c71bed3e 100644 --- a/Libraries/PeriphDrivers/Source/SYS/sys_ai85.c +++ b/Libraries/PeriphDrivers/Source/SYS/sys_ai85.c @@ -82,7 +82,7 @@ int MXC_SYS_GetUSN(uint8_t *usn, uint8_t *checksum) uint32_t _usn_32[MXC_SYS_USN_CHECKSUM_LEN / 4]; // ^ Declare as uint32_t to preserve mem alignment - uint8_t *_usn_8 = (uint8_t *) _usn_32; + uint8_t *_usn_8 = (uint8_t *)_usn_32; memset(_usn_8, 0, MXC_SYS_USN_CHECKSUM_LEN); _usn_8[0] = (infoblock[0] & 0x007F8000) >> 15; diff --git a/Libraries/PeriphDrivers/Source/SYS/sys_ai87.c b/Libraries/PeriphDrivers/Source/SYS/sys_ai87.c index 7501c79c6f7..6cd27ccb7a7 100644 --- a/Libraries/PeriphDrivers/Source/SYS/sys_ai87.c +++ b/Libraries/PeriphDrivers/Source/SYS/sys_ai87.c @@ -82,7 +82,7 @@ int MXC_SYS_GetUSN(uint8_t *usn, uint8_t *checksum) uint32_t _usn_32[MXC_SYS_USN_CHECKSUM_LEN / 4]; // ^ Declare as uint32_t to preserve mem alignment - uint8_t *_usn_8 = (uint8_t *) _usn_32; + uint8_t *_usn_8 = (uint8_t *)_usn_32; memset(_usn_8, 0, MXC_SYS_USN_CHECKSUM_LEN); _usn_8[0] = (infoblock[0] & 0x007F8000) >> 15; @@ -102,7 +102,7 @@ int MXC_SYS_GetUSN(uint8_t *usn, uint8_t *checksum) /* If requested, verify and return the checksum */ if (checksum != NULL) { uint32_t _check_csum_32[MXC_SYS_USN_CHECKSUM_LEN / 4]; - // ^ Declare as uint32_t to preserve mem alignment + // ^ Declare as uint32_t to preserve mem alignment uint8_t *check_csum = (uint8_t *)_check_csum_32; memset(check_csum, 0, MXC_SYS_USN_CHECKSUM_LEN); uint8_t aes_key[MXC_SYS_USN_CHECKSUM_LEN] = { 0 }; // NULL Key (per checksum spec)