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 
32 #define FLASH_XIP (1)
33 
38 #define PROVIDES_PM_SET_LOWEST
39 
44 #define CPUID_LEN (4U)
45 
49 #define GPIO_PIN(x,y) ((x << 4) | (y & 0xf))
50 
54 enum {
55  PORT_A = 0,
56  PORT_B = 1,
57  PORT_C = 2,
58  PORT_D = 3,
59  PORT_E = 4,
60  PORT_F = 5,
61  PORT_G = 6,
62 };
63 
67 #define PERIPH_TIMER_PROVIDES_SET
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* PERIPH_CPU_COMMON_H */
74 
port D
port F
port G
port A
port B
port E
port C