Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-31 01:01:31 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-31 01:01:31 +0300
commit1f1c2b39cd57d8d9782685c595b005d6b7023c46 (patch)
treeeee94b4179e9c62024bb2754bed9fdd338e9212a
parent22276b993bc8db027d55d8d47de4559ad10ca044 (diff)
Fixes for static analysis
-rw-r--r--src/Hardware/SAME70/Ethernet/ksz8081rna/ethernet_phy.h6
-rw-r--r--src/Libraries/Fatfs/diskio.cpp4
-rw-r--r--src/Networking/LwipEthernet/Lwip/lwipopts.h4
3 files changed, 13 insertions, 1 deletions
diff --git a/src/Hardware/SAME70/Ethernet/ksz8081rna/ethernet_phy.h b/src/Hardware/SAME70/Ethernet/ksz8081rna/ethernet_phy.h
index 7baa3e63..e9b73122 100644
--- a/src/Hardware/SAME70/Ethernet/ksz8081rna/ethernet_phy.h
+++ b/src/Hardware/SAME70/Ethernet/ksz8081rna/ethernet_phy.h
@@ -47,6 +47,10 @@
#ifndef ETHERNET_PHY_H_INCLUDED
#define ETHERNET_PHY_H_INCLUDED
+#include <ecv.h>
+#undef array
+#undef out
+
#include "compiler.h"
// IEEE defined Registers
@@ -115,7 +119,7 @@
#define GMII_RF (1 << 13) // Remote Fault
// Reserved 12 // Write as 0, ignore on read
#define GMII_PAUSE_MASK (3 << 10) // 0,0 = No Pause 1,0 = Asymmetric Pause(link partner)
- // 0,1 = Symmetric Pause 1,1 = Symmetric&Asymmetric Pause(local device)
+ // 0,1 = Symmetric Pause 1,1 = Symmetric&Asymmetric Pause(local device)
#define GMII_100T4 (1 << 9) // 100BASE-T4 Support
#define GMII_100TX_FDX (1 << 8) // 100BASE-TX Full Duplex Support
#define GMII_100TX_HDX (1 << 7) // 100BASE-TX Half Duplex Support
diff --git a/src/Libraries/Fatfs/diskio.cpp b/src/Libraries/Fatfs/diskio.cpp
index 22687235..d41a6193 100644
--- a/src/Libraries/Fatfs/diskio.cpp
+++ b/src/Libraries/Fatfs/diskio.cpp
@@ -41,6 +41,10 @@
*
*/
+#include <ecv.h>
+#undef array
+#undef out
+
#include "compiler.h"
#include "diskio.h"
diff --git a/src/Networking/LwipEthernet/Lwip/lwipopts.h b/src/Networking/LwipEthernet/Lwip/lwipopts.h
index acc23f00..eb382665 100644
--- a/src/Networking/LwipEthernet/Lwip/lwipopts.h
+++ b/src/Networking/LwipEthernet/Lwip/lwipopts.h
@@ -42,6 +42,10 @@
#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__
+#include <ecv.h>
+#undef array
+#undef out
+
/* Include ethernet configuration first */
#include "conf_eth.h"