The friendly Operating System for the Internet of Things
boards/chronos/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 INRIA
3  * 2015 Freie Universit├Ąt Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
21 #ifndef PERIPH_CONF_H
22 #define PERIPH_CONF_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
33 #define CLOCK_CORECLOCK (12000000U)
34 
35 #define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
36 
42 #define TIMER_NUMOF (1U)
43 #define TIMER_BASE (TIMER_A0)
44 #define TIMER_CHAN (5)
45 #define TIMER_ISR_CC0 (TIMER0_A0_VECTOR)
46 #define TIMER_ISR_CCX (TIMER0_A1_VECTOR)
47 
53 #define UART_NUMOF (1U)
54 #define UART_0_EN (1U)
55 
56 #define UART_DEV (USART_1)
57 #define UART_IE (SFR->IE2)
58 #define UART_IF (SFR->IFG2)
59 #define UART_IE_RX_BIT (1 << 4)
60 #define UART_IE_TX_BIT (1 << 5)
61 #define UART_ME (SFR->ME2)
62 #define UART_ME_BITS (0x30)
63 #define UART_PORT (PORT_3)
64 #define UART_RX_PIN (1 << 6)
65 #define UART_TX_PIN (1 << 7)
66 #define UART_RX_ISR (USART1RX_VECTOR)
67 #define UART_TX_ISR (USART1TX_VECTOR)
68 
73 #define RTC_NUMOF (1)
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* PERIPH_CONF_H */