[riot-notifications] [RIOT-OS/RIOT] boards/slwstk6220a: add support (via efm32) (#15299)

benpicco notifications at github.com
Wed Nov 4 22:25:22 CET 2020


I mean you could just blacklist efm32, but I have another (slightly hacky) solution:

```patch
diff --git a/cpu/efm32/include/cpu_conf.h b/cpu/efm32/include/cpu_conf.h
index e6427b0d82..cdff65125c 100644
--- a/cpu/efm32/include/cpu_conf.h
+++ b/cpu/efm32/include/cpu_conf.h
@@ -24,6 +24,12 @@
 
 #include "em_device.h"
 
+/* avoid namespace conflict */
+#ifdef AES_COUNT
+#define EFM32_AES_COUNT AES_COUNT
+#undef AES_COUNT
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
diff --git a/cpu/efm32/include/periph_cpu.h b/cpu/efm32/include/periph_cpu.h
index 864a61e5e2..47269c07d2 100644
--- a/cpu/efm32/include/periph_cpu.h
+++ b/cpu/efm32/include/periph_cpu.h
@@ -27,7 +27,6 @@
 
 #include "em_adc.h"
 #include "em_cmu.h"
-#include "em_device.h"
 #include "em_gpio.h"
 #include "em_timer.h"
 #include "em_usart.h"
diff --git a/pkg/cryptoauthlib/include/cryptoauthlib_test.h b/pkg/cryptoauthlib/include/cryptoauthlib_test.h
index 8a66d58091..899a42ec6c 100644
--- a/pkg/cryptoauthlib/include/cryptoauthlib_test.h
+++ b/pkg/cryptoauthlib/include/cryptoauthlib_test.h
@@ -23,9 +23,9 @@
 extern "C" {
 #endif
 
-#include "cryptoauthlib.h"
 #include "atca.h"
 #include "atca_params.h"
+#include "cryptoauthlib.h"
 
 /**
  * @brief   Helper function to use the library's unittests
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15299#issuecomment-721983327
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201104/f3ffb221/attachment.htm>


More information about the notifications mailing list