The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
137:e1686b8d5b90
Parent:
128:9bcdf88f62b0
--- a/TARGET_NUMAKER_PFM_M453/TARGET_NUVOTON/nu_miscutil.h	Tue Feb 14 11:24:20 2017 +0000
+++ b/TARGET_NUMAKER_PFM_M453/TARGET_NUVOTON/nu_miscutil.h	Tue Feb 28 16:44:21 2017 +0000
@@ -24,6 +24,8 @@
 #define NU_MAX(a,b) ((a)>(b)?(a):(b))
 #define NU_MIN(a,b) ((a)<(b)?(a):(b))
 #define NU_CLAMP(x, min, max)   NU_MIN(NU_MAX((x), (min)), (max))
+#define NU_ALIGN_DOWN(X, ALIGN)     ((X) & ~((ALIGN) - 1))
+#define NU_ALIGN_UP(X, ALIGN)       (((X) + (ALIGN) - 1) & ~((ALIGN) - 1))
 
 void nu_nop(uint32_t n);