You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
719 B
43 lines
719 B
#ifndef _FTDL_DAEMON_H
|
|
#define _FTDL_DAEMON_H
|
|
|
|
#include <sys/msg.h>
|
|
#include <ftdi.h>
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <errno.h>
|
|
|
|
#include "common.h"
|
|
|
|
|
|
#ifdef DEBUG
|
|
#define DEBUG_OUT(FMT,...) printf(FMT, ## __VA_ARGS__)
|
|
#else
|
|
#define DEBUG_OUT(FMT,...) {}
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
#define LOG(FMT,...) printf(FMT, ## __VA_ARGS__)
|
|
#else
|
|
#define DEBUG_OUT(FMT,...) {} //FIXME: add a log-file
|
|
#endif
|
|
|
|
#define PIN_TX 0
|
|
#define PIX_RX 1
|
|
#define PIN_RTS 2
|
|
#define PIN_CTS 3
|
|
#define PIN_DTR 4
|
|
#define PIN_DSR 5
|
|
#define PIN_DCD 6
|
|
#define PIN_RI 7
|
|
|
|
#define PIN_0 0
|
|
#define PIN_1 1
|
|
#define PIN_2 2
|
|
#define PIN_3 3
|
|
#define PIN_4 4
|
|
#define PIN_5 5
|
|
#define PIN_6 6
|
|
#define PIN_7 7
|
|
|
|
#endif //_FTDL_DAEMON_H
|
|
|