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 (14745600L)
33 
46 #define TIMER_NUMOF (2U)
47 
48 #define TIMER_0 MEGA_TIMER1
49 #define TIMER_0_MASK &TIMSK1
50 #define TIMER_0_FLAG &TIFR1
51 #define TIMER_0_ISRA TIMER1_COMPA_vect
52 #define TIMER_0_ISRB TIMER1_COMPB_vect
53 #define TIMER_0_ISRC TIMER1_COMPC_vect
54 
55 #define TIMER_1 MEGA_TIMER4
56 #define TIMER_1_MASK &TIMSK4
57 #define TIMER_1_FLAG &TIFR4
58 #define TIMER_1_ISRA TIMER4_COMPA_vect
59 #define TIMER_1_ISRB TIMER4_COMPB_vect
60 #define TIMER_1_ISRC TIMER4_COMPC_vect
61 
72 #define UART_NUMOF (2U)
73 
74 #define UART_0 MEGA_UART0
75 #define UART_0_ISR USART0_RX_vect
76 
77 #define UART_1 MEGA_UART1
78 #define UART_1_ISR USART1_RX_vect
79 
80 /*
81  * UART speed constants for CLK=14745600
82  */
83 #define UART_2400 (383)
84 #define UART_4800 (191)
85 #define UART_9600 (95)
86 #define UART_115200 (7)
87 
103 #define SPI_NUMOF 1 /* set to 0 to disable SPI */
104 #define MEGA_PRR PRR0 /* Power Reduction Register */
105 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif /* PERIPH_CONF_H */