Add support for the UG-2843HHSWEG04 OLED and for the SAM4L Xplained Pro OLED module that uses that OLED.

This commit is contained in:
Gregory Nutt
2013-06-23 14:39:56 -06:00
parent a60e38e13a
commit d11050e978
16 changed files with 759 additions and 272 deletions
+24 -16
View File
@@ -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
/****************************************************************************