Replace all occurrences of vdbg with vinfo

This commit is contained in:
Gregory Nutt
2016-06-11 11:59:51 -06:00
parent 3a74a438d9
commit fc3540cffe
845 changed files with 5817 additions and 5817 deletions
+2 -2
View File
@@ -101,10 +101,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+4 -4
View File
@@ -254,7 +254,7 @@ int sam_sdinitialize(int minor)
/* Get the SPI driver instance for the SD chip select */
fvdbg("Initializing bit bang SPI for the MMC/SD slot\n");
finfo("Initializing bit bang SPI for the MMC/SD slot\n");
spi = sam_mmcsd_spiinitialize();
if (!spi)
@@ -263,11 +263,11 @@ int sam_sdinitialize(int minor)
return -ENODEV;
}
fvdbg("Successfully initialized bit bang SPI for the MMC/SD slot\n");
finfo("Successfully initialized bit bang SPI for the MMC/SD slot\n");
/* Bind the SPI device for the chip select to the slot */
fvdbg("Binding bit bang SPI device to MMC/SD slot %d\n",
finfo("Binding bit bang SPI device to MMC/SD slot %d\n",
SAM34_MMCSDSLOTNO);
ret = mmcsd_spislotinitialize(minor, SAM34_MMCSDSLOTNO, spi);
@@ -278,7 +278,7 @@ int sam_sdinitialize(int minor)
return ret;
}
fvdbg("Successfuly bound bit bang SPI device to MMC/SD slot %d\n",
finfo("Successfuly bound bit bang SPI device to MMC/SD slot %d\n",
SAM34_MMCSDSLOTNO);
return OK;
+3 -3
View File
@@ -266,7 +266,7 @@ static int tsc_attach(FAR struct ads7843e_config_s *state, xcpt_t isr)
{
/* Attach the XPT2046 interrupt */
ivdbg("Attaching %p to IRQ %d\n", isr, SAM_TSC_IRQ);
iinfo("Attaching %p to IRQ %d\n", isr, SAM_TSC_IRQ);
return irq_attach(SAM_TSC_IRQ, isr);
}
@@ -274,7 +274,7 @@ static void tsc_enable(FAR struct ads7843e_config_s *state, bool enable)
{
/* Attach and enable, or detach and disable */
ivdbg("IRQ:%d enable:%d\n", SAM_TSC_IRQ, enable);
iinfo("IRQ:%d enable:%d\n", SAM_TSC_IRQ, enable);
if (enable)
{
sam_gpioirqenable(SAM_TSC_IRQ);
@@ -300,7 +300,7 @@ static bool tsc_pendown(FAR struct ads7843e_config_s *state)
/* The /PENIRQ value is active low */
bool pendown = !sam_gpioread(GPIO_TSC_IRQ);
ivdbg("pendown:%d\n", pendown);
iinfo("pendown:%d\n", pendown);
return pendown;
}
+2 -2
View File
@@ -61,10 +61,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
@@ -93,10 +93,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* Dump GPIO registers */
+2 -2
View File
@@ -64,10 +64,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* The following definitions map the encoded LED setting to GPIO settings */
+3 -3
View File
@@ -67,13 +67,13 @@
#ifdef CONFIG_DEBUG_SPI
# define spidbg lldbg
# ifdef CONFIG_DEBUG_INFO
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/************************************************************************************
+5 -5
View File
@@ -107,13 +107,13 @@ static int usbhost_waiter(int argc, char *argv[])
{
struct usbhost_hubport_s *hport;
uvdbg("Running\n");
uinfo("Running\n");
for (;;)
{
/* Wait for the device to change state */
DEBUGVERIFY(CONN_WAIT(g_usbconn, &hport));
uvdbg("%s\n", hport->connected ? "connected" : "disconnected");
uinfo("%s\n", hport->connected ? "connected" : "disconnected");
/* Did we just become connected? */
@@ -177,7 +177,7 @@ int stm32_usbhost_initialize(void)
* that we care about:
*/
uvdbg("Register class drivers\n");
uinfo("Register class drivers\n");
#ifdef CONFIG_USBHOST_MSC
/* Register the USB mass storage class */
@@ -201,13 +201,13 @@ int stm32_usbhost_initialize(void)
/* Then get an instance of the USB host interface */
uvdbg("Initialize USB host\n");
uinfo("Initialize USB host\n");
g_usbconn = stm32_otgfshost_initialize(0);
if (g_usbconn)
{
/* Start a thread to handle device connection. */
uvdbg("Start usbhost_waiter\n");
uinfo("Start usbhost_waiter\n");
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
+2 -2
View File
@@ -64,10 +64,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+11 -11
View File
@@ -78,7 +78,7 @@
/* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define lcddbg(format, ...) info(format, ##__VA_ARGS__)
#else
# define lcddbg(x...)
#endif
@@ -307,7 +307,7 @@ int lcd_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer,
int lcd_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer,
size_t npixels)
{
gvdbg("Not implemented\n");
ginfo("Not implemented\n");
return -ENOSYS;
}
@@ -322,7 +322,7 @@ int lcd_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer,
static int lcd_getvideoinfo(FAR struct lcd_dev_s *dev,
FAR struct fb_videoinfo_s *vinfo)
{
DEBUGASSERT(dev && vinfo);gvdbg("fmt: %d xres: %d yres: %d nplanes: %d\n",
DEBUGASSERT(dev && vinfo);ginfo("fmt: %d xres: %d yres: %d nplanes: %d\n",
g_videoinfo.fmt, g_videoinfo.xres, g_videoinfo.yres, g_videoinfo.nplanes);
memcpy(vinfo, &g_videoinfo, sizeof(struct fb_videoinfo_s));
return OK;
@@ -339,7 +339,7 @@ static int lcd_getvideoinfo(FAR struct lcd_dev_s *dev,
static int lcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
FAR struct lcd_planeinfo_s *pinfo)
{
DEBUGASSERT(dev && pinfo && planeno == 0);gvdbg("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
DEBUGASSERT(dev && pinfo && planeno == 0);ginfo("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
memcpy(pinfo, &g_planeinfo, sizeof(struct lcd_planeinfo_s));
return OK;
}
@@ -355,7 +355,7 @@ static int lcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
static int lcd_getpower(struct lcd_dev_s *dev)
{
gvdbg("power: %d\n", 0);
ginfo("power: %d\n", 0);
return g_lcddev.power;
}
@@ -376,7 +376,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
return OK;
}
gvdbg("power: %d\n", power);
ginfo("power: %d\n", power);
DEBUGASSERT(power <= CONFIG_LCD_MAXPOWER);
/* Set new power level */
@@ -405,7 +405,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
}
else
{
gvdbg("powering LCD off...\n");
ginfo("powering LCD off...\n");
/* Switch pin from PWL to LT */
reg &= ~ASCONF_PWL_ENA;
putreg8(reg, ASIC_CONF_REG);
@@ -426,7 +426,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
static int lcd_getcontrast(struct lcd_dev_s *dev)
{
gvdbg("Not implemented\n");
ginfo("Not implemented\n");
return -ENOSYS;
}
@@ -440,7 +440,7 @@ static int lcd_getcontrast(struct lcd_dev_s *dev)
static int lcd_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
{
gvdbg("Not implemented\n");
ginfo("Not implemented\n");
return -ENOSYS;
}
@@ -453,7 +453,7 @@ static int lcd_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
**************************************************************************************/
static inline void lcd_initialize(void)
{
gvdbg("%s: initializing LCD.\n",__FUNCTION__);
ginfo("%s: initializing LCD.\n",__FUNCTION__);
calypso_reset_set(RESET_EXT, 0);
usleep(5000);
uwire_init();
@@ -478,7 +478,7 @@ static inline void lcd_initialize(void)
int board_lcd_initialize(void)
{
gvdbg("Initializing\n");
ginfo("Initializing\n");
lcd_initialize();
+2 -2
View File
@@ -56,10 +56,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+3 -3
View File
@@ -62,14 +62,14 @@
#ifdef SPI_DEBUG
# define spidbg lldbg
# ifdef SPI_VERBOSE
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# undef SPI_VERBOSE
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/************************************************************************************
+2 -2
View File
@@ -70,10 +70,10 @@
/* Dump GPIO registers */
#if defined(CONFIG_DEBUG_SPI) && defined(CONFIG_DEBUG_INFO)
# define ssivdbg lldbg
# define ssiinfo lldbg
# define ssi_dumpgpio(m) tiva_dumpgpio(SDCCS_GPIO, m)
#else
# define ssivdbg(x...)
# define ssiinfo(x...)
# define ssi_dumpgpio(m)
#endif
+1 -1
View File
@@ -102,7 +102,7 @@ int tiva_timer_configure(void)
{
int ret;
timvdbg("Registering TIMER%d at %s\n", GPTM, CONFIG_DK_TM4C129X_TIMER_DEVNAME);
timinfo("Registering TIMER%d at %s\n", GPTM, CONFIG_DK_TM4C129X_TIMER_DEVNAME);
ret = tiva_timer_register(CONFIG_DK_TM4C129X_TIMER_DEVNAME, GPTM, ALTCLK);
if (ret < 0)
+2 -2
View File
@@ -72,10 +72,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+3 -3
View File
@@ -244,7 +244,7 @@ static inline void lpc31_initsrc(void)
char devname[16];
#endif
pgllvdbg("Initializing %s\n", CONFIG_PAGING_BINPATH);
pgllinfo("Initializing %s\n", CONFIG_PAGING_BINPATH);
/* No, do we need to mount an SD device? */
@@ -300,7 +300,7 @@ static inline void lpc31_initsrc(void)
{
/* No... the initialize now */
pgllvdbg("Initializing\n");
pgllinfo("Initializing\n");
/* First get an instance of the SPI device interface */
@@ -327,7 +327,7 @@ static inline void lpc31_initsrc(void)
ret = MTD_IOCTL(g_pgsrc.mtd, MTDIOC_GEOMETRY, (unsigned long)&g_pgsrc.geo);
DEBUGASSERT(ret >= 0);
capacity = g_pgsrc.geo.erasesize*g_pgsrc.geo.neraseblocks;
pgllvdbg("capacity: %d\n", capacity);
pgllinfo("capacity: %d\n", capacity);
DEBUGASSERT(capacity >= (CONFIG_EA3131_PAGING_BINOFFSET + PG_TEXT_VSIZE));
#endif
+2 -2
View File
@@ -61,10 +61,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+3 -3
View File
@@ -67,14 +67,14 @@
#ifdef SPI_DEBUG
# define spidbg lldbg
# ifdef SPI_VERBOSE
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# undef SPI_VERBOSE
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/************************************************************************************
+2 -2
View File
@@ -104,7 +104,7 @@ static int ehci_waiter(int argc, char *argv[])
{
FAR struct usbhost_hubport_s *hport;
uvdbg("ehci_waiter: Running\n");
uinfo("ehci_waiter: Running\n");
for (;;)
{
/* Wait for the device to change state */
@@ -262,7 +262,7 @@ int lpc31_usbhost_initialize(void)
void lpc31_usbhost_vbusdrive(int rhport, bool enable)
{
uvdbg("RHPort%d: enable=%d\n", rhport+1, enable);
uinfo("RHPort%d: enable=%d\n", rhport+1, enable);
/* The LPC3131 has only a single root hub port */
+3 -3
View File
@@ -244,7 +244,7 @@ static inline void lpc31_initsrc(void)
char devname[16];
#endif
pgllvdbg("Initializing %s\n", CONFIG_PAGING_BINPATH);
pgllinfo("Initializing %s\n", CONFIG_PAGING_BINPATH);
/* No, do we need to mount an SD device? */
@@ -300,7 +300,7 @@ static inline void lpc31_initsrc(void)
{
/* No... the initialize now */
pgllvdbg("Initializing\n");
pgllinfo("Initializing\n");
/* First get an instance of the SPI device interface */
@@ -327,7 +327,7 @@ static inline void lpc31_initsrc(void)
ret = MTD_IOCTL(g_pgsrc.mtd, MTDIOC_GEOMETRY, (unsigned long)&g_pgsrc.geo);
DEBUGASSERT(ret >= 0);
capacity = g_pgsrc.geo.erasesize*g_pgsrc.geo.neraseblocks;
pgllvdbg("capacity: %d\n", capacity);
pgllinfo("capacity: %d\n", capacity);
DEBUGASSERT(capacity >= (CONFIG_EA3152_PAGING_BINOFFSET + PG_TEXT_VSIZE));
#endif
+2 -2
View File
@@ -61,10 +61,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+3 -3
View File
@@ -67,14 +67,14 @@
#ifdef SPI_DEBUG
# define spidbg lldbg
# ifdef SPI_VERBOSE
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# undef SPI_VERBOSE
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/************************************************************************************
+2 -2
View File
@@ -61,10 +61,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* Dump GPIO registers */
+3 -3
View File
@@ -67,14 +67,14 @@
#ifdef SSI_DEBUG
# define ssidbg lldbg
# ifdef SSI_VERBOSE
# define ssivdbg lldbg
# define ssiinfo lldbg
# else
# define ssivdbg(x...)
# define ssiinfo(x...)
# endif
#else
# undef SSI_VERBOSE
# define ssidbg(x...)
# define ssivdbg(x...)
# define ssiinfo(x...)
#endif
/* Dump GPIO registers */
+2 -2
View File
@@ -65,10 +65,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* The following definitions map the encoded LED setting to GPIO settings */
+2 -2
View File
@@ -65,10 +65,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+2 -2
View File
@@ -99,10 +99,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+2 -2
View File
@@ -76,10 +76,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+2 -2
View File
@@ -62,10 +62,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* Dump GPIO registers */
+3 -3
View File
@@ -66,14 +66,14 @@
#ifdef SSI_DEBUG
# define ssidbg lldbg
# ifdef SSI_VERBOSE
# define ssivdbg lldbg
# define ssiinfo lldbg
# else
# define ssivdbg(x...)
# define ssiinfo(x...)
# endif
#else
# undef SSI_VERBOSE
# define ssidbg(x...)
# define ssivdbg(x...)
# define ssiinfo(x...)
#endif
/* Dump GPIO registers */
+2 -2
View File
@@ -63,10 +63,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* The following definitions map the encoded LED setting to GPIO settings.
+1 -1
View File
@@ -206,7 +206,7 @@ void up_netinitialize(void)
return;
}
nllvdbg("Bound SPI port %d to ENC28J60 device %d\n",
nllinfo("Bound SPI port %d to ENC28J60 device %d\n",
ENC28J60_SPI_PORTNO, ENC28J60_DEVNO);
}
+2 -2
View File
@@ -97,7 +97,7 @@ int stm32_sdinitialize(int minor)
return -ENODEV;
}
fvdbg("Initialized SDIO slot %d\n", STM32_MMCSDSLOTNO);
finfo("Initialized SDIO slot %d\n", STM32_MMCSDSLOTNO);
/* Now bind the SDIO interface to the MMC/SD driver */
@@ -108,7 +108,7 @@ int stm32_sdinitialize(int minor)
STM32_MMCSDSLOTNO, minor);
}
fvdbg("Bound SDIO slot %d to the MMC/SD driver, minor=%d\n",
finfo("Bound SDIO slot %d to the MMC/SD driver, minor=%d\n",
STM32_MMCSDSLOTNO, minor);
/* Then let's guess and say that there is a card in the slot. I need to check to
+3 -3
View File
@@ -65,14 +65,14 @@
#ifdef SPI_DEBUG
# define spidbg lldbg
# ifdef SPI_VERBOSE
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# undef SPI_VERBOSE
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/************************************************************************************
+2 -2
View File
@@ -63,10 +63,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
+2 -2
View File
@@ -183,7 +183,7 @@ static int adxl345_attach(FAR struct adxl345_config_s *state,
{
FAR struct kl_adxl345config_s *priv = (FAR struct kl_adxl345config_s *)state;
snvdbg("Saving handler %p\n", handler);
sninfo("Saving handler %p\n", handler);
DEBUGASSERT(priv);
/* Just save the handler and its argument. We will use it when interrupts
@@ -264,7 +264,7 @@ int adxl345_archinitialize(int minor)
if (!g_adxl345config.handle)
{
snvdbg("Initializing\n");
sninfo("Initializing\n");
/* Configure the ADXL345 interrupt pin as an input */
+3 -3
View File
@@ -88,13 +88,13 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# ifdef CONFIG_DEBUG_INFO
# define ledvdbg lldbg
# define ledinfo lldbg
# else
# define ledvdbg(x...)
# define ledinfo(x...)
# endif
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* Dump GPIO registers */
+5 -5
View File
@@ -60,13 +60,13 @@
#ifdef CONFIG_DEBUG_SPI
# define spidbg lldbg
# ifdef CONFIG_DEBUG_INFO
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/****************************************************************************
@@ -164,7 +164,7 @@ void weak_function kl_spidev_initialize(void)
void kl_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
bool selected)
{
spivdbg("devid: %d CS: %s\n",
spiinfo("devid: %d CS: %s\n",
(int)devid, selected ? "assert" : "de-assert");
#ifdef CONFIG_ADXL345_SPI
@@ -190,7 +190,7 @@ void kl_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
void kl_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
bool selected)
{
spivdbg("devid: %d CS: %s\n",
spiinfo("devid: %d CS: %s\n",
(int)devid, selected ? "assert" : "de-assert");
}
#endif
+2 -2
View File
@@ -135,7 +135,7 @@ static void tsi_calibrate(void)
while (!(getreg32(KL_TSI_GENCS) & TSI_GENCS_EOSF));
g_defcap[i] = getreg32(KL_TSI_DATA) & TSI_DATA_TSICNT_MASK;
ivdbg("Sensor %d = %d\n", i+1, g_defcap[i]);
iinfo("Sensor %d = %d\n", i+1, g_defcap[i]);
}
}
@@ -187,7 +187,7 @@ static ssize_t tsi_read(FAR struct file *filep, FAR char *buf, size_t buflen)
g_currdelta = (uint16_t)deltacap;
ivdbg("Delta for g_channel %d = %d\n", g_channel, g_currdelta);
iinfo("Delta for g_channel %d = %d\n", g_channel, g_currdelta);
buf[0] = g_currdelta & 0xff;
buf[1] = (g_currdelta & 0xff00) >> 8;
+3 -3
View File
@@ -204,7 +204,7 @@ static void wl_enable_irq(FAR struct cc3000_config_s *state, bool enable)
/* Attach and enable, or detach and disable */
ivdbg("enable:%d\n", enable);
iinfo("enable:%d\n", enable);
if (enable)
{
(void)kl_gpioirqattach(GPIO_WIFI_INT, priv->handler);
@@ -219,7 +219,7 @@ static void wl_enable_irq(FAR struct cc3000_config_s *state, bool enable)
static void wl_enable_power(FAR struct cc3000_config_s *state, bool enable)
{
ivdbg("enable:%d\n", enable);
iinfo("enable:%d\n", enable);
/* Active high enable */
@@ -228,7 +228,7 @@ static void wl_enable_power(FAR struct cc3000_config_s *state, bool enable)
static void wl_select(FAR struct cc3000_config_s *state, bool enable)
{
ivdbg("enable:%d\n", enable);
iinfo("enable:%d\n", enable);
/* Active high enable */
+3 -3
View File
@@ -88,13 +88,13 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# ifdef CONFIG_DEBUG_INFO
# define ledvdbg lldbg
# define ledinfo lldbg
# else
# define ledvdbg(x...)
# define ledinfo(x...)
# endif
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* Dump GPIO registers */
+5 -5
View File
@@ -60,13 +60,13 @@
#ifdef CONFIG_DEBUG_SPI
# define spidbg lldbg
# ifdef CONFIG_DEBUG_INFO
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/****************************************************************************
@@ -155,7 +155,7 @@ void weak_function kl_spidev_initialize(void)
void kl_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
bool selected)
{
spivdbg("devid: %d CS: %s\n",
spiinfo("devid: %d CS: %s\n",
(int)devid, selected ? "assert" : "de-assert");
}
#endif
@@ -164,7 +164,7 @@ void kl_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
void kl_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
bool selected)
{
spivdbg("devid: %d CS: %s\n",
spiinfo("devid: %d CS: %s\n",
(int)devid, selected ? "assert" : "de-assert");
}
#endif
+2 -2
View File
@@ -135,7 +135,7 @@ static void tsi_calibrate(void)
while (!(getreg32(KL_TSI_GENCS) & TSI_GENCS_EOSF));
g_defcap[i] = getreg32(KL_TSI_DATA) & TSI_DATA_TSICNT_MASK;
ivdbg("Sensor %d = %d\n", i+1, g_defcap[i]);
iinfo("Sensor %d = %d\n", i+1, g_defcap[i]);
}
}
@@ -187,7 +187,7 @@ static ssize_t tsi_read(FAR struct file *filep, FAR char *buf, size_t buflen)
g_currdelta = (uint16_t)deltacap;
ivdbg("Delta for g_channel %d = %d\n", g_channel, g_currdelta);
iinfo("Delta for g_channel %d = %d\n", g_channel, g_currdelta);
buf[0] = g_currdelta & 0xff;
buf[1] = (g_currdelta & 0xff00) >> 8;
+1 -1
View File
@@ -216,7 +216,7 @@ int board_app_initialize(uintptr_t arg)
/* Use SD card detect pin to check if a card is inserted */
cd_status = !stm32_gpioread(GPIO_SD_CD);
vdbg("Card detect : %hhu\n", cd_status);
info("Card detect : %hhu\n", cd_status);
sdio_mediachange(g_sdiodev, cd_status);
#endif
+2 -2
View File
@@ -63,10 +63,10 @@
#ifdef CONFIG_DEBUG_LEDS
# define leddbg lldbg
# define ledvdbg llvdbg
# define ledinfo llinfo
#else
# define leddbg(x...)
# define ledvdbg(x...)
# define ledinfo(x...)
#endif
/* The following definitions map the encoded LED setting to GPIO settings */
+10 -10
View File
@@ -94,7 +94,7 @@
/* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define lcddbg(format, ...) info(format, ##__VA_ARGS__)
#else
# define lcddbg(x...)
#endif
@@ -562,7 +562,7 @@ static int lcd_getvideoinfo(FAR struct lcd_dev_s *dev,
FAR struct fb_videoinfo_s *vinfo)
{
DEBUGASSERT(dev && vinfo);
gvdbg("fmt: %d xres: %d yres: %d nplanes: %d\n",
ginfo("fmt: %d xres: %d yres: %d nplanes: %d\n",
g_videoinfo.fmt, g_videoinfo.xres, g_videoinfo.yres, g_videoinfo.nplanes);
memcpy(vinfo, &g_videoinfo, sizeof(struct fb_videoinfo_s));
@@ -581,7 +581,7 @@ static int lcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
FAR struct lcd_planeinfo_s *pinfo)
{
DEBUGASSERT(dev && pinfo && planeno == 0);
gvdbg("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
ginfo("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
memcpy(pinfo, &g_planeinfo, sizeof(struct lcd_planeinfo_s));
return OK;
@@ -598,7 +598,7 @@ static int lcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
static int lcd_getpower(struct lcd_dev_s *dev)
{
gvdbg("power: %d\n", 0);
ginfo("power: %d\n", 0);
return g_lcddev.power;
}
@@ -618,7 +618,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
return OK;
}
gvdbg("power: %d\n", power);
ginfo("power: %d\n", power);
DEBUGASSERT(power <= CONFIG_LCD_MAXPOWER);
/* Set new power level */
@@ -639,7 +639,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
duty = LCD_BL_TIMER_PERIOD - 1;
}
gvdbg("PWM duty: %d\n", duty);
ginfo("PWM duty: %d\n", duty);
putreg16((uint16_t)duty, STM32_TIM3_CCR2);
#endif
/* TODO turn the display on */
@@ -648,7 +648,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
{
/* FIXME: Turn display off ? */
gvdbg("Force PWM to 0\n");
ginfo("Force PWM to 0\n");
putreg16((uint16_t)0, STM32_TIM3_CCR2);
}
@@ -666,7 +666,7 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power)
static int lcd_getcontrast(struct lcd_dev_s *dev)
{
gvdbg("Not implemented\n");
ginfo("Not implemented\n");
return -ENOSYS;
}
@@ -680,7 +680,7 @@ static int lcd_getcontrast(struct lcd_dev_s *dev)
static int lcd_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
{
gvdbg("Not implemented\n");
ginfo("Not implemented\n");
return -ENOSYS;
}
@@ -921,7 +921,7 @@ int board_lcd_initialize(void)
{
unsigned short id;
gvdbg("Initializing\n");
ginfo("Initializing\n");
/* Configure GPIO pins and configure the FSMC to support the LCD */
+4 -4
View File
@@ -66,14 +66,14 @@
#ifdef SPI_DEBUG
# define spidbg lldbg
# ifdef SPI_VERBOSE
# define spivdbg lldbg
# define spiinfo lldbg
# else
# define spivdbg(x...)
# define spiinfo(x...)
# endif
#else
# undef SPI_VERBOSE
# define spidbg(x...)
# define spivdbg(x...)
# define spiinfo(x...)
#endif
/************************************************************************************
@@ -102,7 +102,7 @@ void stm32_spidev_initialize(void)
#ifdef CONFIG_STM32_SPI1
/* Configure the SPI-based touch screen CS GPIO */
spivdbg("Configure GPIO for SPI1/CS\n");
spiinfo("Configure GPIO for SPI1/CS\n");
stm32_configgpio(GPIO_TS_CS);
#endif
}
+3 -3
View File
@@ -105,10 +105,10 @@
/* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD
# define lcddbg dbg
# define lcdvdbg vdbg
# define lcdinfo info
#else
# define lcddbg(x...)
# define lcdvdbg(x...)
# define lcdinfo(x...)
#endif
/**************************************************************************************
@@ -482,7 +482,7 @@ int board_lcd_initialize(void)
if (!g_ssd1289drvr)
{
lcdvdbg("Initializing\n");
lcdinfo("Initializing\n");
init_lcd_backlight();
+2 -2
View File
@@ -95,7 +95,7 @@ static xcpt_t tc_isr;
/* Attach the ADS7843E interrupt handler to the GPIO interrupt */
static int hymini_ts_irq_attach(FAR struct ads7843e_config_s *state, xcpt_t isr)
{
ivdbg("hymini_ts_irq_attach\n");
iinfo("hymini_ts_irq_attach\n");
tc_isr = isr;
stm32_gpiosetevent(GPIO_TS_IRQ, true, true, true, isr);
@@ -106,7 +106,7 @@ static int hymini_ts_irq_attach(FAR struct ads7843e_config_s *state, xcpt_t isr)
static void hymini_ts_irq_enable(FAR struct ads7843e_config_s *state,
bool enable)
{
illvdbg("%d\n", enable);
illinfo("%d\n", enable);
stm32_gpiosetevent(GPIO_TS_IRQ, true, true, true, enable? tc_isr:NULL);
}
+2 -2
View File
@@ -61,7 +61,7 @@
/* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define lcddbg(format, ...) info(format, ##__VA_ARGS__)
#else
# define lcddbg(x...)
#endif
@@ -98,7 +98,7 @@
int board_lcd_initialize(void)
{
gvdbg("Initializing\n");
ginfo("Initializing\n");
#warning "Missing logic"
return OK;
}

Some files were not shown because too many files have changed in this diff Show More