Last change
on this file since 348 was
231,
checked in by max@…, 7 years ago
|
Add a serial port multiplexer, usable to communicate with the
ALMOS-MKH kernel over a serial port.
|
File size:
932 bytes
|
Line | |
---|
1 | /* |
---|
2 | ******************************************************************************* |
---|
3 | * Authors: |
---|
4 | * Maxime Villard, 2017 |
---|
5 | * Jankovic Marco, 01/07/2014 |
---|
6 | ******************************************************************************* |
---|
7 | */ |
---|
8 | |
---|
9 | /* ---------------------------- Main paramameters --------------------------- */ |
---|
10 | #define NB_CHANNELS 4 |
---|
11 | |
---|
12 | #define DEVICE_PATH "/dev/pts/2" |
---|
13 | #define FIFO_RX "/tmp/fifo_rx" |
---|
14 | #define FIFO_TX "/tmp/fifo_tx" |
---|
15 | /* |
---|
16 | * see man termios.h for BAUD RATE selection |
---|
17 | */ |
---|
18 | #define BAUDRATE B19200 |
---|
19 | |
---|
20 | /* --------------------------------- DEBUG ---------------------------------- */ |
---|
21 | #define TEST_BENCH 0 |
---|
22 | |
---|
23 | #define DEBUG_MUX 0 |
---|
24 | #define DEBUG_WRITE 0 |
---|
25 | #define DEBUG_READ 0 |
---|
26 | |
---|
27 | /* |
---|
28 | * set the delay to 1 second for debug |
---|
29 | */ |
---|
30 | #define TIMEOUT_DELAY_MUX_S 0 |
---|
31 | #define TIMEOUT_DELAY_MUX_US 100 |
---|
32 | |
---|
33 | #define TIMEOUT_DELAY_READ_S 0 |
---|
34 | #define TIMEOUT_DELAY_READ_US 100 |
---|
35 | |
---|
36 | #define TIMEOUT_DELAY_WRITE_S 0 |
---|
37 | #define TIMEOUT_DELAY_WRITE_US 100 |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.