S3C4510B+ATA硬盘的调试笔记5

[复制链接]
351|0
 楼主| Spikess 发表于 2018-8-31 17:54 | 显示全部楼层 |阅读模式
void   ataOutByte    (UINT32 port, UINT8 data)

    {

    *((volatile UINT8 *)port) = data;  

   

    }

void   ataOutWordString  (UINT32 port, UINT16 *pData, int count)

    {

    while(count--)

    {

       *((volatile UINT16 *)port) = *pData++;

    }

    }

void   ataOutLongString  (UINT32 port, UINT32 *pData, int count)

    {

    while(count--)

    {

       *((volatile UINT32 *)port) = *pData++;

    }

    }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

417

主题

421

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部