Skip to content

Commit 4a870d3

Browse files
The following changes were based on the request by Martin Kojtal:
Removed the pin definition comments from the xxx_api.c files; Added GHI_MBUINO to the build_travis.py target section.
1 parent 1584c55 commit 4a870d3

File tree

6 files changed

+2
-94
lines changed

6 files changed

+2
-94
lines changed

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/analogin_api.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ static inline int div_round_up(int x, int y) {
2929
return (x + (y - 1)) / y;
3030
}
3131

32-
//static const PinMap PinMap_ADC[] = {
33-
// {P0_11, ADC0_0, 0x02},
34-
// {P0_12, ADC0_1, 0x02},
35-
// {P0_13, ADC0_2, 0x02},
36-
// {P0_14, ADC0_3, 0x02},
37-
// {P0_15, ADC0_4, 0x02},
38-
// {P0_16, ADC0_5, 0x01},
39-
// {P0_22, ADC0_6, 0x01},
40-
// {P0_23, ADC0_7, 0x01},
41-
// {NC , NC , 0 }
42-
//};
43-
4432
#define LPC_IOCON0_BASE (LPC_IOCON_BASE)
4533
#define LPC_IOCON1_BASE (LPC_IOCON_BASE + 0x60)
4634

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
#include "pinmap.h"
2020
#include "PeripheralPins.h" // For the Peripheral to Pin Definitions found in the individual Target's Platform
2121

22-
//static const PinMap PinMap_I2C_SDA[] = {
23-
// {P0_5, I2C_0, 1},
24-
// {NC , NC , 0}
25-
//};
26-
//
27-
//static const PinMap PinMap_I2C_SCL[] = {
28-
// {P0_4, I2C_0, 1},
29-
// {NC , NC, 0}
30-
//};
31-
3222
#define I2C_CONSET(x) (x->i2c->CONSET)
3323
#define I2C_CONCLR(x) (x->i2c->CONCLR)
3424
#define I2C_STAT(x) (x->i2c->STAT)

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,6 @@
2222
#define TCR_CNT_EN 0x00000001
2323
#define TCR_RESET 0x00000002
2424

25-
///* To have a PWM where we can change both the period and the duty cycle,
26-
// * we need an entire timer. With the following conventions:
27-
// * * MR3 is used for the PWM period
28-
// * * MR0, MR1, MR2 are used for the duty cycle
29-
// */
30-
//static const PinMap PinMap_PWM[] = {
31-
// /* CT16B0 */
32-
// {P0_8 , PWM_1, 2}, {P1_13, PWM_1, 2}, /* MR0 */
33-
// {P0_9 , PWM_2, 2}, {P1_14, PWM_2, 2}, /* MR1 */
34-
// {P0_10, PWM_3, 3}, {P1_15, PWM_3, 2}, /* MR2 */
35-
//
36-
// /* CT16B1 */
37-
// {P0_21, PWM_4, 1}, /* MR0 */
38-
// {P0_22, PWM_5, 2}, {P1_23, PWM_5, 1}, /* MR1 */
39-
//
40-
// /* CT32B0 */
41-
// {P0_18, PWM_6, 2}, {P1_24, PWM_6, 1}, /* MR0 */
42-
// {P0_19, PWM_7, 2}, {P1_25, PWM_7, 1}, /* MR1 */
43-
// {P0_1 , PWM_8, 2}, {P1_26, PWM_8, 1}, /* MR2 */
44-
//
45-
// /* CT32B1 */
46-
// {P0_13, PWM_9 , 3}, {P1_0, PWM_9 , 1}, /* MR0 */
47-
// {P0_14, PWM_10, 3}, {P1_1, PWM_10, 1}, /* MR1 */
48-
// {P0_15, PWM_11, 3}, {P1_2, PWM_11, 1}, /* MR2 */
49-
//
50-
// {NC, NC, 0}
51-
//};
52-
5325
typedef struct {
5426
uint8_t timer;
5527
uint8_t mr;

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/serial_api.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,6 @@
2828
******************************************************************************/
2929
#define UART_NUM 1
3030

31-
//static const PinMap PinMap_UART_TX[] = {
32-
// {P0_19, UART_0, 1},
33-
// {P1_13, UART_0, 3},
34-
// {P1_27, UART_0, 2},
35-
// { NC , NC , 0}
36-
//};
37-
//
38-
//static const PinMap PinMap_UART_RX[] = {
39-
// {P0_18, UART_0, 1},
40-
// {P1_14, UART_0, 3},
41-
// {P1_26, UART_0, 2},
42-
// {NC , NC , 0}
43-
//};
44-
4531
static uint32_t serial_irq_ids[UART_NUM] = {0};
4632
static uart_irq_handler irq_handler;
4733

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,6 @@
2121
#include "error.h"
2222
#include "PeripheralPins.h" // For the Peripheral to Pin Definitions found in the individual Target's Platform
2323

24-
//static const PinMap PinMap_SPI_SCLK[] = {
25-
// {P0_6 , SPI_0, 0x02},
26-
// {P0_10, SPI_0, 0x02},
27-
// {P1_29, SPI_0, 0x01},
28-
// {P1_15, SPI_1, 0x03},
29-
// {P1_20, SPI_1, 0x02},
30-
// {NC , NC , 0}
31-
//};
32-
//
33-
//static const PinMap PinMap_SPI_MOSI[] = {
34-
// {P0_9 , SPI_0, 0x01},
35-
// {P0_21, SPI_1, 0x02},
36-
// {P1_22, SPI_1, 0x02},
37-
// {NC , NC , 0}
38-
//};
39-
//
40-
//static const PinMap PinMap_SPI_MISO[] = {
41-
// {P0_8 , SPI_0, 0x01},
42-
// {P0_22, SPI_1, 0x03},
43-
// {P1_21, SPI_1, 0x02},
44-
// {NC , NC , 0}
45-
//};
46-
//
47-
//static const PinMap PinMap_SPI_SSEL[] = {
48-
// {P0_2 , SPI_0, 0x01},
49-
// {P1_19, SPI_1, 0x02},
50-
// {P1_23, SPI_1, 0x02},
51-
// {NC , NC , 0}
52-
//};
53-
5424
static inline int ssp_disable(spi_t *obj);
5525
static inline int ssp_enable(spi_t *obj);
5626

workspace_tools/build_travis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
{ "target": "LPC1768", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "eth", "usb_host", "usb", "ublox"] },
1212
{ "target": "LPC2368", "toolchains": "GCC_ARM" },
1313
{ "target": "LPC11U24", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos"]},
14+
{ "target": "GHI_MBUINO", "toolchains": "GCC_ARM"},
15+
1416
{ "target": "LPC11U24_301", "toolchains": "GCC_ARM" },
1517
{ "target": "NUCLEO_F103RB", "toolchains": "GCC_ARM"},
1618

0 commit comments

Comments
 (0)