smc_X_hw.h
上传用户:yj_qqy
上传日期:2017-01-28
资源大小:2911k
文件大小:2k
源码类别:

uCOS

开发平台:

C/C++

  1. /*
  2. **********************************************************************
  3. *                          Micrium, Inc.
  4. *                      949 Crestview Circle
  5. *                     Weston,  FL 33327-1848
  6. *
  7. *                            uC/FS
  8. *
  9. *             (c) Copyright 2001 - 2003, Micrium, Inc.
  10. *                      All rights reserved.
  11. *
  12. ***********************************************************************
  13. ----------------------------------------------------------------------
  14. File        : smc_hw.h
  15. Purpose     : SMC hardware layer for Cogent EP7312 Development Kit
  16. ----------------------------------------------------------------------
  17. Known problems or limitations with current version
  18. ----------------------------------------------------------------------
  19. None.
  20. ---------------------------END-OF-HEADER------------------------------
  21. */
  22. #ifndef __SMC_X_HW_H__
  23. #define __SMC_X_HW_H__
  24. /*********************************************************************
  25. *
  26. *             Global function prototypes
  27. *
  28. **********************************************************************
  29. */
  30. /* SMC functions used by "smc_phy.c" */
  31. void FS_SMC_HW_X_SetData(FS_u32 id);
  32. void FS_SMC_HW_X_SetCmd(FS_u32 id);
  33. void FS_SMC_HW_X_SetAddr(FS_u32 id);
  34. void FS_SMC_HW_X_SetStandby(FS_u32 id);
  35. char FS_SMC_HW_X_InData(FS_u32 id);
  36. void FS_SMC_HW_X_OutData(FS_u32 id,unsigned char);
  37. void FS_SMC_HW_X_VccOn(FS_u32 id);
  38. void FS_SMC_HW_X_VccOff(FS_u32 id);
  39. char FS_SMC_HW_X_ChkCardIn(FS_u32 id);
  40. char FS_SMC_HW_X_ChkStatus(FS_u32 id);
  41. char FS_SMC_HW_X_ChkWP(FS_u32 id);
  42. char FS_SMC_HW_X_ChkPower(FS_u32 id);
  43. char FS_SMC_HW_X_ChkBusy(FS_u32 id);
  44. /* Timer functions used by "smc_phy.c" */
  45. void FS_SMC_HW_X_WaitTimer(FS_u32 id,unsigned short);
  46. void FS_SMC_HW_X_SetTimer(FS_u32 id,unsigned short);
  47. void FS_SMC_HW_X_StopTimer(FS_u32 id);
  48. int  FS_SMC_HW_X_ChkTimer(FS_u32 id);
  49. /* SMC functions used by "smc_drv.c" */
  50. char FS_SMC_HW_X_DetectStatus(FS_u32 id);
  51. void FS_SMC_HW_X_BusyLedOn(FS_u32 id);
  52. void FS_SMC_HW_X_BusyLedOff(FS_u32 id);
  53. #endif  /* __SMC_X_HW_H__ */