PCB论坛网

 找回密码
 注册
查看: 1085|回复: 0

S3C4510B+ATA硬盘的调试笔记5

[复制链接]
发表于 2007-4-7 22:12:00 | 显示全部楼层 |阅读模式

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++;

    }

    }

回复

使用道具 举报

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

本版积分规则

Archiver|小黑屋|手机版|PCB设计论坛|EDA论坛|PCB论坛网 ( 沪ICP备05006956号-1 )

GMT+8, 2024-5-19 22:51 , Processed in 0.140344 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表