?? main.c
字號:
#include "hardware.h"
main()
{
int a,b;
AssemblyBitTest();
SP_Init_IOA(0xffff,0xffff,0x0000);
SP_Init_IOB(0x000f,0x0000,0x0000);
Set_IOA_Bit(0,1,1,1,1);
Set_IOA_Bit(1,1,1,1,1);
Set_IOA_Bit(2,1,1,0,0);
Set_IOA_Bit(3,1,1,0,0);
Set_IOA_Bit(4,1,1,1,1);
Set_IOA_Bit(5,1,1,1,1);
Set_IOA_Bit(6,1,1,1,1);
Set_IOA_Bit(7,1,1,1,1);
Set_IOA_Bit(8,1,1,1,1);
Set_IOA_Bit(9,1,1,1,1);
Set_IOA_Bit(10,1,1,1,1);
Set_IOA_Bit(11,1,1,1,1);
Set_IOA_Bit(12,1,1,1,1);
Set_IOA_Bit(13,1,1,1,1);
Set_IOA_Bit(14,1,1,0,0);
Set_IOA_Bit(15,1,1,1,1);
Set_IOB_Bit(0,1,1,1,1);
Set_IOB_Bit(1,1,1,1,1);
Set_IOB_Bit(2,1,1,0,0);
Set_IOB_Bit(3,1,1,1,1);
Set_IOB_Bit(4,1,1,0,0);
Set_IOB_Bit(5,1,1,1,1);
Set_IOB_Bit(6,1,1,1,1);
Set_IOB_Bit(7,1,1,1,1);
Set_IOB_Bit(8,1,1,1,1);
Set_IOB_Bit(9,1,1,1,1);
Set_IOB_Bit(10,1,1,1,1);
Set_IOB_Bit(11,1,1,1,1);
Set_IOB_Bit(12,1,1,1,1);
Set_IOB_Bit(13,1,1,1,1);
Set_IOB_Bit(14,1,1,1,1);
Set_IOB_Bit(15,1,1,1,1);
a=Get_IOA_Bit(2,1);
b=Get_IOA_Bit(14,1);
a=Get_IOB_Bit(2,1);
b=Get_IOB_Bit(14,1);
a=Get_IOA_Bit(2,0);
b=Get_IOA_Bit(14,0);
a=Get_IOB_Bit(2,0);
b=Get_IOB_Bit(14,0);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -