Commit Graph

6 Commits (f7ed4b9f90357e63ca7d34f6fe9e676f4c598a5b)

Author SHA1 Message Date
Michael Kaplan f7ed4b9f90 CpuUid: complete refactoring to meet review requirements
Hopefully all review items were addressed.
2018-01-16 15:06:07 +01:00
Michael Kaplan c3fce7b959 CpuUid: fixed missing include for MBED_ASSERT() 2018-01-16 15:05:12 +01:00
Michael Kaplan 229601571d CpuUid: fixed coding style 2018-01-16 15:05:12 +01:00
Michael Kaplan 6bdc29395d CpuUid: buffer size assertion added
Added note in hal that a value higher than 0 is expected from the target implementation for the cpu_uid_get_length() function.

Added MBED_ASSERT for checking cpu_uid_get_length() return value in the driver.
2018-01-16 15:05:12 +01:00
Michael Kaplan 3406ff262f CpuUid: to save memory, overloaded type cast std::string operator uses minimal implementation instead of snprintf 2018-01-16 15:05:12 +01:00
Michael Kaplan 31d6a28a73 Added driver class using the CPU UID HAL API 2018-01-16 15:01:17 +01:00