From 9129af503c8211d713c8a160a3b6f3f86b328639 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 2 Jan 2016 20:53:42 +0100 Subject: o Adding a utility to dump segment sizes from the generated ELF files. o Adding os2 with support for critical sections. More to come. o Adding dma1 to test DMA + SPI. --- include/playground.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/playground.h (limited to 'include/playground.h') diff --git a/include/playground.h b/include/playground.h new file mode 100644 index 0000000..c224908 --- /dev/null +++ b/include/playground.h @@ -0,0 +1,12 @@ +#ifndef PLAYGROUND_H +#define PLAYGROUND_H + +extern "C" void halt(); + +template +static inline +size_t SizeOfArray(const T(&)[N]) { + return N; +} + +#endif -- cgit v1.2.3