Mbed OS Reference
|
Functions | |
void | mbed_mac_address (char *mac) |
This returns a unique 6-byte MAC address, based on the interface UID If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00) More... | |
MBED_NORETURN void | mbed_die (void) |
Cause the mbed to flash the BLOD (Blue LEDs Of Death) sequence. More... | |
void | mbed_error_printf (const char *format,...) MBED_PRINTF(1 |
Print out an error message. More... | |
void void | mbed_error_vprintf (const char *format, va_list arg) MBED_PRINTF(1 |
Print out an error message. More... | |
void void void | mbed_error_puts (const char *str) |
Print out an error message. More... | |
void mbed_mac_address | ( | char * | mac | ) |
This returns a unique 6-byte MAC address, based on the interface UID If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00)
This is a weak function that can be overwritten if you want to provide your own mechanism to provide a MAC address.
mac | A 6-byte array to write the MAC address |
MBED_NORETURN void mbed_die | ( | void | ) |
Cause the mbed to flash the BLOD (Blue LEDs Of Death) sequence.
void mbed_error_printf | ( | const char * | format, |
... | |||
) |
Print out an error message.
This is typically called when handling a crash.
format | C string that contains data stream to be printed. Code snippets below show valid format. |
void void mbed_error_vprintf | ( | const char * | format, |
va_list | arg | ||
) |
Print out an error message.
Similar to mbed_error_printf but uses a va_list.
format | C string that contains data stream to be printed. |
arg | Variable arguments list |
void void void mbed_error_puts | ( | const char * | str | ) |
Print out an error message.
This is typically called when handling a crash.
Unlike mbed_error_printf, there is no limit to the maximum output length. Unlike standard puts, but like standard fputs, this does not append a '
' character.
mbed_error
relaxes various system traps to increase the chance of initialization working.str | C string that contains data stream to be printed. |