Skip to content

Commit b872d08

Browse files
author
Cruz Monrreal
authored
Merge pull request #10000 from malavikasajikumar/master
Adding support for SDP-K1.
2 parents ca62922 + 00863c2 commit b872d08

File tree

5 files changed

+1235
-0
lines changed

5 files changed

+1235
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/* mbed Microcontroller Library
2+
*******************************************************************************
3+
* SPDX-License-Identifier: BSD-3-Clause
4+
* Copyright (c) 2014, STMicroelectronics
5+
* All rights reserved.
6+
*
7+
* Redistribution and use in source and binary forms, with or without
8+
* modification, are permitted provided that the following conditions are met:
9+
*
10+
* 1. Redistributions of source code must retain the above copyright notice,
11+
* this list of conditions and the following disclaimer.
12+
* 2. Redistributions in binary form must reproduce the above copyright notice,
13+
* this list of conditions and the following disclaimer in the documentation
14+
* and/or other materials provided with the distribution.
15+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
16+
* may be used to endorse or promote products derived from this software
17+
* without specific prior written permission.
18+
*
19+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
*******************************************************************************
30+
*/
31+
#ifndef MBED_PERIPHERALNAMES_H
32+
#define MBED_PERIPHERALNAMES_H
33+
34+
#include "cmsis.h"
35+
36+
#ifdef __cplusplus
37+
extern "C" {
38+
#endif
39+
40+
typedef enum {
41+
ADC_1 = (int)ADC1_BASE,
42+
ADC_2 = (int)ADC2_BASE,
43+
ADC_3 = (int)ADC3_BASE
44+
} ADCName;
45+
46+
typedef enum {
47+
DAC_1 = (int)DAC_BASE
48+
} DACName;
49+
50+
typedef enum {
51+
UART_1 = (int)USART1_BASE,
52+
UART_2 = (int)USART2_BASE,
53+
UART_3 = (int)USART3_BASE,
54+
UART_4 = (int)UART4_BASE,
55+
UART_5 = (int)UART5_BASE,
56+
UART_6 = (int)USART6_BASE,
57+
UART_7 = (int)UART7_BASE,
58+
UART_8 = (int)UART8_BASE
59+
} UARTName;
60+
61+
typedef enum {
62+
SPI_1 = (int)SPI1_BASE,
63+
SPI_2 = (int)SPI2_BASE,
64+
SPI_3 = (int)SPI3_BASE,
65+
SPI_4 = (int)SPI4_BASE,
66+
SPI_5 = (int)SPI5_BASE,
67+
SPI_6 = (int)SPI6_BASE
68+
} SPIName;
69+
70+
typedef enum {
71+
I2C_1 = (int)I2C1_BASE,
72+
I2C_2 = (int)I2C2_BASE,
73+
I2C_3 = (int)I2C3_BASE
74+
} I2CName;
75+
76+
typedef enum {
77+
PWM_1 = (int)TIM1_BASE,
78+
PWM_2 = (int)TIM2_BASE,
79+
PWM_3 = (int)TIM3_BASE,
80+
PWM_4 = (int)TIM4_BASE,
81+
PWM_5 = (int)TIM5_BASE,
82+
PWM_8 = (int)TIM8_BASE,
83+
PWM_9 = (int)TIM9_BASE,
84+
PWM_10 = (int)TIM10_BASE,
85+
PWM_11 = (int)TIM11_BASE,
86+
PWM_12 = (int)TIM12_BASE,
87+
PWM_13 = (int)TIM13_BASE,
88+
PWM_14 = (int)TIM14_BASE
89+
} PWMName;
90+
91+
typedef enum {
92+
CAN_1 = (int)CAN1_BASE,
93+
CAN_2 = (int)CAN2_BASE
94+
} CANName;
95+
96+
typedef enum {
97+
QSPI_1 = (int)QSPI_R_BASE,
98+
} QSPIName;
99+
100+
#ifdef __cplusplus
101+
}
102+
#endif
103+
104+
#endif

0 commit comments

Comments
 (0)