Skip to content

Commit 2b2ec25

Browse files
authored
Merge pull request #11886 from kyle-cypress/pr/proto-062s3-4343w
Add target for CY8CPROTO-062S3-4343W
2 parents a169edf + c736afa commit 2b2ec25

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+11194
-16
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/resource_imp/wiced_resource.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define INCLUDED_RESOURCE_H_
3535

3636
#include <stdint.h>
37+
#include "cy_syslib.h"
3738

3839
#ifdef __cplusplus
3940
extern "C" {
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* mbed Microcontroller Library
3+
* Copyright (c) 2017-2018 Future Electronics
4+
* Copyright (c) 2019 Cypress Semiconductor Corporation
5+
* SPDX-License-Identifier: Apache-2.0
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
20+
#ifndef MBED_PERIPHERALNAMES_H
21+
#define MBED_PERIPHERALNAMES_H
22+
23+
#include "cmsis.h"
24+
#include "PinNames.h"
25+
26+
#ifdef __cplusplus
27+
extern "C" {
28+
#endif
29+
30+
typedef enum {
31+
UART_0 = (int)SCB0_BASE,
32+
UART_1 = (int)SCB1_BASE,
33+
UART_2 = (int)SCB2_BASE,
34+
UART_3 = (int)SCB3_BASE,
35+
UART_4 = (int)SCB4_BASE,
36+
UART_5 = (int)SCB5_BASE,
37+
/* SCB_6 does not support UART mode */
38+
} UARTName;
39+
40+
#define DEVICE_SPI_COUNT CY_IP_MXSCB_INSTANCES
41+
42+
typedef enum {
43+
SPI_0 = (int)SCB0_BASE,
44+
SPI_1 = (int)SCB1_BASE,
45+
SPI_2 = (int)SCB2_BASE,
46+
SPI_3 = (int)SCB3_BASE,
47+
SPI_4 = (int)SCB4_BASE,
48+
SPI_5 = (int)SCB5_BASE,
49+
SPI_6 = (int)SCB6_BASE,
50+
} SPIName;
51+
52+
typedef enum {
53+
I2C_0 = (int)SCB0_BASE,
54+
I2C_1 = (int)SCB1_BASE,
55+
I2C_2 = (int)SCB2_BASE,
56+
I2C_3 = (int)SCB3_BASE,
57+
I2C_4 = (int)SCB4_BASE,
58+
I2C_5 = (int)SCB5_BASE,
59+
I2C_6 = (int)SCB6_BASE,
60+
} I2CName;
61+
62+
typedef enum {
63+
PWM_32b_0 = TCPWM0_BASE,
64+
PWM_32b_1,
65+
PWM_32b_2,
66+
PWM_32b_3,
67+
PWM_16b_0 = TCPWM1_BASE,
68+
PWM_16b_1,
69+
PWM_16b_2,
70+
PWM_16b_3,
71+
PWM_16b_4,
72+
PWM_16b_5,
73+
PWM_16b_6,
74+
PWM_16b_7,
75+
} PWMName;
76+
77+
typedef enum {
78+
ADC_0 = (int)SAR_BASE,
79+
} ADCName;
80+
81+
typedef enum {
82+
QSPI_0,
83+
} QSPIName;
84+
85+
#ifdef __cplusplus
86+
}
87+
#endif
88+
89+
#endif

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CMOD_062S3_4343W/PeripheralPins.c

Lines changed: 309 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)