Skip to content

Commit 601b134

Browse files
committed
Add support for CC3220SF_LAUNCHXL.
2 parents d53bd61 + d14d934 commit 601b134

File tree

197 files changed

+111711
-19
lines changed

Some content is hidden

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

197 files changed

+111711
-19
lines changed

TESTS/mbed_hal/common_tickers/main.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@ extern "C" {
4848
#define TICKER_100_TICKS 100
4949
#define TICKER_500_TICKS 500
5050

51+
5152
#define MAX_FUNC_EXEC_TIME_US 30
53+
54+
/* On CC3220SF, each write/read register access takes 800us. This is HW limitation, per TI,
55+
* http://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/p/714873/2635552#2635552
56+
*/
57+
#ifdef TARGET_TI
58+
#define TI_MAX_SET_INTERRUPT_EXEC_TIME_US 3400
59+
#define TI_MAX_DISABLE_INTERRUPT_EXEC_TIME_US 2000
60+
#endif
61+
5262
#define DELTA_FUNC_EXEC_TIME_US 5
5363
#define NUM_OF_CALLS 100
5464

TESTS/mbed_hal/lp_ticker/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void lp_ticker_info_test()
107107

108108
TEST_ASSERT(p_ticker_info->frequency >= 4000);
109109
TEST_ASSERT(p_ticker_info->frequency <= 64000);
110-
TEST_ASSERT(p_ticker_info->bits >= 12);
110+
TEST_ASSERT(p_ticker_info->bits >= 12 && p_ticker_info->bits <= 32);
111111
}
112112

113113
#if DEVICE_SLEEP

TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void spi_async_handler()
5555
{
5656
int event = spi_irq_handler_asynch(&spi);
5757

58-
if (event == SPI_EVENT_COMPLETE) {
58+
if (event & SPI_EVENT_COMPLETE) {
5959
async_trasfer_done = true;
6060
}
6161
}
@@ -136,7 +136,7 @@ void spi_test_common(PinName mosi, PinName miso, PinName sclk, PinName ssel, SPI
136136

137137
async_trasfer_done = false;
138138

139-
spi_master_transfer(&spi, tx_buf, TRANSFER_COUNT, rx_buf, TRANSFER_COUNT, 8, (uint32_t)spi_async_handler, 0, DMA_USAGE_NEVER);
139+
spi_master_transfer(&spi, tx_buf, TRANSFER_COUNT, rx_buf, TRANSFER_COUNT, 8, (uint32_t)spi_async_handler, SPI_EVENT_COMPLETE, DMA_USAGE_NEVER);
140140
while (!async_trasfer_done);
141141

142142
for (int i = 0; i < TRANSFER_COUNT; i++) {

components/storage/blockdevice/COMPONENT_SD/mbed_lib.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@
161161
"SPI_CS": "p8"
162162
},
163163
"REALTEK_RTL8195AM": {
164+
"SPI_MOSI": "D11",
165+
"SPI_MISO": "D12",
166+
"SPI_CLK": "D13",
167+
"SPI_CS": "D9"
168+
},
169+
"NUCLEO_F207ZG": {
170+
"SPI_MOSI": "PC_12",
171+
"SPI_MISO": "PC_11",
172+
"SPI_CLK": "PC_10",
173+
"SPI_CS": "PA_15"
174+
},
175+
"CC3220SF_LAUNCHXL": {
164176
"SPI_MOSI": "D11",
165177
"SPI_MISO": "D12",
166178
"SPI_CLK": "D13",
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
extern const PinMap PinMap_PWM[];
28+
29+
/************UART***************/
30+
extern const PinMap PinMap_UART_TX[];
31+
extern const PinMap PinMap_UART_RX[];
32+
extern const PinMap PinMap_UART_CTS[];
33+
extern const PinMap PinMap_UART_RTS[];
34+
35+
#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)