Update PinNames markers

pull/14381/head
George Psimenos 2021-03-09 11:36:54 +00:00
parent 87b587cc23
commit 3af96247a6
5 changed files with 9 additions and 22 deletions

View File

@ -19,7 +19,7 @@
^hal/storage_abstraction
^hal/tests/TESTS/mbed_hal/trng/pithy
^hal/tests/TESTS/mbed_hal/trng/pithy
^hal/tests/TESTS/pin_names/test_files
^hal/tests/pinvalidate
^platform/cxxsupport
^platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV
^platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM

View File

@ -340,6 +340,6 @@ matrix:
- >-
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
| ( grep '.*[\\|\/]PinNames.h$' || true ) \
| while read file; do python ./hal/tests/TESTS/pin_names/pinvalidate.py -vfp "${file}"; done
| while read file; do python ./hal/tests/pinvalidate/pinvalidate.py -vfp "${file}"; done
- git diff --exit-code --diff-filter=d --color

View File

@ -78,8 +78,6 @@ MBED_WEAK void gpio_get_capabilities(gpio_t *gpio, gpio_capabilities_t *cap)
cap->pull_up = 1;
}
#if defined (TARGET_FF_ARDUINO) || (TARGET_FF_ARDUINO_UNO)
typedef enum {
DEFAULT_GPIO = 0,
} DefaultGPIOPeripheralName;
@ -88,6 +86,7 @@ MBED_WEAK const PinMap *gpio_pinmap()
{
// Targets should override this weak implementation to provide correct data.
static const PinMap empty_gpio_pinmap[] = {
#if defined (TARGET_FF_ARDUINO) || (TARGET_FF_ARDUINO_UNO)
{ARDUINO_UNO_D0, DEFAULT_GPIO, 0},
{ARDUINO_UNO_D1, DEFAULT_GPIO, 0},
{ARDUINO_UNO_D2, DEFAULT_GPIO, 0},
@ -110,20 +109,8 @@ MBED_WEAK const PinMap *gpio_pinmap()
{ARDUINO_UNO_A3, DEFAULT_GPIO, 0},
{ARDUINO_UNO_A4, DEFAULT_GPIO, 0},
{ARDUINO_UNO_A5, DEFAULT_GPIO, 0},
{NC, NC, 0},
};
return empty_gpio_pinmap;
}
#else
MBED_WEAK const PinMap *gpio_pinmap()
{
static const PinMap empty_gpio_pinmap[] = {
{NC, NC, 0},
};
return empty_gpio_pinmap;
}
#endif
{NC, NC, 0},
};
return empty_gpio_pinmap;
}

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
/* MBED TARGET LIST: ARM_MUSCA_B1, ARM_MUSCA_B1_NS */
/* MBED TARGET LIST: ARM_MUSCA_B1 */
#ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
/* MBED TARGET LIST: ARM_MUSCA_S1, ARM_MUSCA_S1_NS */
/* MBED TARGET LIST: ARM_MUSCA_S1 */
#ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H