Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
38 | jlesech | 1 | /**************************************************************************//** |
2 | * \brief USART library |
||
3 | * \author Copyright (C) 2011 Julien Le Sech - www.idreammicro.com |
||
4 | * \version 1.0 |
||
5 | * \date 20090426 |
||
6 | * |
||
7 | * This file is part of the iDreamMicro library. |
||
8 | * |
||
9 | * This library is free software: you can redistribute it and/or modify it under |
||
10 | * the terms of the GNU Lesser General Public License as published by the Free |
||
11 | * Software Foundation, either version 3 of the License, or (at your option) any |
||
12 | * later version. |
||
13 | * |
||
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
||
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||
16 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||
17 | * details. |
||
18 | * |
||
19 | * You should have received a copy of the GNU Lesser General Public License |
||
20 | * along with this program. If not, see http://www.gnu.org/licenses/ |
||
21 | ******************************************************************************/ |
||
22 | |||
23 | /**************************************************************************//** |
||
24 | * \headerfile usart_prv.h |
||
25 | ******************************************************************************/ |
||
26 | |||
27 | #ifndef H__IDREAMMICRO__USART_PRV__H |
||
28 | #define H__IDREAMMICRO__USART_PRV__H |
||
29 | |||
30 | #ifdef _cplusplus |
||
31 | extern "C"{ |
||
32 | #endif |
||
33 | |||
34 | /**************************************************************************//** |
||
35 | * Header file inclusions. |
||
36 | ******************************************************************************/ |
||
37 | |||
38 | #include "../usart.h" |
||
39 | |||
40 | #include <stdint.h> |
||
41 | |||
42 | /**************************************************************************//** |
||
43 | * Internal constant definitions. |
||
44 | ******************************************************************************/ |
||
45 | |||
46 | const uint32_t usart__baudrate_values[] = |
||
47 | { |
||
48 | [USART__BAUDRATE__2400] = 2400, |
||
49 | [USART__BAUDRATE__4800] = 4800, |
||
50 | [USART__BAUDRATE__9600] = 9600, |
||
51 | [USART__BAUDRATE__14400] = 14400, |
||
52 | [USART__BAUDRATE__19200] = 19200, |
||
53 | [USART__BAUDRATE__28800] = 28800, |
||
54 | [USART__BAUDRATE__38400] = 38400, |
||
55 | [USART__BAUDRATE__57600] = 57600, |
||
56 | [USART__BAUDRATE__76800] = 76800, |
||
57 | [USART__BAUDRATE__115200] = 115200, |
||
58 | [USART__BAUDRATE__230400] = 230400, |
||
59 | [USART__BAUDRATE__250000] = 250000, |
||
60 | [USART__BAUDRATE__500000] = 500000, |
||
61 | [USART__BAUDRATE__1000000] = 1000000 |
||
62 | }; |
||
63 | |||
64 | #ifdef _cplusplus |
||
65 | } |
||
66 | #endif |
||
67 | |||
68 | #endif /* H__IDREAMMICRO__USART__H */ |