新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > 混合式調(diào)度器C51源代碼及相關注釋

混合式調(diào)度器C51源代碼及相關注釋

作者: 時間:2012-05-12 來源:網(wǎng)絡 收藏

{
LED_State_G_B = 1;
LED_pin_B = 1;
}
}

本文引用地址:http://m.butianyuan.cn/article/149077.htm

void LED_Flash_Update_C(void)
{
if(LED_State_G_C == 1)
{
LED_State_G_C = 0;
LED_pin_C = 0;
}
else
{
LED_State_G_C = 1;
LED_pin_C = 1;
}
}
void LED_Flash_Update_D(void)
{
if(LED_State_G_D == 1)
{
LED_State_G_D = 0;
LED_pin_D = 0;
}
else
{
LED_State_G_D = 1;
LED_pin_D = 1;
}
}
void LED_Flash_Update_E(void)
{
if(LED_State_G_E == 1)
{
LED_State_G_E = 0;
LED_pin_E = 0;
}
else
{
LED_State_G_E = 1;
LED_pin_E = 1;
}
}
void LED_Flash_Update_F(void)
{
if(LED_State_G_F == 1)
{
LED_State_G_F = 0;
LED_pin_F = 0;
}
else
{
LED_State_G_F = 1;
LED_pin_F = 1;
}
}
void LED_Flash_Update_G(void)
{
if(LED_State_G_G == 1)
{
LED_State_G_G = 0;
LED_pin_G = 0;
}
else
{
LED_State_G_G = 1;
LED_pin_G = 1;
}
}
void LED_Flash_Update_H(void)
{
if(LED_State_G_H == 1)
{
LED_State_G_H = 0;
LED_pin_H = 0;
}
else
{
LED_State_G_H = 1;
LED_pin_H = 1;
}
}

void LED_Flash_Init(void)
{
LED_State_G_A= 0;//初始化LED狀態(tài)
LED_State_G_B= 0;//初始化LED狀態(tài)
LED_State_G_C= 0;//初始化LED狀態(tài)
}


上一頁 1 2 3 下一頁

評論


相關推薦

技術專區(qū)

關閉