summaryrefslogtreecommitdiffstats
path: root/termbaud_trivial.h
blob: 96ad75de9ce7abecef5230e44a8894952cc5f913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef TERMBAUD_H
#define TERMBAUD_H

#include <termios.h>
#include <inttypes.h>

typedef speed_t baud_t;

#define CFENCSPEED_IS_TRIVIAL 1

extern inline speed_t cfencspeed(baud_t x);
inline speed_t cfencspeed(baud_t x)
{
	return x;
}

extern inline speed_t cfdecspeed(baud_t x);
inline baud_t cfdecspeed(speed_t x)
{
	return x;
}

#endif /* TERMBAUD_H */