summaryrefslogtreecommitdiff
path: root/code/fe310/eos/net_def.h
blob: 40c55d1527ecbc1b14e3dd7fee3eee38e6abcfd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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_MTYPE_FLAG_ONEW     0x10

#define NET_SPI_DIV             16
#define NET_SPI_CSID            3