mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Diff: hal/mbed_pinmap_common.c
- Revision:
- 186:707f6e361f3e
- Parent:
- 149:156823d33999
--- a/hal/mbed_pinmap_common.c Thu Apr 19 17:12:19 2018 +0100 +++ b/hal/mbed_pinmap_common.c Fri Jun 22 16:45:37 2018 +0100 @@ -29,7 +29,7 @@ } map++; } - error("could not pinout"); + MBED_ERROR1(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_CODE_PINMAP_INVALID), "could not pinout", pin); } uint32_t pinmap_merge(uint32_t a, uint32_t b) { @@ -44,7 +44,7 @@ return a; // mis-match error case - error("pinmap mis-match"); + MBED_ERROR1(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_CODE_PINMAP_INVALID), "pinmap mis-match", a); return (uint32_t)NC; } @@ -64,7 +64,7 @@ return (uint32_t)NC; peripheral = pinmap_find_peripheral(pin, map); if ((uint32_t)NC == peripheral) // no mapping available - error("pinmap not found for peripheral"); + MBED_ERROR1(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_CODE_PINMAP_INVALID), "pinmap not found for peripheral", peripheral); return peripheral; } @@ -84,6 +84,6 @@ return (uint32_t)NC; function = pinmap_find_function(pin, map); if ((uint32_t)NC == function) // no mapping available - error("pinmap not found for function"); + MBED_ERROR1(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_CODE_PINMAP_INVALID), "pinmap not found for function", function); return function; }