From f2d013ca34867a2f2051086f53f17f93d48f6921 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 3 Jun 2019 10:33:11 +0200 Subject: [PATCH 1/3] Fix anonymous union compilation error An anonymous union can only have non-static data members: struct::::ATCAI2C and others --- lib/atca_iface.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/atca_iface.h b/lib/atca_iface.h index 8db967b32..e79fea0da 100644 --- a/lib/atca_iface.h +++ b/lib/atca_iface.h @@ -71,19 +71,19 @@ typedef struct union // each instance of an iface cfg defines a single type of interface { - struct ATCAI2C + struct { uint8_t slave_address; // 8-bit slave address uint8_t bus; // logical i2c bus number, 0-based - HAL will map this to a pin pair for SDA SCL uint32_t baud; // typically 400000 } atcai2c; - struct ATCASWI + struct { uint8_t bus; // logical SWI bus - HAL will map this to a pin or uart port } atcaswi; - struct ATCAUART + struct { int port; // logic port number uint32_t baud; // typically 115200 @@ -92,7 +92,7 @@ typedef struct uint8_t stopbits; // 0,1,2 } atcauart; - struct ATCAHID + struct { int idx; // HID enumeration index uint32_t vid; // Vendor ID of kit (0x03EB for CK101) @@ -101,7 +101,7 @@ typedef struct uint8_t guid[16]; // The GUID for this HID device } atcahid; - struct ATCACUSTOM + struct { ATCA_STATUS (*halinit)(void *hal, void *cfg); ATCA_STATUS (*halpostinit)(void *iface); From 45b98391cca67148ab8adc3517c35dc76fe75def Mon Sep 17 00:00:00 2001 From: Motti Gondabi Date: Sun, 11 Aug 2019 13:44:43 +0300 Subject: [PATCH 2/3] file not exist and fails mbed-os build --- app/secure_boot/secure_boot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/secure_boot/secure_boot.c b/app/secure_boot/secure_boot.c index bac48b047..aec4acedb 100644 --- a/app/secure_boot/secure_boot.c +++ b/app/secure_boot/secure_boot.c @@ -33,7 +33,6 @@ #include "hal/atca_hal.h" #include "test/atca_test.h" #include "io_protection_key.h" -#include "crypto_device_app.h" /*Initialization routines */ static ATCA_STATUS secure_boot_init(secure_boot_parameters* secure_boot_params); @@ -276,4 +275,4 @@ ATCA_STATUS bind_host_and_secure_element_with_io_protection(uint16_t slot) while (0); return status; -} \ No newline at end of file +} From 78116610dbf288892cc1241308aa3fd82a591840 Mon Sep 17 00:00:00 2001 From: Motti Gondabi Date: Sun, 11 Aug 2019 13:45:25 +0300 Subject: [PATCH 3/3] change to forward slash as it fails mbed-os build --- app/secure_boot/secure_boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/secure_boot/secure_boot.h b/app/secure_boot/secure_boot.h index abdaebd5c..8c04460ce 100644 --- a/app/secure_boot/secure_boot.h +++ b/app/secure_boot/secure_boot.h @@ -36,7 +36,7 @@ extern "C" { #include "atca_status.h" #include "secure_boot_memory.h" #include "atca_command.h" -#include "crypto\atca_crypto_sw_sha2.h" +#include "crypto/atca_crypto_sw_sha2.h" #include "host/atca_host.h"