刚学ARM看不明白,求助各位大神
时间:10-02
整理:3721RD
点击:
void Led_Display(int data)
{
rGPKDAT = (rGPKDAT & ~(0xf<<4)) | ((data & 0xf)<<4);
}
{
rGPKDAT = (rGPKDAT & ~(0xf<<4)) | ((data & 0xf)<<4);
}
~是“非”,|是“或”,<<是“左移”,0x是16进制,建议下个教程~~