summaryrefslogtreecommitdiff
path: root/include/debug_uart.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-24 00:38:31 +0300
committerSimon Glass <sjg@chromium.org>2015-07-22 02:39:21 +0300
commitc9689ca3182b89f1051b11eac2296a627abd4d31 (patch)
treee15a18816eac5fb476a41696c440af54c31f3414 /include/debug_uart.h
parent4eae498e68a3a6bdd8b18a8cb9191196e8843740 (diff)
downloadu-boot-c9689ca3182b89f1051b11eac2296a627abd4d31.tar.xz
Add a way of checking the position of a structure member
U-Boot uses structures for hardware access so it is important that these structures are correct. Add a way of asserting that a structure member is at a particular offset. This can be created using the datasheet for the hardware. This implementation uses Static_assert() since BUILD_BUG_ON() only works within functions. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/debug_uart.h')
0 files changed, 0 insertions, 0 deletions