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 
22 #ifndef PERIPH_CPU_COMMON_H
23 #define PERIPH_CPU_COMMON_H
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #define PROVIDES_PM_SET_LOWEST
34 
39 #define CPUID_LEN (4U)
40 
44 #define GPIO_PIN(x,y) ((x << 4) | (y & 0xf))
45 
49 enum {
50  PORT_A = 0,
51  PORT_B = 1,
52  PORT_C = 2,
53  PORT_D = 3,
54  PORT_E = 4,
55  PORT_F = 5,
56  PORT_G = 6,
57 };
58 
62 #define PERIPH_TIMER_PROVIDES_SET
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* PERIPH_CPU_COMMON_H */
69