summaryrefslogtreecommitdiff
path: root/code/fe310/eos/net_def.h
blob: 9aa25dde0935c7bc82d0a4c20f58e707872fe335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define NET_PIN_RTS             20
#define NET_PIN_CTS             22

#define NET_STATE_FLAG_RUN      0x01
#define NET_STATE_FLAG_RST      0x02
#define NET_STATE_FLAG_RTS      0x04
#define NET_STATE_FLAG_CTS      0x08
#define NET_STATE_FLAG_INIT     0x10
#define NET_STATE_FLAG_ONEW     0x20
#define NET_STATE_FLAG_XCHG     0x40

#define NET_SPI_DIV             16
#define NET_SPI_CSID            3