The friendly Operating System for the Internet of Things
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 
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 
105 #define SPI_NUMOF 1 /* set to 0 to disable SPI */
106 #define MEGA_PRR PRR0 /* Power Reduction Register */
107 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif /* PERIPH_CONF_H */