Skip to content

Commit 770e481

Browse files
committed
Add missing includes
1 parent 4e4411e commit 770e481

File tree

6 files changed

+21
-11
lines changed

6 files changed

+21
-11
lines changed

src/bpid/csn.cpp

+2
Original file line numberDiff line numberDiff 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) {

src/bpid/csn.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
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

src/bpid/mac.cpp

+2
Original file line numberDiff line numberDiff 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) {

src/bpid/mac.h

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
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) || \

src/bpid/ucid.cpp

+2
Original file line numberDiff line numberDiff 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) {

src/bpid/ucid.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
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

0 commit comments

Comments
 (0)