• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ LCMDBG函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中LCMDBG函数的典型用法代码示例。如果您正苦于以下问题:C++ LCMDBG函数的具体用法?C++ LCMDBG怎么用?C++ LCMDBG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了LCMDBG函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: mecha_sharp_panel_unblank

static int mecha_sharp_panel_unblank(struct msm_lcdc_panel_ops *ops)
{
	struct spi_msg set_brightness = {
                .cmd = 0x51,
                .len = 1,
                .data = (unsigned char *)&last_val,
	};

        LCMDBG("\n");
	if (color_enhancement == 0) {
		mecha_mdp_color_enhancement(mdp_pdata.mdp_dev);
		color_enhancement = 1;
	}
        mutex_lock(&panel_lock);
	qspi_send_9bit(&set_brightness);
	lcm_sharp_write_seq(sharp_turn_on_backlight,
	ARRAY_SIZE(sharp_turn_on_backlight));
        mutex_unlock(&panel_lock);
        return 0;
}

static int mecha_sharp_panel_blank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	mutex_lock(&panel_lock);
	lcm_sharp_write_seq(sharp_blank_seq, ARRAY_SIZE(sharp_blank_seq));
	hr_msleep(100);
	mutex_unlock(&panel_lock);
	return 0;
}
开发者ID:RoyFerry,项目名称:mecha-2.6.35-gb-mr,代码行数:30,代码来源:board-mecha-panel.c


示例2: mecha_init_panel

/*----------------------------------------------------------------------------*/
int __init mecha_init_panel(void)
{
	int ret;

        vreg_lcm_1v8 = vreg_get(0, "gp13");
        if (IS_ERR(vreg_lcm_1v8))
                return PTR_ERR(vreg_lcm_1v8);
        vreg_lcm_2v8 = vreg_get(0, "wlan2");
        if (IS_ERR(vreg_lcm_2v8))
                return PTR_ERR(vreg_lcm_2v8);


	LCMDBG("panel_type=%d\n", panel_type);
	if (panel_type & 0x8) {
		panel_rev = 1;
		panel_type &= 0x7;
	}
	switch (panel_type) {
	case PANEL_AUO:
#ifdef CONFIG_PANEL_SELF_REFRESH
		mdp_pdata.overrides |= MSM_MDP_RGB_PANEL_SELE_REFRESH;
		LCMDBG("MECHA AUO Panel:RGB_PANEL_SELE_REFRESH \n");
		mecha_auo_panel_ops.refresh_enable = mecha_auo_panel_refresh_enable;
		mecha_auo_panel_ops.refresh_disable = mecha_auo_panel_refresh_disable;
		msm_device_mdp.dev.platform_data = &mdp_pdata;
#endif
		mecha_lcdc_platform_data.timing = &mecha_auo_timing;
		mecha_lcdc_platform_data.panel_ops = &mecha_auo_panel_ops;
		break;
	case PANEL_SHARP:
	case PANEL_SHARP565:
		if (panel_type == PANEL_SHARP565)
			mdp_pdata.overrides |= MSM_MDP_DMA_PACK_ALIGN_LSB;
		msm_device_mdp.dev.platform_data = &mdp_pdata;
		mecha_lcdc_platform_data.timing = &mecha_sharp_timing;
		mecha_lcdc_platform_data.panel_ops = &mecha_sharp_panel_ops;
		break;
	default:
		return -EINVAL;
	}

	ret = platform_device_register(&msm_device_mdp);
	if (ret != 0)
		return ret;

	ret = platform_device_register(&mecha_lcdc_device);
	if (ret != 0)
		return ret;

	ret = platform_device_register(&mecha_backlight_pdev);
        if (ret)
                return ret;

	return 0;
}
开发者ID:RoyFerry,项目名称:mecha-2.6.35-gb-mr,代码行数:56,代码来源:board-mecha-panel.c


示例3: spade_init_panel

int __init spade_init_panel(void)
{
	int ret;

        vreg_lcm_1v8 = vreg_get(0, "gp13");
        if (IS_ERR(vreg_lcm_1v8))
                return PTR_ERR(vreg_lcm_1v8);
        vreg_lcm_2v8 = vreg_get(0, "wlan2");
        if (IS_ERR(vreg_lcm_2v8))
                return PTR_ERR(vreg_lcm_2v8);

	LCMDBG("panel_type=%d\n", panel_type);
	switch (panel_type) {
	case PANEL_AUO:
#ifdef CONFIG_PANEL_SELF_REFRESH
		mdp_pdata.overrides = MSM_MDP_RGB_PANEL_SELE_REFRESH,
		LCMDBG("ACE AUO Panel:RGB_PANEL_SELE_REFRESH \n");
		spade_auo_panel_ops.refresh_enable = spade_auo_panel_refresh_enable;
		spade_auo_panel_ops.refresh_disable = spade_auo_panel_refresh_disable;
#endif
		spade_lcdc_platform_data.timing = &spade_auo_timing;
		spade_lcdc_platform_data.panel_ops = &spade_auo_panel_ops;

		break;
	case PANEL_ID_SPADE_AUO_N90:
		spade_lcdc_platform_data.timing = &spade_auo_n90_timing;
		spade_lcdc_platform_data.panel_ops = &spade_auo_n90_panel_ops;
		break;
	case PANEL_SHARP:
	case PANEL_ID_SPADE_SHA_N90:
		spade_lcdc_platform_data.timing = &spade_sharp_timing;
		spade_lcdc_platform_data.panel_ops = &spade_sharp_panel_ops;
		break;
	default:
		return -EINVAL;
	}
	msm_device_mdp.dev.platform_data = &mdp_pdata;
	ret = platform_device_register(&msm_device_mdp);
	if (ret != 0)
		return ret;

	ret = platform_device_register(&spade_lcdc_device);
	if (ret != 0)
		return ret;

	ret = platform_device_register(&spade_backlight_pdev);
        if (ret)
                return ret;

	return 0;
}
开发者ID:LorDClockaN,项目名称:htc_spade_2.6.35,代码行数:51,代码来源:board-spade-panel.c


示例4: mecha_backlight_probe

static int mecha_backlight_probe(struct platform_device *pdev)
{
	int rc;

	rc = led_classdev_register(&pdev->dev, &mecha_backlight_led);
	if (rc)
		LCMDBG("backlight: failure on register led_classdev\n");

	rc = device_create_file(mecha_backlight_led.dev, &auto_attr);
	if (rc)
		LCMDBG("backlight: failure on create attr\n");

	return 0;
}
开发者ID:RoyFerry,项目名称:mecha-2.6.35-gb-mr,代码行数:14,代码来源:board-mecha-panel.c


示例5: amoled_panel_unblank

static int amoled_panel_unblank(struct msm_lcdc_panel_ops *panel_data)
{
	LCMDBG("%s\n", __func__);

	wake_lock(&panel_idle_lock);
	mutex_lock(&panel_lock);
	amoled_set_gamma_val(last_level);
	/* Display on */
	qspi_send_9bit(&unblank_msg);
	mutex_unlock(&panel_lock);
	wake_unlock(&panel_idle_lock);

	LCMDBG("%s: last_level = %d\n", __func__, last_level);
	led_trigger_event(amoled_lcd_backlight, LED_FULL);
	return 0;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:16,代码来源:panel-samsungwvga-s6e63m0.c


示例6: spade_sharp_panel_blank

static int spade_sharp_panel_blank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	spade_adjust_backlight(0);
	atomic_set(&lcm_init_done, 0);
        return 0;
}
开发者ID:LorDClockaN,项目名称:htc_spade_2.6.35,代码行数:7,代码来源:board-spade-panel.c


示例7: flyer_panel_power

static void flyer_panel_power(bool on_off)
{
	int gpio_lcm_en, gpio_lvds_on;

	if (panel_type != PANEL_ID_FLR_SMD_XB) {
		gpio_lcm_en = FLYER_LCM_3V3_EN_XC;
		gpio_lvds_on = FLYER_LVDS_ON_XC;
	} else {
		gpio_lcm_en = FLYER_LCM_3V3_EN;
		gpio_lvds_on = FLYER_LVDS_ON;
	}

	if (!!on_off) {
		LCMDBG("%s(%d):\n", __func__, on_off);
		vreg_enable(vreg_lcm_1v8);
		gpio_set_value(gpio_lcm_en, 1);
		if(panel_type == PANEL_ID_FLR_LG_XC || panel_type == PANEL_ID_FLR_LG_WS2)
			hr_msleep(50);
		else
			hr_msleep(90);
		gpio_set_value(gpio_lvds_on, 1);
	} else {
		gpio_set_value(gpio_lcm_en, 0);
		if(panel_type == PANEL_ID_FLR_LG_XC || panel_type == PANEL_ID_FLR_LG_WS2)
			hr_msleep(50);
		else
			hr_msleep(60);
		gpio_set_value(gpio_lvds_on, 0);
		vreg_disable(vreg_lcm_1v8);
	}

}
开发者ID:DooMLoRD,项目名称:HTC-Flyer-Kernel,代码行数:32,代码来源:board-flyer-panel.c


示例8: sonywvga_panel_blank

static int sonywvga_panel_blank(struct msm_lcdc_panel_ops *panel_data)
{
	uint8_t data[4] = {0, 0, 0, 0};
	LCMDBG("%s\n", __func__);

	mutex_lock(&panel_lock);

	blank_msg.cmd = 0x28;
	qspi_send_9bit(&blank_msg);
	blank_msg.cmd = 0x10;
	qspi_send_9bit(&blank_msg);
	hr_msleep(40);
	g_unblank_stage = 0;
	mutex_unlock(&panel_lock);
	sonywvga_panel_power(0);

	if (!is_sony_spi()) {
		data[0] = 5;
		data[1] = 0;
		data[3] = 1;
		microp_i2c_write(0x25, data, 4);
	}

	return 0;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:25,代码来源:panel-sonywvga-s6d16a0x21-7x30.c


示例9: samsung_oled_panel_init

static int samsung_oled_panel_init(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("%s()\n", __func__);

	amoled_panel_power(1);

	wake_lock(&panel_idle_lock);
	mutex_lock(&panel_lock);
	if (machine_is_passionc()) {
		/* FIXME: display team will clean up the below codes */
		if (system_rev == 0xC0 || system_rev == 0) /* for Passion#C EVT1 */
			lcm_write_tb(lcm_init_seq, ARRAY_SIZE(lcm_init_seq));
		else
			lcm_write_tb(lcm_init_seq, ARRAY_SIZE(lcm_init_666seq));
	} else {
		if (system_rev < 1)
			lcm_write_tb(lcm_init_seq, ARRAY_SIZE(lcm_init_seq));
		else
			lcm_write_tb(lcm_init_seq, ARRAY_SIZE(lcm_init_666seq));
	}
	gamma_table_bank_select();
	mutex_unlock(&panel_lock);
	wake_unlock(&panel_idle_lock);
	return 0;
}
开发者ID:LorDClockaN,项目名称:DesireC-eclair,代码行数:25,代码来源:board-amoled-panel.c


示例10: spade_adjust_backlight

static int spade_adjust_backlight(enum led_brightness val)
{
        uint8_t data[4] = {     /* PWM setting of microp, see p.8 */
                0x05,           /* Fading time; suggested: 5/10/15/20/25 */
                val,            /* Duty Cycle */
                0x00,           /* Channel H byte */
                0x20,           /* Channel L byte */
                };
	uint8_t shrink_br;

        mutex_lock(&panel_lock);
        if (val == 0)
                shrink_br = 0;
        else if (val <= 30)
                shrink_br = 7;
        else if ((val > 30) && (val <= 143))
                shrink_br = (91 - 7) * (val - 30) / (143 - 30) + 7;
        else
                shrink_br = (217 - 91) * (val - 143) / (255 - 143) + 91;
        data[1] = shrink_br;

        LCMDBG("(%d), shrink_br=%d\n", val, shrink_br);
        microp_i2c_write(0x25, data, sizeof(data));
        last_val = shrink_br ? shrink_br: last_val;
        mutex_unlock(&panel_lock);

	return shrink_br;
}
开发者ID:Akinus,项目名称:htc-kernel-msm7x30,代码行数:28,代码来源:board-spade-panel.c


示例11: spade_panel_sleep_in

/*----------------------------------------------------------------------------*/
int spade_panel_sleep_in(void)
{
	int ret;

	LCMDBG(", screen=%s\n", screen_on ? "on" : "off");
	if (screen_on)
		return 0;

	mutex_lock(&panel_lock);
	switch (panel_type) {
		case PANEL_AUO:
			spade_auo_panel_power(1);
			lcm_auo_write_seq(auo_sleep_in_seq,
				ARRAY_SIZE(auo_sleep_in_seq));
			ret = 0;
			break;
		case PANEL_SHARP:
			spade_sharp_panel_power(1);
			lcm_sharp_write_seq(sharp_uninit_seq,
				ARRAY_SIZE(sharp_uninit_seq));
			ret = 0;
			break;
		default:
			ret = -EINVAL;
			break;
	}
	mutex_unlock(&panel_lock);
	return ret;
}
开发者ID:Akinus,项目名称:htc-kernel-msm7x30,代码行数:30,代码来源:board-spade-panel.c


示例12: spade_auo_n90_panel_uninit

static int spade_auo_n90_panel_uninit(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	mutex_lock(&panel_lock);
	spade_auo_panel_power(0);
	mutex_unlock(&panel_lock);
	return 0;
}
开发者ID:LorDClockaN,项目名称:htc_spade_2.6.35,代码行数:8,代码来源:board-spade-panel.c


示例13: mecha_sharp_panel_uninit

static int mecha_sharp_panel_uninit(struct msm_lcdc_panel_ops *ops)
{
        LCMDBG("\n");
        mutex_lock(&panel_lock);
        mecha_sharp_panel_power(0);
        mutex_unlock(&panel_lock);
        return 0;
}
开发者ID:RoyFerry,项目名称:mecha-2.6.35-gb-mr,代码行数:8,代码来源:board-mecha-panel.c


示例14: mecha_auo_panel_blank

static int mecha_auo_panel_blank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	mutex_lock(&panel_lock);
	lcm_auo_write_seq(auo_blank_seq, ARRAY_SIZE(auo_blank_seq));
	mutex_unlock(&panel_lock);
	return 0;
}
开发者ID:RoyFerry,项目名称:mecha-2.6.35-gb-mr,代码行数:8,代码来源:board-mecha-panel.c


示例15: spade_auo_panel_unblank

static int spade_auo_panel_unblank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	atomic_set(&lcm_init_done, 1);
	spade_adjust_backlight(last_val);

	return 0;
}
开发者ID:Akinus,项目名称:htc-kernel-msm7x30,代码行数:8,代码来源:board-spade-panel.c


示例16: mecha_auo_panel_power

static void mecha_auo_panel_power(bool on_off)
{
	if (!!on_off) {
		LCMDBG("%s(%d):\n", __func__, on_off);
		gpio_set_value(MECHA_LCD_RSTz, 1);
		udelay(500);
		gpio_set_value(MECHA_LCD_RSTz, 0);
		udelay(500);
		gpio_set_value(MECHA_LCD_RSTz, 1);
		hr_msleep(20);
		panel_gpio_switch(on_off);
	} else {
		LCMDBG("%s(%d):\n", __func__, on_off);
		gpio_set_value(MECHA_LCD_RSTz, 1);
		hr_msleep(70);
		panel_gpio_switch(on_off);
	}
}
开发者ID:RoyFerry,项目名称:mecha-2.6.35-gb-mr,代码行数:18,代码来源:board-mecha-panel.c


示例17: amoled_backlight_probe

static int amoled_backlight_probe(struct platform_device *pdev)
{
	int rc;
	amoled_backlight_led.brightness_set = samsung_brightness_set;
	rc = led_classdev_register(&pdev->dev, &amoled_backlight_led);
	if (rc)
		LCMDBG("backlight: failure on register led_classdev\n");
	return 0;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:9,代码来源:panel-samsungwvga-s6e63m0.c


示例18: spade_backlight_probe

static int spade_backlight_probe(struct platform_device *pdev)
{
	int rc;

	rc = led_classdev_register(&pdev->dev, &spade_backlight_led);
	if (rc)
		LCMDBG("backlight: failure on register led_classdev\n");
	return 0;
}
开发者ID:LorDClockaN,项目名称:htc_spade_2.6.35,代码行数:9,代码来源:board-spade-panel.c


示例19: spade_brightness_set

static void spade_brightness_set(struct led_classdev *led_cdev,
		enum led_brightness val)
{
	if (atomic_read(&lcm_init_done) == 0) {
		last_val = val ? val : last_val;
		LCMDBG(":lcm not ready, val=%d\n", val);
		return;
	}
	led_cdev->brightness = spade_adjust_backlight(val);
}
开发者ID:LorDClockaN,项目名称:htc_spade_2.6.35,代码行数:10,代码来源:board-spade-panel.c


示例20: spade_auo_n90_panel_init

static int spade_auo_n90_panel_init(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");

	mutex_lock(&panel_lock);
	spade_auo_panel_power(1);
	lcm_auo_write_seq(auo_n90_init_seq, ARRAY_SIZE(auo_n90_init_seq));
	mutex_unlock(&panel_lock);
	return 0;
}
开发者ID:LorDClockaN,项目名称:htc_spade_2.6.35,代码行数:10,代码来源:board-spade-panel.c



注:本文中的LCMDBG函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ LCM_PRINT函数代码示例发布时间:2022-05-30
下一篇:
C++ LCDsendCommand函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap