ENC264J600 driver

- initial prototype, based on Plipbox framework
  - handles some oddities with the current CPLD by software
    workarounds, i.e. needs future changes to go along
    with updated JED
  - lots of TODO still pending
This commit is contained in:
HenrykRichter
2017-12-20 23:08:21 +01:00
parent 8e2723cc99
commit a46badc542
24 changed files with 6165 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef __DEBUG_H
#define __DEBUG_H
#if (DEBUG != 0)
extern void KPrintF(char *, ...), KGetChar(void);
#endif
#if (DEBUG & 1)
# define d(x) do { KPrintF("%s:%s:%ld:",__FILE__,__FUNC__,__LINE__); KPrintF x; } while(0)
#else
# define d(x)
#endif
#if (DEBUG & 2)
# define d2(x) do { KPrintF("%s:%s:%ld:",__FILE__,__FUNC__,__LINE__); KPrintF x; } while(0)
#else
# define d2(x)
#endif
#if (DEBUG & 4)
# define d4(x) do { KPrintF("%s:%s:%ld:",__FILE__,__FUNC__,__LINE__); KPrintF x; } while(0)
#else
# define d4(x)
#endif
#if (DEBUG & 8)
# define d8(x) do { KPrintF("%s:%s:%ld:",__FILE__,__FUNC__,__LINE__); KPrintF x; } while(0)
#else
# define d8(x)
#endif
#endif