f51bce3fed
We currently only support building with CCS and SCons is not using. bsp/rm48x50/HALCoGen/HALCoGen.{hcg,dil} is the HALCoGen project file. You may need to regenerate the source file as you like, providing that: 1, IRQ is in Dispatch Mode and the table entry is IRQ_Handler. The channel 5 in enabled and connected to IRQ. 2, RTI driver is enabled and compare3 source is selected to counter1 and the compare3 will generate tick in the period of 10ms. This value is coresponding with RT_TICK_PER_SECOND in rtconfig.h. In CCS, you need to create a new CCS project and create link folders pointing at bsp/rm48x50, libcpu/arm/rm48x50 and src/, include/. Remember to add the include path to the Build Properties.
44 lines
1014 B
C
44 lines
1014 B
C
/**
|
|
* \file mdio.h
|
|
*
|
|
* \brief MDIO APIs and macros.
|
|
*
|
|
* This file contains the driver API prototypes and macro definitions.
|
|
*/
|
|
|
|
/* (c) Texas Instruments 2009-2013, All rights reserved. */
|
|
|
|
#ifndef __MDIO_H__
|
|
#define __MDIO_H__
|
|
|
|
#include "sys_common.h"
|
|
#include "hw_mdio.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
/*****************************************************************************/
|
|
|
|
/**
|
|
* @addtogroup EMACMDIO
|
|
* @{
|
|
*/
|
|
/*
|
|
** Prototypes for the APIs
|
|
*/
|
|
extern uint32 MDIOPhyAliveStatusGet(uint32 baseAddr);
|
|
extern uint32 MDIOPhyLinkStatusGet(uint32 baseAddr);
|
|
extern void MDIOInit(uint32 baseAddr, uint32 mdioInputFreq,
|
|
uint32 mdioOutputFreq);
|
|
extern uint32 MDIOPhyRegRead(uint32 baseAddr, uint32 phyAddr,
|
|
uint32 regNum, volatile uint16 * dataPtr);
|
|
extern void MDIOPhyRegWrite(uint32 baseAddr, uint32 phyAddr,
|
|
uint32 regNum, uint16 RegVal);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/**@}*/
|
|
#endif /* __MDIO_H__ */
|