diff options
Diffstat (limited to 'lib/chibios-contrib/os/hal/ports/LPC/LPC11Uxx/lpc_registry.h')
-rw-r--r-- | lib/chibios-contrib/os/hal/ports/LPC/LPC11Uxx/lpc_registry.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/hal/ports/LPC/LPC11Uxx/lpc_registry.h b/lib/chibios-contrib/os/hal/ports/LPC/LPC11Uxx/lpc_registry.h new file mode 100644 index 000000000..266f20687 --- /dev/null +++ b/lib/chibios-contrib/os/hal/ports/LPC/LPC11Uxx/lpc_registry.h | |||
@@ -0,0 +1,56 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2020 Yaotian Feng / Codetector | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /** | ||
18 | * @file LPC11Uxx/lpc_registry.h | ||
19 | * @brief LPC11U11 capabilities registry. | ||
20 | * | ||
21 | * @addtogroup HAL | ||
22 | * @{ | ||
23 | */ | ||
24 | |||
25 | #ifndef LPC_REGISTRY_H_ | ||
26 | #define LPC_REGISTRY_H_ | ||
27 | |||
28 | /** | ||
29 | * @brief Sub-family identifier. | ||
30 | */ | ||
31 | #if defined(LPC11U35) || \ | ||
32 | defined(__DOXYGEN__) | ||
33 | #define LPC11Uxx | ||
34 | #else | ||
35 | #error unknown/unsupported LPC11Uxx microcontroller | ||
36 | #endif | ||
37 | |||
38 | #if defined(LPC11Uxx) || defined(__DOXYGEN__) | ||
39 | |||
40 | /* USB attributes.*/ | ||
41 | #define LPC_HAS_USB TRUE | ||
42 | #define LPC_USB_IRQ_VECTOR Vector98 | ||
43 | |||
44 | #define LPC_SSP0_IRQ_VECTOR Vector90 | ||
45 | #define LPC_SSP1_IRQ_VECTOR Vector78 | ||
46 | |||
47 | #define LPC_UART_IRQ_VECTOR Vector94 | ||
48 | |||
49 | #endif | ||
50 | |||
51 | |||
52 | /** @} */ | ||
53 | |||
54 | #endif /* LPC_REGISTRY_H_ */ | ||
55 | |||
56 | /** @} */ | ||