Stefan Schuermans commited on 2012-02-29 21:28:34
Showing 1 changed files, with 9 additions and 2 deletions.
... | ... |
@@ -5,11 +5,16 @@ |
5 | 5 |
#include "uart.h" |
6 | 6 |
#include "switches.h" |
7 | 7 |
|
8 |
+//#define CFG_SIMULATION |
|
9 |
+ |
|
10 |
+#define CFG_UART |
|
11 |
+#ifdef CFG_SIMULATION |
|
12 |
+# define CFG_UART_CHK |
|
13 |
+#else |
|
8 | 14 |
# define CFG_DELAY |
9 | 15 |
# define CFG_ETH |
10 | 16 |
# define CFG_LCD |
11 |
-#define CFG_UART |
|
12 |
-//#define CFG_UART_CHK |
|
17 |
+#endif |
|
13 | 18 |
|
14 | 19 |
const int myconst = 0x12345678; |
15 | 20 |
|
... | ... |
@@ -45,7 +50,9 @@ void switches(void) |
45 | 50 |
void delay(void) |
46 | 51 |
{ |
47 | 52 |
unsigned int i; |
53 |
+#ifdef CFG_ETH |
|
48 | 54 |
unsigned char chr; |
55 |
+#endif |
|
49 | 56 |
for (i = 0; i < 10; ++i) { |
50 | 57 |
switches(); |
51 | 58 |
#ifdef CFG_ETH |
52 | 59 |