LED点亮问题!
/*LED ON*/
LED_Status_Set(1);
/*LED OFF*/
LED_Status_Set(0);
* Function Name : LED_Status_Config
void LED_Status_Set(uint8_t set_led)
{
/*'0' LED OFF;'1' LED ON*/
if(set_led>0)
{
GPIOC_DOUT &= ~(1<<3);
}
else
{
GPIOC_DOUT |= 1<<3;
}
* Function Name : LED_Status_Set
* Description :
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void LED_Status_Set(uint8_t set_led)
{
/*'0' LED OFF;'1' LED ON*/
if(set_led>0)
{
GPIOC_DOUT &= ~(1<<3);
}
else
{
GPIOC_DOUT |= 1<<3;
}
就这么个简单的程序管脚总是高,不知道什么原因,请指教! |