|
发表于 2009-4-27 14:10:02
|
显示全部楼层
case GPIO_DEV_LED_KEY:
{
#ifndef CRYSTAL25_DEMO_BB
if (gpio_dev_level == LED_LIGHT_LEVEL0) {
GPIO_WriteIO(GPIO_OFF, custom_cfg_outward_gpio_port(GPIO_LABEL_DEV_LED_KEY));
}else {
GPIO_WriteIO(GPIO_ON, custom_cfg_outward_gpio_port(GPIO_LABEL_DEV_LED_KEY));
}
PWM_level(gpio_dev_level);
break;
#else
if (gpio_dev_level == LED_LIGHT_LEVEL0) {
GPIO_WriteIO(0, custom_cfg_outward_gpio_port(GPIO_LABEL_DEV_LED_KEY));
}else {
GPIO_WriteIO(1, custom_cfg_outward_gpio_port(GPIO_LABEL_DEV_LED_KEY));
}
break;
#endif // CRYSTAL25_DEMO_BB
}
多了PWM_level(gpio_dev_level);会不会是这里? |
|