boards/waspmote-pro/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin, Hinnerk van Bruinehsen
3  * Copyright (C) 2016 INRIA, Francisco Acosta
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef PERIPH_CONF_H
22 #define PERIPH_CONF_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define CLOCK_CORECLOCK (14745600UL)
33 
46 #define TIMER_NUMOF (2U)
47 #define TIMER_CHANNELS (3)
48 
49 #define TIMER_0 MEGA_TIMER1
50 #define TIMER_0_MASK &TIMSK1
51 #define TIMER_0_FLAG &TIFR1
52 #define TIMER_0_ISRA TIMER1_COMPA_vect
53 #define TIMER_0_ISRB TIMER1_COMPB_vect
54 #define TIMER_0_ISRC TIMER1_COMPC_vect
55 
56 #define TIMER_1 MEGA_TIMER4
57 #define TIMER_1_MASK &TIMSK4
58 #define TIMER_1_FLAG &TIFR4
59 #define TIMER_1_ISRA TIMER4_COMPA_vect
60 #define TIMER_1_ISRB TIMER4_COMPB_vect
61 #define TIMER_1_ISRC TIMER4_COMPC_vect
62 
73 #define UART_NUMOF (2U)
74 
75 #define UART_0 MEGA_UART0
76 #define UART_0_ISR USART0_RX_vect
77 
78 #define UART_1 MEGA_UART1
79 #define UART_1_ISR USART1_RX_vect
80 
81 /*
82  * UART speed constants for CLK=14745600
83  */
84 #define UART_2400 (383)
85 #define UART_4800 (191)
86 #define UART_9600 (95)
87 #define UART_115200 (7)
88 
104 #define SPI_NUMOF 1 /* set to 0 to disable SPI */
105 
111 #define I2C_BUS_SPEED I2C_SPEED_FAST
112 #define I2C_NUMOF 1
113 
119 #define ADC_NUMOF (8U)
120 
122 #ifdef __cplusplus
123 }
124 #endif
125 
126 #endif /* PERIPH_CONF_H */