Skip to content

Commit 3eab2b6

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Added files missed with patch application
1 parent 35f9ab0 commit 3eab2b6

File tree

18 files changed

+4191
-0
lines changed

18 files changed

+4191
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2018 GigaDevice Semiconductor Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
#ifndef MBED_PERIPHERALNAMES_H
20+
#define MBED_PERIPHERALNAMES_H
21+
22+
#include "cmsis.h"
23+
24+
#ifdef __cplusplus
25+
extern "C" {
26+
#endif
27+
28+
typedef enum {
29+
ADC_0 = (int)ADC0,
30+
ADC_1 = (int)ADC1
31+
} ADCName;
32+
33+
typedef enum {
34+
DAC_0 = (int)DAC0,
35+
DAC_1 = (int)DAC1,
36+
} DACName;
37+
38+
typedef enum {
39+
UART_0 = (int)USART0,
40+
UART_1 = (int)USART1,
41+
UART_2 = (int)USART2,
42+
UART_3 = (int)UART3,
43+
UART_4 = (int)UART4
44+
} UARTName;
45+
46+
#define STDIO_UART_TX PORTC_10
47+
#define STDIO_UART_RX PORTC_11
48+
#define STDIO_UART UART_2
49+
50+
typedef enum {
51+
SPI_0 = (int)SPI0,
52+
SPI_1 = (int)SPI1,
53+
SPI_2 = (int)SPI2
54+
} SPIName;
55+
56+
typedef enum {
57+
I2C_0 = (int)I2C0,
58+
I2C_1 = (int)I2C1
59+
} I2CName;
60+
61+
typedef enum {
62+
PWM_0 = (int)TIMER0,
63+
PWM_1 = (int)TIMER1,
64+
PWM_2 = (int)TIMER2,
65+
PWM_3 = (int)TIMER3,
66+
PWM_4 = (int)TIMER4,
67+
PWM_5 = (int)TIMER7,
68+
PWM_6 = (int)TIMER8,
69+
PWM_7 = (int)TIMER9,
70+
PWM_8 = (int)TIMER10,
71+
PWM_9 = (int)TIMER11,
72+
PWM_10 = (int)TIMER12,
73+
PWM_11 = (int)TIMER13
74+
} PWMName;
75+
76+
typedef enum {
77+
CAN_0 = (int)CAN0,
78+
CAN_1 = (int)CAN1
79+
} CANName;
80+
81+
#ifdef __cplusplus
82+
}
83+
#endif
84+
85+
#endif

0 commit comments

Comments
 (0)