mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
Add support for the UG-2843HHSWEG04 OLED and for the SAM4L Xplained Pro OLED module that uses that OLED.
This commit is contained in:
+24
-16
@@ -63,43 +63,51 @@
|
||||
# define VERIFY(f) \
|
||||
{ if ((f) < 0) up_assert((const uint8_t *)__FILE__, (int)__LINE__); }
|
||||
|
||||
# define PANIC() \
|
||||
up_assert((const uint8_t *)__FILE__, (int)__LINE__)
|
||||
|
||||
# ifdef CONFIG_DEBUG
|
||||
|
||||
# define DEBUGASSERT(f) \
|
||||
{ if (!(f)) up_assert((const uint8_t *)__FILE__, (int)__LINE__); }
|
||||
|
||||
# define DEBUGVERIFY(f) \
|
||||
{ if ((f) < 0) up_assert((const uint8_t *)__FILE__, (int)__LINE__); }
|
||||
|
||||
# define DEBUGPANIC() \
|
||||
up_assert((const uint8_t *)__FILE__, (int)__LINE__)
|
||||
|
||||
# else
|
||||
|
||||
# define DEBUGASSERT(f)
|
||||
# define DEBUGVERIFY(f) ((void)(f))
|
||||
# endif /* CONFIG_DEBUG */
|
||||
# define DEBUGPANIC()
|
||||
|
||||
# define PANIC() \
|
||||
up_assert((const uint8_t *)__FILE__, (int)__LINE__)
|
||||
# endif /* CONFIG_DEBUG */
|
||||
|
||||
#else
|
||||
# define ASSERT(f) \
|
||||
{ if (!(f)) up_assert(); }
|
||||
|
||||
# define VERIFY(f) \
|
||||
{ if ((f) < 0) up_assert(); }
|
||||
# define ASSERT(f) { if (!(f)) up_assert(); }
|
||||
# define VERIFY(f) { if ((f) < 0) up_assert(); }
|
||||
# define PANIC() up_assert()
|
||||
|
||||
# ifdef CONFIG_DEBUG
|
||||
# define DEBUGASSERT(f) \
|
||||
{ if (!(f)) up_assert(); }
|
||||
# define DEBUGVERIFY(f) \
|
||||
{ if ((f) < 0) up_assert(); }
|
||||
|
||||
# define DEBUGASSERT(f) { if (!(f)) up_assert(); }
|
||||
# define DEBUGVERIFY(f) { if ((f) < 0) up_assert(); }
|
||||
# define DEBUGPANIC() up_assert()
|
||||
|
||||
# else
|
||||
|
||||
# define DEBUGASSERT(f)
|
||||
# define DEBUGVERIFY(f) ((void)(f))
|
||||
# define DEBUGPANIC()
|
||||
|
||||
# endif /* CONFIG_DEBUG */
|
||||
|
||||
# define PANIC(code) \
|
||||
up_assert()
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef assert
|
||||
#define assert ASSERT
|
||||
# define assert ASSERT
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user