File tree Expand file tree Collapse file tree 6 files changed +21
-11
lines changed Expand file tree Collapse file tree 6 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ namespace arduino { namespace csn {
1414
1515    bool  get (uint8_t  *in, uint32_t  size) {
1616#if  CRYPTO_SN_SIZE == 0
17+         (void )in;
18+         (void )size;
1719        return  false ;
1820#else 
1921        if  (size < CRYPTO_SN_SIZE) {
Original file line number Diff line number Diff line change 1111#pragma  once
1212
1313#include  < Arduino.h> 
14- #include  < Arduino_SecureElement.h> 
15- 
16- namespace  arduino  { namespace  csn  {
17-     /* 
18-      * This library contains the methods to get board microcontroller id 
19-      */  
2014
2115#if    defined(ARDUINO_NANO_RP2040_CONNECT) || \
2216      defined (ARDUINO_SAMD_NANO_33_IOT)    || \
@@ -29,16 +23,24 @@ namespace arduino { namespace csn {
2923      defined(ARDUINO_PORTENTA_H7_M7)      || \
3024      defined(ARDUINO_OPTA)                || \
3125      defined(ARDUINO_GIGA)
26+     #include <Arduino_SecureElement.h>
3227    #define  CRYPTO_SN_SIZE  9 
3328#elif  defined(ARDUINO_PORTENTA_C33)        || \
3429      defined (ARDUINO_NICLA_VISION)
30+     #include <Arduino_SecureElement.h>
3531    #define  CRYPTO_SN_SIZE  SE05X_SN_LENGTH
3632#elif  defined(ARDUINO_UNOR4_WIFI)
33+     #include  < Arduino_SecureElement.h> 
3734    #define  CRYPTO_SN_SIZE  6 
3835#else 
3936    #define  CRYPTO_SN_SIZE  0 
4037#endif 
4138
39+ namespace  arduino  { namespace  csn  {
40+     /* 
41+      * This library contains the methods to get board microcontroller id 
42+      */  
43+ 
4244    bool  get (uint8_t  *in, uint32_t  size);
4345
4446}} //  arduino::csn
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ namespace arduino { namespace mac {
1414
1515    bool  get (uint8_t  *in, uint32_t  size) {
1616#if  IFACE_MAC_ADDR_LENGTH == 0
17+         (void )in;
18+         (void )size;
1719        return  false ;
1820#else 
1921        if  (size < IFACE_MAC_ADDR_LENGTH) {
Original file line number Diff line number Diff line change 1010
1111#pragma  once
1212
13+ #include  < Arduino.h> 
14+ 
1315#if    defined(ARDUINO_NANO_RP2040_CONNECT) || \
1416      defined (ARDUINO_SAMD_MKRWIFI1010)    || \
1517      defined(ARDUINO_SAMD_NANO_33_IOT)    || \
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ namespace arduino { namespace ucid {
1414
1515    bool  get (uint8_t  *in, uint32_t  size) {
1616#if  UC_UID_SIZE == 0
17+         (void )in;
18+         (void )size;
1719        return  false ;
1820#else 
1921        if  (size < UC_UID_SIZE) {
Original file line number Diff line number Diff line change 1212
1313#include  < Arduino.h> 
1414
15- namespace  arduino  { namespace  ucid  {
16-     /* 
17-      * This library contains the methods to get board microcontroller id 
18-      */  
19- 
2015#if    defined(ARDUINO_SAMD_MKRWIFI1010) || \
2116      defined (ARDUINO_SAMD_NANO_33_IOT)
2217    #define UC_UID_SIZE 16 
@@ -37,6 +32,11 @@ namespace arduino { namespace ucid {
3732    #define  UC_UID_SIZE  0 
3833#endif 
3934
35+ namespace  arduino  { namespace  ucid  {
36+     /* 
37+      * This library contains the methods to get board microcontroller id 
38+      */  
39+ 
4040    bool  get (uint8_t  *in, uint32_t  size);
4141
4242}} //  arduino::ucid
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments