• R/O
  • SSH

mcuhal.arm: Commit

самопильный ХАЛ над библиотекой milandr SPL. позиционируется наличие порта порт на STM32 SPL.


Commit MetaInfo

Revisión944655e8191bf912572256120c6abc40a443084c (tree)
Tiempo2022-02-21 02:55:35
Autoralexrayne <alexraynepe196@gmai...>
Commiteralexrayne

Log Message

+contiki: gcc: CC_WEAK
! LC_FALLTHROUGH - attribute only after gcc7

Cambiar Resumen

Diferencia incremental

diff -r a208bc403666 -r 944655e8191b ware/contiki/os/sys/cc-gcc.h
--- a/ware/contiki/os/sys/cc-gcc.h Sun Dec 26 17:48:12 2021 +0300
+++ b/ware/contiki/os/sys/cc-gcc.h Sun Feb 20 20:55:35 2022 +0300
@@ -45,5 +45,7 @@
4545
4646 #define CC_CONF_UNUSED __attribute__((__unused__))
4747
48+#define CC_CONF_WEAK __attribute__((__weak__))
49+
4850 #endif /* __GNUC__ */
4951 #endif /* _CC_GCC_H_ */
diff -r a208bc403666 -r 944655e8191b ware/contiki/os/sys/cc.h
--- a/ware/contiki/os/sys/cc.h Sun Dec 26 17:48:12 2021 +0300
+++ b/ware/contiki/os/sys/cc.h Sun Feb 20 20:55:35 2022 +0300
@@ -122,6 +122,12 @@
122122 #define CC_UNUSED
123123 #endif /* CC_CONF_UNUSED */
124124
125+#ifdef CC_CONF_WEAK
126+#define CC_WEAK CC_CONF_WEAK
127+#else /* CC_CONF_WEAK */
128+#define CC_WEAK
129+#endif /* CC_CONF_WEAK */
130+
125131
126132 /**
127133 * Configure if the C compiler supports marking functions as deprecated
diff -r a208bc403666 -r 944655e8191b ware/contiki/os/sys/lc-switch.h
--- a/ware/contiki/os/sys/lc-switch.h Sun Dec 26 17:48:12 2021 +0300
+++ b/ware/contiki/os/sys/lc-switch.h Sun Feb 20 20:55:35 2022 +0300
@@ -74,7 +74,7 @@
7474 #else
7575 #define LC_FALLTHROUGH
7676 #endif
77-#elif __GNUC__ && !(defined(ECLIPSE) || defined(__CDT_PARSER__ ))
77+#elif (__GNUC__ >= 7) && !(defined(ECLIPSE) || defined(__CDT_PARSER__ ))
7878 // eclipse generates warnigs and macro invalid sintax here via internal bugs
7979 // define -DECLIPSE at preprocessor provider
8080 #define LC_FALLTHROUGH __attribute__ ((fallthrough))
Show on old repository browser