Skip to content

Commit 101ae73

Browse files
authored
Merge pull request #11063 from linlingao/f_cc3220sf_launchxl
Add CC3220SF_Launchxl to Mbed OS
2 parents 2e09a27 + cae7427 commit 101ae73

File tree

201 files changed

+114946
-2
lines changed

Some content is hidden

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

201 files changed

+114946
-2
lines changed

components/storage/blockdevice/COMPONENT_SD/mbed_lib.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@
165165
"SPI_MISO": "D12",
166166
"SPI_CLK": "D13",
167167
"SPI_CS": "D10"
168+
},
169+
"CC3220SF_LAUNCHXL": {
170+
"SPI_MOSI": "D11",
171+
"SPI_MISO": "D12",
172+
"SPI_CLK": "D13",
173+
"SPI_CS": "D10"
168174
}
169175
}
170176
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2006-2018 ARM Limited
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+
#ifndef MBED_PERIPHERALPINS_H
18+
#define MBED_PERIPHERALPINS_H
19+
20+
#include "pinmap.h"
21+
#include "PeripheralNames.h"
22+
23+
/************GPIO***************/
24+
extern const PinMap PinMap_GPIO[];
25+
26+
/************PWM****************/
27+
#if DEVICE_PWMOUT
28+
extern const PinMap PinMap_PWM[];
29+
#endif
30+
31+
/************UART***************/
32+
#if DEVICE_SERIAL
33+
extern const PinMap PinMap_UART_TX[];
34+
extern const PinMap PinMap_UART_RX[];
35+
#if DEVICE_SERIAL_FC
36+
extern const PinMap PinMap_UART_RTS[];
37+
extern const PinMap PinMap_UART_CTS[];
38+
#endif
39+
#endif
40+
41+
/************ADC***************/
42+
#if DEVICE_ANALOGIN
43+
extern const PinMap PinMap_ADC[];
44+
#endif
45+
46+
/************SPI***************/
47+
#if DEVICE_SPI
48+
extern const PinMap PinMap_SPI_MOSI[];
49+
extern const PinMap PinMap_SPI_MISO[];
50+
extern const PinMap PinMap_SPI_SCLK[];
51+
extern const PinMap PinMap_SPI_SSEL[];
52+
#endif
53+
54+
#endif
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2006-2018 ARM Limited
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+
#ifndef MBED_PORTNAMES_H
17+
#define MBED_PORTNAMES_H
18+
19+
#ifdef __cplusplus
20+
extern "C" {
21+
#endif
22+
23+
typedef enum {
24+
Port0 = 0,
25+
Port1 = 1,
26+
Port2 = 2,
27+
Port3 = 3
28+
} PortName;
29+
30+
#ifdef __cplusplus
31+
}
32+
#endif
33+
#endif

0 commit comments

Comments
 (0)