keyboard stuff
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow overriding `get_hardware_id()`. (#24051)

authored by

Nick Brassel and committed by
GitHub
3a711f4c cd22b8a9

+3 -3
+1 -1
platforms/arm_atsam/hardware_id.c
··· 3 3 4 4 #include "hardware_id.h" 5 5 6 - hardware_id_t get_hardware_id(void) { 6 + __attribute__((weak)) hardware_id_t get_hardware_id(void) { 7 7 hardware_id_t id = {0}; 8 8 return id; 9 9 }
+1 -1
platforms/avr/hardware_id.c
··· 10 10 #include <avr/boot.h> 11 11 #include "hardware_id.h" 12 12 13 - hardware_id_t get_hardware_id(void) { 13 + __attribute__((weak)) hardware_id_t get_hardware_id(void) { 14 14 hardware_id_t id = {0}; 15 15 for (uint8_t i = 0; i < 10; i += 1) { 16 16 ((uint8_t*)&id)[i] = boot_signature_byte_get(i + 0x0E);
+1 -1
platforms/chibios/hardware_id.c
··· 4 4 #include <ch.h> 5 5 #include "hardware_id.h" 6 6 7 - hardware_id_t get_hardware_id(void) { 7 + __attribute__((weak)) hardware_id_t get_hardware_id(void) { 8 8 hardware_id_t id = {0}; 9 9 #if defined(RP2040) 10 10 // Forward declare as including "hardware/flash.h" here causes more issues...