新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 混合式調(diào)度器C51源代碼

混合式調(diào)度器C51源代碼

作者: 時(shí)間:2010-08-23 來源:網(wǎng)絡(luò) 收藏

{
LED_State_G_B = 1;
LED_pin_B = 1;
}
}

本文引用地址:http://butianyuan.cn/article/151635.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 下一頁

關(guān)鍵詞: 源代碼 C51 調(diào)度 混合式

評論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉