uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
registry.c
Go to the documentation of this file.
1 #include <stdint.h>
2 #include <stdlib.h>
3 
4 extern const uint8_t __registry_space_1, __registry_space_1_end;
5 extern const uint8_t __registry_space_2, __registry_space_2_end;
6 extern const uint8_t __registry_space_3, __registry_space_3_end;
7 
8 __attribute__((section(".hwregistry"),weak)) uint8_t mac_address[6] = { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15 };
9 
10 __attribute__((section(".hwregistry"))) const uint8_t * __registry_spaces[8] = {
14  NULL, NULL,
15 };