chore(radio): Move const data from RAM to FLASH. (#4098)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#if defined(SIMU)
|
||||
const uint32_t cpu_uid[3] = { 0x12345678, 0x55AA55AA, 0x87654321};
|
||||
#else
|
||||
const uint32_t * cpu_uid = (uint32_t *)0x1FFF7A10;
|
||||
const uint32_t * const cpu_uid = (uint32_t *)0x1FFF7A10;
|
||||
#endif
|
||||
|
||||
void getCPUUniqueID(char * s)
|
||||
|
||||
@@ -29,5 +29,5 @@ EXTERN_C(void getCPUUniqueID(char * s));
|
||||
#if defined(SIMU)
|
||||
extern const uint32_t cpu_uid[3];
|
||||
#else
|
||||
extern const uint32_t * cpu_uid;
|
||||
extern const uint32_t * const cpu_uid;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user