File tree 6 files changed +21
-11
lines changed
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 {
14
14
15
15
bool get (uint8_t *in, uint32_t size) {
16
16
#if CRYPTO_SN_SIZE == 0
17
+ (void )in;
18
+ (void )size;
17
19
return false ;
18
20
#else
19
21
if (size < CRYPTO_SN_SIZE) {
Original file line number Diff line number Diff line change 11
11
#pragma once
12
12
13
13
#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
- */
20
14
21
15
#if defined(ARDUINO_NANO_RP2040_CONNECT) || \
22
16
defined (ARDUINO_SAMD_NANO_33_IOT) || \
@@ -29,16 +23,24 @@ namespace arduino { namespace csn {
29
23
defined(ARDUINO_PORTENTA_H7_M7) || \
30
24
defined(ARDUINO_OPTA) || \
31
25
defined(ARDUINO_GIGA)
26
+ #include <Arduino_SecureElement.h>
32
27
#define CRYPTO_SN_SIZE 9
33
28
#elif defined(ARDUINO_PORTENTA_C33) || \
34
29
defined (ARDUINO_NICLA_VISION)
30
+ #include <Arduino_SecureElement.h>
35
31
#define CRYPTO_SN_SIZE SE05X_SN_LENGTH
36
32
#elif defined(ARDUINO_UNOR4_WIFI)
33
+ #include < Arduino_SecureElement.h>
37
34
#define CRYPTO_SN_SIZE 6
38
35
#else
39
36
#define CRYPTO_SN_SIZE 0
40
37
#endif
41
38
39
+ namespace arduino { namespace csn {
40
+ /*
41
+ * This library contains the methods to get board microcontroller id
42
+ */
43
+
42
44
bool get (uint8_t *in, uint32_t size);
43
45
44
46
}} // arduino::csn
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ namespace arduino { namespace mac {
14
14
15
15
bool get (uint8_t *in, uint32_t size) {
16
16
#if IFACE_MAC_ADDR_LENGTH == 0
17
+ (void )in;
18
+ (void )size;
17
19
return false ;
18
20
#else
19
21
if (size < IFACE_MAC_ADDR_LENGTH) {
Original file line number Diff line number Diff line change 10
10
11
11
#pragma once
12
12
13
+ #include < Arduino.h>
14
+
13
15
#if defined(ARDUINO_NANO_RP2040_CONNECT) || \
14
16
defined (ARDUINO_SAMD_MKRWIFI1010) || \
15
17
defined(ARDUINO_SAMD_NANO_33_IOT) || \
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ namespace arduino { namespace ucid {
14
14
15
15
bool get (uint8_t *in, uint32_t size) {
16
16
#if UC_UID_SIZE == 0
17
+ (void )in;
18
+ (void )size;
17
19
return false ;
18
20
#else
19
21
if (size < UC_UID_SIZE) {
Original file line number Diff line number Diff line change 12
12
13
13
#include < Arduino.h>
14
14
15
- namespace arduino { namespace ucid {
16
- /*
17
- * This library contains the methods to get board microcontroller id
18
- */
19
-
20
15
#if defined(ARDUINO_SAMD_MKRWIFI1010) || \
21
16
defined (ARDUINO_SAMD_NANO_33_IOT)
22
17
#define UC_UID_SIZE 16
@@ -37,6 +32,11 @@ namespace arduino { namespace ucid {
37
32
#define UC_UID_SIZE 0
38
33
#endif
39
34
35
+ namespace arduino { namespace ucid {
36
+ /*
37
+ * This library contains the methods to get board microcontroller id
38
+ */
39
+
40
40
bool get (uint8_t *in, uint32_t size);
41
41
42
42
}} // arduino::ucid
You can’t perform that action at this time.
0 commit comments