]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PeripheralNames.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_Maxim / TARGET_MAX32610 / TARGET_MAXWSNENV / PeripheralNames.h
1 /*******************************************************************************
2 * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Except as contained in this notice, the name of Maxim Integrated
23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
24 * Products, Inc. Branding Policy.
25 *
26 * The mere transfer of this software does not imply any licenses
27 * of trade secrets, proprietary technology, copyrights, patents,
28 * trademarks, maskwork rights, or any other form of intellectual
29 * property whatsoever. Maxim Integrated Products, Inc. retains all
30 * ownership rights.
31 *******************************************************************************
32 */
33
34 #ifndef MBED_PERIPHERALNAMES_H
35 #define MBED_PERIPHERALNAMES_H
36
37 #include "cmsis.h"
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 typedef enum {
44 UART_0 = MXC_BASE_UART0,
45 UART_1 = MXC_BASE_UART1,
46 STDIO_UART = UART_1
47 } UARTName;
48
49 typedef enum {
50 I2C_0 = MXC_BASE_I2CM0,
51 I2C_1 = MXC_BASE_I2CM1
52 } I2CName;
53
54 typedef enum {
55 SPI_0 = MXC_BASE_SPI0,
56 SPI_1 = MXC_BASE_SPI1,
57 SPI_2 = MXC_BASE_SPI2
58 } SPIName;
59
60 typedef enum {
61 PWM_0 = MXC_BASE_PT0,
62 PWM_1 = MXC_BASE_PT1,
63 PWM_2 = MXC_BASE_PT2,
64 PWM_3 = MXC_BASE_PT3,
65 PWM_4 = MXC_BASE_PT4,
66 PWM_5 = MXC_BASE_PT5,
67 PWM_6 = MXC_BASE_PT6,
68 PWM_7 = MXC_BASE_PT7
69 } PWMName;
70
71 typedef enum {
72 ADC = MXC_BASE_ADC
73 } ADCName;
74
75 typedef enum {
76 DAC0 = MXC_BASE_DAC0,
77 DAC1 = MXC_BASE_DAC1,
78 DAC2 = MXC_BASE_DAC2,
79 DAC3 = MXC_BASE_DAC3,
80 } DACName;
81
82 #ifdef __cplusplus
83 }
84 #endif
85
86 #endif
Imprint / Impressum