mips_pic32_common/include/periph_cpu_common.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 2017, Imagination Technologies Limited and/or its
3  * affiliated group companies.
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  */
10 
21 #ifndef PERIPH_CPU_COMMON_H
22 #define PERIPH_CPU_COMMON_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #define GPIO_PIN(x,y) ((x << 4) | (y & 0xf))
29 
33 enum {
34  PORT_A = 0,
35  PORT_B = 1,
36  PORT_C = 2,
37  PORT_D = 3,
38  PORT_E = 4,
39  PORT_F = 5,
40  PORT_G = 6,
41 };
42 
46 #define PERIPH_TIMER_PROVIDES_SET
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* PERIPH_CPU_COMMON_H */
53