From 69cd57354584681c4986ebcd8335eb92fc448bee Mon Sep 17 00:00:00 2001 From: James Crosby Date: Thu, 13 Nov 2014 11:24:36 +0000 Subject: [PATCH 1/2] add USBTX and USBRX pin definitions for targets that don't provide them (so that tests compile), but set to NC --- .../TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h | 7 ++++++- .../TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h | 7 ++++++- .../TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h | 7 ++++++- .../TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h | 7 ++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h index 9ec905f121..0d46ea96ca 100644 --- a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited + * Copyright (c) 2006-2014 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -132,6 +132,11 @@ typedef enum { // Not connected NC = (int)0xFFFFFFFF, + + // Standard but not supported pins + USBTX = NC, + USBRX = NC, + } PinName; typedef enum { diff --git a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h index 0d70d23355..0099540367 100644 --- a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited + * Copyright (c) 2006-2014 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -105,6 +105,11 @@ typedef enum { // Not connected NC = (int)0xFFFFFFFF, + + // Standard but not supported pins + USBTX = NC, + USBRX = NC, + } PinName; typedef enum { diff --git a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h index 6f20b537b5..89056391a4 100644 --- a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited + * Copyright (c) 2006-2014 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -147,6 +147,11 @@ typedef enum { // Not connected NC = (int)0xFFFFFFFF, + + // Standard but not supported pins + USBTX = NC, + USBRX = NC, + } PinName; typedef enum { diff --git a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h index 203ca83a75..b343556241 100644 --- a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited + * Copyright (c) 2006-2014 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -150,6 +150,11 @@ typedef enum { // Not connected NC = (int)0xFFFFFFFF, + + // Standard but not supported pins + USBTX = NC, + USBRX = NC, + } PinName; typedef enum { From fa2e957179f1e83c0e4a1ffced7e4e71d7b909e9 Mon Sep 17 00:00:00 2001 From: James Crosby Date: Thu, 13 Nov 2014 14:13:42 +0000 Subject: [PATCH 2/2] also add USBTX=USBRX=NC definitions for LPC13XX --- .../mbed/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h index 3f528558a3..bed2940fa3 100644 --- a/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h @@ -121,7 +121,12 @@ typedef enum { LED1 = p21, LED2 = p21, LED3 = p21, - LED4 = p21 + LED4 = p21, + + // Standard but not supported pins + USBTX = NC, + USBRX = NC, + } PinName; typedef enum {