mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Replace all occurrences of vdbg with vinfo
This commit is contained in:
@@ -153,7 +153,7 @@ static int tsc_attach(FAR struct ads7843e_config_s *state, xcpt_t isr)
|
||||
{
|
||||
/* Attach the ADS7843E interrupt */
|
||||
|
||||
ivdbg("Attaching %p to IRQ %d\n", isr, SAM_TCS_IRQ);
|
||||
iinfo("Attaching %p to IRQ %d\n", isr, SAM_TCS_IRQ);
|
||||
return irq_attach(SAM_TCS_IRQ, isr);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,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_TCS_IRQ, enable);
|
||||
iinfo("IRQ:%d enable:%d\n", SAM_TCS_IRQ, enable);
|
||||
if (enable)
|
||||
{
|
||||
sam_gpioirqenable(SAM_TCS_IRQ);
|
||||
@@ -191,7 +191,7 @@ static bool tsc_busy(FAR struct ads7843e_config_s *state)
|
||||
#if defined(CONFIG_DEBUG_INPUT) && defined(CONFIG_DEBUG_INFO)
|
||||
if (busy != last)
|
||||
{
|
||||
ivdbg("busy:%d\n", busy);
|
||||
iinfo("busy:%d\n", busy);
|
||||
last = busy;
|
||||
}
|
||||
#endif
|
||||
@@ -204,7 +204,7 @@ static bool tsc_pendown(FAR struct ads7843e_config_s *state)
|
||||
/* The /PENIRQ value is active low */
|
||||
|
||||
bool pendown = !sam_gpioread(GPIO_TCS_IRQ);
|
||||
ivdbg("pendown:%d\n", pendown);
|
||||
iinfo("pendown:%d\n", pendown);
|
||||
return pendown;
|
||||
}
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
||||
|
||||
DEBUGASSERT(intf);
|
||||
|
||||
nvdbg("%s: handler=%p\n", intf, handler);
|
||||
ninfo("%s: handler=%p\n", intf, handler);
|
||||
phydbg("EMAC: devname=%s\n", SAM34_EMAC_DEVNAME);
|
||||
|
||||
if (strcmp(intf, SAM34_EMAC_DEVNAME) == 0)
|
||||
|
||||
@@ -194,7 +194,7 @@ bool sam_cardinserted(int slotno)
|
||||
/* Get the state of the GPIO pin */
|
||||
|
||||
removed = sam_gpioread(GPIO_MCI_CD);
|
||||
fllvdbg("Slot %d inserted: %s\n", slotno, removed ? "NO" : "YES");
|
||||
fllinfo("Slot %d inserted: %s\n", slotno, removed ? "NO" : "YES");
|
||||
|
||||
return !removed;
|
||||
}
|
||||
|
||||
@@ -270,10 +270,10 @@
|
||||
|
||||
#ifdef CONFIG_DEBUG_LCD
|
||||
# define lcddbg dbg
|
||||
# define lcdvdbg vdbg
|
||||
# define lcdinfo info
|
||||
#else
|
||||
# define lcddbg(x...)
|
||||
# define lcdvdbg(x...)
|
||||
# define lcdinfo(x...)
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
@@ -703,7 +703,7 @@ static int sam_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer,
|
||||
|
||||
/* Buffer must be provided and aligned to a 16-bit address boundary */
|
||||
|
||||
lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels);
|
||||
lcdinfo("row: %d col: %d npixels: %d\n", row, col, npixels);
|
||||
DEBUGASSERT(buffer && ((uintptr_t)buffer & 1) == 0);
|
||||
|
||||
/* Set the cursor position */
|
||||
@@ -818,7 +818,7 @@ static int sam_getvideoinfo(FAR struct lcd_dev_s *dev,
|
||||
FAR struct fb_videoinfo_s *vinfo)
|
||||
{
|
||||
DEBUGASSERT(dev && vinfo);
|
||||
lcdvdbg("fmt: %d xres: %d yres: %d nplanes: %d\n",
|
||||
lcdinfo("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;
|
||||
@@ -836,7 +836,7 @@ static int sam_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
|
||||
FAR struct lcd_planeinfo_s *pinfo)
|
||||
{
|
||||
DEBUGASSERT(dev && pinfo && planeno == 0);
|
||||
lcdvdbg("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
|
||||
lcdinfo("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
|
||||
memcpy(pinfo, &g_planeinfo, sizeof(struct lcd_planeinfo_s));
|
||||
return OK;
|
||||
}
|
||||
@@ -854,7 +854,7 @@ static int sam_getpower(struct lcd_dev_s *dev)
|
||||
{
|
||||
FAR struct sam_dev_s *priv = (FAR struct sam_dev_s *)dev;
|
||||
|
||||
lcdvdbg("power: %d\n", 0);
|
||||
lcdinfo("power: %d\n", 0);
|
||||
return priv->power;
|
||||
}
|
||||
|
||||
@@ -871,7 +871,7 @@ static int sam_setpower(struct lcd_dev_s *dev, int power)
|
||||
{
|
||||
FAR struct sam_dev_s *priv = (FAR struct sam_dev_s *)dev;
|
||||
|
||||
lcdvdbg("power: %d\n", power);
|
||||
lcdinfo("power: %d\n", power);
|
||||
DEBUGASSERT((unsigned)power <= CONFIG_LCD_MAXPOWER);
|
||||
|
||||
/* Set new power level */
|
||||
@@ -910,7 +910,7 @@ static int sam_setpower(struct lcd_dev_s *dev, int power)
|
||||
|
||||
static int sam_getcontrast(struct lcd_dev_s *dev)
|
||||
{
|
||||
lcdvdbg("Not implemented\n");
|
||||
lcdinfo("Not implemented\n");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -924,7 +924,7 @@ static int sam_getcontrast(struct lcd_dev_s *dev)
|
||||
|
||||
static int sam_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
|
||||
{
|
||||
lcdvdbg("contrast: %d\n", contrast);
|
||||
lcdinfo("contrast: %d\n", contrast);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -1286,7 +1286,7 @@ static inline int sam_lcd_initialize(void)
|
||||
/* Check the LCD ID */
|
||||
|
||||
id = sam_read_reg(ILI9325_DEVICE_CODE_REG);
|
||||
lcdvdbg("LCD ID: %04x\n", id);
|
||||
lcdinfo("LCD ID: %04x\n", id);
|
||||
|
||||
/* Initialize the LCD hardware */
|
||||
|
||||
@@ -1319,7 +1319,7 @@ int board_lcd_initialize(void)
|
||||
FAR struct sam_dev_s *priv = &g_lcddev;
|
||||
int ret;
|
||||
|
||||
lcdvdbg("Initializing\n");
|
||||
lcdinfo("Initializing\n");
|
||||
|
||||
/* Configure all LCD pins pins (backlight is initially off) */
|
||||
|
||||
|
||||
@@ -273,10 +273,10 @@
|
||||
|
||||
#ifdef CONFIG_DEBUG_LCD
|
||||
# define lcddbg dbg
|
||||
# define lcdvdbg vdbg
|
||||
# define lcdinfo info
|
||||
#else
|
||||
# define lcddbg(x...)
|
||||
# define lcdvdbg(x...)
|
||||
# define lcdinfo(x...)
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
@@ -503,7 +503,7 @@ static void sam_setwindow(sam_color_t row, sam_color_t col,
|
||||
{
|
||||
uint8_t buffer[4];
|
||||
|
||||
lcdvdbg("row=%d col=%d width=%d height=%d\n", row, col, width, height);
|
||||
lcdinfo("row=%d col=%d width=%d height=%d\n", row, col, width, height);
|
||||
|
||||
/* Set Column Address Position */
|
||||
|
||||
@@ -654,7 +654,7 @@ static void sam_set_backlight(unsigned int power)
|
||||
unsigned int level;
|
||||
int i;
|
||||
|
||||
lcdvdbg("power=%d\n", power);
|
||||
lcdinfo("power=%d\n", power);
|
||||
|
||||
/* Scale the power setting to the range 1...BKL_LEVELS */
|
||||
|
||||
@@ -696,7 +696,7 @@ static void sam_set_backlight(unsigned int power)
|
||||
|
||||
static int sam_poweroff(FAR struct sam_dev_s *priv)
|
||||
{
|
||||
lcdvdbg("OFF\n");
|
||||
lcdinfo("OFF\n");
|
||||
|
||||
/* Turn the display off */
|
||||
|
||||
@@ -739,7 +739,7 @@ static int sam_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer,
|
||||
|
||||
/* Buffer must be provided and aligned to a 16-bit address boundary */
|
||||
|
||||
lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels);
|
||||
lcdinfo("row: %d col: %d npixels: %d\n", row, col, npixels);
|
||||
|
||||
#if defined(CONFIG_SAM4EEK_LCD_RGB565)
|
||||
DEBUGASSERT(src && ((uintptr_t)src & 1) == 0);
|
||||
@@ -797,7 +797,7 @@ static int sam_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer,
|
||||
|
||||
/* Buffer must be provided and aligned to a 16-bit address boundary */
|
||||
|
||||
lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels);
|
||||
lcdinfo("row: %d col: %d npixels: %d\n", row, col, npixels);
|
||||
|
||||
#if defined(CONFIG_SAM4EEK_LCD_RGB565)
|
||||
DEBUGASSERT(dest && ((uintptr_t)dest & 1) == 0);
|
||||
@@ -840,7 +840,7 @@ static int sam_getvideoinfo(FAR struct lcd_dev_s *dev,
|
||||
FAR struct fb_videoinfo_s *vinfo)
|
||||
{
|
||||
DEBUGASSERT(dev && vinfo);
|
||||
lcdvdbg("fmt: %d xres: %d yres: %d nplanes: %d\n",
|
||||
lcdinfo("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;
|
||||
@@ -858,7 +858,7 @@ static int sam_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
|
||||
FAR struct lcd_planeinfo_s *pinfo)
|
||||
{
|
||||
DEBUGASSERT(dev && pinfo && planeno == 0);
|
||||
lcdvdbg("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
|
||||
lcdinfo("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
|
||||
memcpy(pinfo, &g_planeinfo, sizeof(struct lcd_planeinfo_s));
|
||||
return OK;
|
||||
}
|
||||
@@ -876,7 +876,7 @@ static int sam_getpower(struct lcd_dev_s *dev)
|
||||
{
|
||||
FAR struct sam_dev_s *priv = (FAR struct sam_dev_s *)dev;
|
||||
|
||||
lcdvdbg("power: %d\n", 0);
|
||||
lcdinfo("power: %d\n", 0);
|
||||
return priv->power;
|
||||
}
|
||||
|
||||
@@ -893,7 +893,7 @@ static int sam_setpower(struct lcd_dev_s *dev, int power)
|
||||
{
|
||||
FAR struct sam_dev_s *priv = (FAR struct sam_dev_s *)dev;
|
||||
|
||||
lcdvdbg("power: %d\n", power);
|
||||
lcdinfo("power: %d\n", power);
|
||||
DEBUGASSERT((unsigned)power <= CONFIG_LCD_MAXPOWER);
|
||||
|
||||
/* Set new power level */
|
||||
@@ -930,7 +930,7 @@ static int sam_setpower(struct lcd_dev_s *dev, int power)
|
||||
|
||||
static int sam_getcontrast(struct lcd_dev_s *dev)
|
||||
{
|
||||
lcdvdbg("Not implemented\n");
|
||||
lcdinfo("Not implemented\n");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -944,7 +944,7 @@ static int sam_getcontrast(struct lcd_dev_s *dev)
|
||||
|
||||
static int sam_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
|
||||
{
|
||||
lcdvdbg("contrast: %d\n", contrast);
|
||||
lcdinfo("contrast: %d\n", contrast);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -1198,7 +1198,7 @@ int board_lcd_initialize(void)
|
||||
FAR struct sam_dev_s *priv = &g_lcddev;
|
||||
int ret;
|
||||
|
||||
lcdvdbg("Initializing\n");
|
||||
lcdinfo("Initializing\n");
|
||||
|
||||
/* Configure all LCD pins pins (backlight is initially off) */
|
||||
|
||||
|
||||
@@ -104,10 +104,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
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
|
||||
/************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user