mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Eliminate some warnings
This commit is contained in:
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -69,6 +73,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* USB trace dumping */
|
/* USB trace dumping */
|
||||||
|
|
||||||
#ifndef CONFIG_USBDEV_TRACE
|
#ifndef CONFIG_USBDEV_TRACE
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -66,6 +70,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Debug ********************************************************************/
|
/* Debug ********************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_SYSCALL)
|
#if defined(CONFIG_DEBUG_SYSCALL)
|
||||||
@@ -75,7 +80,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -58,18 +62,6 @@
|
|||||||
|
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -122,13 +122,6 @@
|
|||||||
#undef CONFIG_USBHOST_ISOC_DISABLE
|
#undef CONFIG_USBHOST_ISOC_DISABLE
|
||||||
#define CONFIG_USBHOST_ISOC_DISABLE 1
|
#define CONFIG_USBHOST_ISOC_DISABLE 1
|
||||||
|
|
||||||
/* Simplify DEBUG checks */
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_USB
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Registers *******************************************************************/
|
/* Registers *******************************************************************/
|
||||||
/* Traditionally, NuttX specifies register locations using individual
|
/* Traditionally, NuttX specifies register locations using individual
|
||||||
* register offsets from a base address. That tradition is broken here and,
|
* register offsets from a base address. That tradition is broken here and,
|
||||||
@@ -4887,7 +4880,7 @@ FAR struct usbhost_connection_s *lpc31_ehci_initialize(int controller)
|
|||||||
{
|
{
|
||||||
FAR struct usbhost_hubport_s *hport;
|
FAR struct usbhost_hubport_s *hport;
|
||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_INFO)
|
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_ASSERTIONS)
|
||||||
uint16_t regval16;
|
uint16_t regval16;
|
||||||
unsigned int nports;
|
unsigned int nports;
|
||||||
#endif
|
#endif
|
||||||
@@ -5140,7 +5133,7 @@ FAR struct usbhost_connection_s *lpc31_ehci_initialize(int controller)
|
|||||||
|
|
||||||
lpc31_putreg(EHCI_INT_ALLINTS, &HCOR->usbsts);
|
lpc31_putreg(EHCI_INT_ALLINTS, &HCOR->usbsts);
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_INFO)
|
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_ASSERTIONS)
|
||||||
/* Show the EHCI version */
|
/* Show the EHCI version */
|
||||||
|
|
||||||
regval16 = lpc31_swap16(HCCR->hciversion);
|
regval16 = lpc31_swap16(HCCR->hciversion);
|
||||||
|
|||||||
@@ -68,14 +68,11 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -132,16 +132,7 @@
|
|||||||
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SPI debut is enabled (non-standard.. no support in
|
/* Check if SPI debut is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_SAM34_SPI_DMADEBUG
|
|
||||||
# undef CONFIG_SAM34_SPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_DMA
|
#ifndef CONFIG_DEBUG_DMA
|
||||||
# undef CONFIG_SAM34_SPI_DMADEBUG
|
# undef CONFIG_SAM34_SPI_DMADEBUG
|
||||||
@@ -149,13 +140,11 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -127,13 +127,6 @@
|
|||||||
# undef CONFIG_SAMA5_UHPHS_RHPORT1
|
# undef CONFIG_SAMA5_UHPHS_RHPORT1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Simplify DEBUG checks */
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_USB
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* For now, suppress use of PORTA in any event. I use that for SAM-BA and
|
/* For now, suppress use of PORTA in any event. I use that for SAM-BA and
|
||||||
* would prefer that the board not try to drive VBUS on that port!
|
* would prefer that the board not try to drive VBUS on that port!
|
||||||
*/
|
*/
|
||||||
@@ -4701,7 +4694,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller)
|
|||||||
FAR struct usbhost_hubport_s *hport;
|
FAR struct usbhost_hubport_s *hport;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_INFO)
|
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_ASSERTIONS)
|
||||||
uint16_t regval16;
|
uint16_t regval16;
|
||||||
unsigned int nports;
|
unsigned int nports;
|
||||||
#endif
|
#endif
|
||||||
@@ -4952,7 +4945,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller)
|
|||||||
|
|
||||||
sam_putreg(EHCI_INT_ALLINTS, &HCOR->usbsts);
|
sam_putreg(EHCI_INT_ALLINTS, &HCOR->usbsts);
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_INFO)
|
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_ASSERTIONS)
|
||||||
/* Show the EHCI version */
|
/* Show the EHCI version */
|
||||||
|
|
||||||
regval16 = sam_swap16(HCCR->hciversion);
|
regval16 = sam_swap16(HCCR->hciversion);
|
||||||
|
|||||||
@@ -125,16 +125,7 @@
|
|||||||
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SPI debut is enabled (non-standard.. no support in
|
/* Check if SPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_SAMA5_SPI_DMADEBUG
|
|
||||||
# undef CONFIG_SAMA5_SPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_DMA
|
#ifndef CONFIG_DEBUG_DMA
|
||||||
# undef CONFIG_SAMA5_SPI_DMADEBUG
|
# undef CONFIG_SAMA5_SPI_DMADEBUG
|
||||||
@@ -142,13 +133,11 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -77,28 +77,16 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Clocking *****************************************************************/
|
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SPI debug is enabled (non-standard.. no support in
|
/* Check if SPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_SAMDL_SPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -138,31 +138,20 @@
|
|||||||
#define IS_ALIGNED(n) (((uint32_t)(n) & ALIGN_MASK) == 0)
|
#define IS_ALIGNED(n) (((uint32_t)(n) & ALIGN_MASK) == 0)
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if QSPI debug is enabled (non-standard.. no support in
|
/* Check if QSPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_SAMV7_QSPI_DMADEBUG
|
|
||||||
# undef CONFIG_SAMV7_QSPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_DMA
|
#ifndef CONFIG_DEBUG_DMA
|
||||||
# undef CONFIG_SAMV7_QSPI_DMADEBUG
|
# undef CONFIG_SAMV7_QSPI_DMADEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define qspierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define qspiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define qspiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define qspierr(x...)
|
# define spierr(x...)
|
||||||
# define qspiinfo(x...)
|
# define spiwarn(x...)
|
||||||
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DMA_INITIAL 0
|
#define DMA_INITIAL 0
|
||||||
|
|||||||
@@ -120,16 +120,7 @@
|
|||||||
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SPI debug is enabled (non-standard.. no support in
|
/* Check if SPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_SAMV7_SPI_DMADEBUG
|
|
||||||
# undef CONFIG_SAMV7_SPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_DMA
|
#ifndef CONFIG_DEBUG_DMA
|
||||||
# undef CONFIG_SAMV7_SPI_DMADEBUG
|
# undef CONFIG_SAMV7_SPI_DMADEBUG
|
||||||
@@ -137,13 +128,11 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -75,24 +75,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SPI debug is enabled (non-standard.. no support in
|
/* Check if SPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -366,14 +366,7 @@
|
|||||||
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
#define DMA_TIMEOUT_TICKS MSEC2TICK(DMA_TIMEOUT_MS)
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SSC debug is enabled (non-standard.. no support in
|
/* Check if SSC debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_I2S
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_I2S
|
#ifndef CONFIG_DEBUG_I2S
|
||||||
# undef CONFIG_SAMV7_SSC_DMADEBUG
|
# undef CONFIG_SAMV7_SSC_DMADEBUG
|
||||||
@@ -389,15 +382,15 @@
|
|||||||
#ifdef CONFIG_DEBUG_I2S
|
#ifdef CONFIG_DEBUG_I2S
|
||||||
# define i2serr err
|
# define i2serr err
|
||||||
# define i2sllerr llerr
|
# define i2sllerr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define i2swarn warn
|
||||||
# define i2sinfo err
|
# define i2sllwarn llwarn
|
||||||
# define i2sllinfo llerr
|
# define i2sinfo info
|
||||||
# else
|
# define i2sllinfo llinfo
|
||||||
# define i2sinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define i2serr(x...)
|
# define i2serr(x...)
|
||||||
# define i2sllerr(x...)
|
# define i2sllerr(x...)
|
||||||
|
# define i2swarn(x...)
|
||||||
|
# define i2sllwarn(x...)
|
||||||
# define i2sinfo(x...)
|
# define i2sinfo(x...)
|
||||||
# define i2sllinfo(x...)
|
# define i2sllinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -157,22 +157,15 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Debug ****************************************************************************/
|
/* Debug ****************************************************************************/
|
||||||
/* Check if (non-standard) SPI debug is enabled */
|
/* Check if SPI debug is enabled */
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -85,16 +85,7 @@
|
|||||||
#define IS_ALIGNED(n) (((uint32_t)(n) & ALIGN_MASK) == 0)
|
#define IS_ALIGNED(n) (((uint32_t)(n) & ALIGN_MASK) == 0)
|
||||||
|
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if QSPI debug is enabled (non-standard.. no support in
|
/* Check if QSPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_STM32L4_QSPI_DMADEBUG
|
|
||||||
# undef CONFIG_STM32L4_QSPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_DMA
|
#ifndef CONFIG_DEBUG_DMA
|
||||||
# undef CONFIG_STM32L4_QSPI_DMADEBUG
|
# undef CONFIG_STM32L4_QSPI_DMADEBUG
|
||||||
@@ -102,13 +93,11 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define qspierr llerr
|
# define qspierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define qspiwarn llwarn
|
||||||
# define qspiinfo llerr
|
# define qspiinfo llinfo
|
||||||
# else
|
|
||||||
# define qspiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define qspierr(x...)
|
# define qspierr(x...)
|
||||||
|
# define qspiwarn(x...)
|
||||||
# define qspiinfo(x...)
|
# define qspiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -136,24 +136,16 @@
|
|||||||
#define SPI_TXDMA16NULL_CONFIG (SPI_DMA_PRIO|DMA_CCR_MSIZE_8BITS |DMA_CCR_PSIZE_16BITS |DMA_CCR_DIR)
|
#define SPI_TXDMA16NULL_CONFIG (SPI_DMA_PRIO|DMA_CCR_MSIZE_8BITS |DMA_CCR_PSIZE_16BITS |DMA_CCR_DIR)
|
||||||
#define SPI_TXDMA8NULL_CONFIG (SPI_DMA_PRIO|DMA_CCR_MSIZE_8BITS |DMA_CCR_PSIZE_8BITS |DMA_CCR_DIR)
|
#define SPI_TXDMA8NULL_CONFIG (SPI_DMA_PRIO|DMA_CCR_MSIZE_8BITS |DMA_CCR_PSIZE_8BITS |DMA_CCR_DIR)
|
||||||
|
|
||||||
|
|
||||||
/* Debug ****************************************************************************/
|
/* Debug ****************************************************************************/
|
||||||
/* Check if (non-standard) SPI debug is enabled */
|
/* Check if SPI debug is enabled */
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,17 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
|
#undef CONFIG_DEBUG_INFO
|
||||||
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -101,24 +101,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Debug ********************************************************************/
|
/* Debug ********************************************************************/
|
||||||
/* Define CONFIG_DEBUG_LCD to enable detailed LCD debug output. Verbose debug must
|
|
||||||
* also be enabled.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_GRAPHICS
|
|
||||||
# undef CONFIG_DEBUG_LCD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_LCD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LCD
|
#ifdef CONFIG_DEBUG_LCD
|
||||||
# define lcderr(format, ...) info(format, ##__VA_ARGS__)
|
# define lcderr(format, ...) err(format, ##__VA_ARGS__)
|
||||||
|
# define lcdwarn(format, ...) warn(format, ##__VA_ARGS__)
|
||||||
|
# define lcdinfo(format, ...) info(format, ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define lcderr(x...)
|
# define lcderr(x...)
|
||||||
|
# define lcdwarn(x...)
|
||||||
|
# define lcdinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -61,22 +61,15 @@
|
|||||||
/* Configuration ********************************************************************/
|
/* Configuration ********************************************************************/
|
||||||
|
|
||||||
/* Debug ****************************************************************************/
|
/* Debug ****************************************************************************/
|
||||||
/* Check if (non-standard) SPI debug is enabled */
|
/* Check if SPI debug is enabled */
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr(x...)
|
# define spierr(x...)
|
||||||
|
# define spiwarn(x...)
|
||||||
# define spiinfo(x...)
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|||||||
@@ -59,26 +59,16 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/* Debug *******************************************************************/
|
/* Debug *******************************************************************/
|
||||||
/* Check if SPI debug is enabled (non-standard.. no support in
|
/* Check if SPI debug is enabled */
|
||||||
* include/debug.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_DEBUG_FEATURES
|
|
||||||
# undef CONFIG_DEBUG_INFO
|
|
||||||
# undef CONFIG_DEBUG_SPI
|
|
||||||
# undef CONFIG_Z16F_ESPI_REGDEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_SPI
|
#ifdef CONFIG_DEBUG_SPI
|
||||||
# define spierr llerr
|
# define spierr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define spiwarn llwarn
|
||||||
# define spiinfo llerr
|
# define spiinfo llinfo
|
||||||
# else
|
|
||||||
# define spiinfo (void)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define spierr (void)
|
# define spierr(x...)
|
||||||
# define spiinfo (void)
|
# define spiwarn(x...)
|
||||||
|
# define spiinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG_FEATURES
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
|
# undef CONFIG_DEBUG_ERROR
|
||||||
|
# undef CONFIG_DEBUG_WARN
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG_FEATURES 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
|
# define CONFIG_DEBUG_ERROR 1
|
||||||
|
# define CONFIG_DEBUG_WARN 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -63,14 +63,6 @@
|
|||||||
#define STACK_ALIGN_DOWN(a) ((a) & ~STACK_ALIGN_MASK)
|
#define STACK_ALIGN_DOWN(a) ((a) & ~STACK_ALIGN_MASK)
|
||||||
#define STACK_ALIGN_UP(a) (((a) + STACK_ALIGN_MASK) & ~STACK_ALIGN_MASK)
|
#define STACK_ALIGN_UP(a) (((a) + STACK_ALIGN_MASK) & ~STACK_ALIGN_MASK)
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Types
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Function Prototypes
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|||||||
@@ -41,9 +41,15 @@
|
|||||||
|
|
||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -42,8 +42,12 @@
|
|||||||
/* Output debug info -- even if debug is not selected. */
|
/* Output debug info -- even if debug is not selected. */
|
||||||
|
|
||||||
#undef CONFIG_DEBUG_FEATURES
|
#undef CONFIG_DEBUG_FEATURES
|
||||||
|
#undef CONFIG_DEBUG_ERROR
|
||||||
|
#undef CONFIG_DEBUG_WARN
|
||||||
#undef CONFIG_DEBUG_INFO
|
#undef CONFIG_DEBUG_INFO
|
||||||
#define CONFIG_DEBUG_FEATURES 1
|
#define CONFIG_DEBUG_FEATURES 1
|
||||||
|
#define CONFIG_DEBUG_ERROR 1
|
||||||
|
#define CONFIG_DEBUG_WARN 1
|
||||||
#define CONFIG_DEBUG_INFO 1
|
#define CONFIG_DEBUG_INFO 1
|
||||||
|
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user