mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 06:19:22 +08:00
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.
51 lines
1.6 KiB
C
51 lines
1.6 KiB
C
/*
|
|
* hw_emac1.h
|
|
*/
|
|
|
|
/* (c) Texas Instruments 2009-2013, All rights reserved. */
|
|
|
|
#ifndef _HW_EMAC_CTRL_H_
|
|
#define _HW_EMAC_CTRL_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define EMAC_CTRL_REVID (0x0U)
|
|
#define EMAC_CTRL_SOFTRESET (0x4U)
|
|
#define EMAC_CTRL_INTCONTROL (0xCU)
|
|
#define EMAC_CTRL_C0RXTHRESHEN (0x10U)
|
|
#define EMAC_CTRL_CnRXEN(n) (0x14u + ((n) << 4))
|
|
#define EMAC_CTRL_CnTXEN(n) (0x18u + ((n) << 4))
|
|
#define EMAC_CTRL_CnMISCEN(n) (0x1Cu + ((n) << 4))
|
|
#define EMAC_CTRL_CnRXTHRESHEN(n) (0x20u + ((n) << 4))
|
|
#define EMAC_CTRL_C0RXTHRESHSTAT (0x40U)
|
|
#define EMAC_CTRL_C0RXSTAT (0x44U)
|
|
#define EMAC_CTRL_C0TXSTAT (0x48U)
|
|
#define EMAC_CTRL_C0MISCSTAT (0x4CU)
|
|
#define EMAC_CTRL_C1RXTHRESHSTAT (0x50U)
|
|
#define EMAC_CTRL_C1RXSTAT (0x54U)
|
|
#define EMAC_CTRL_C1TXSTAT (0x58U)
|
|
#define EMAC_CTRL_C1MISCSTAT (0x5CU)
|
|
#define EMAC_CTRL_C2RXTHRESHSTAT (0x60U)
|
|
#define EMAC_CTRL_C2RXSTAT (0x64U)
|
|
#define EMAC_CTRL_C2TXSTAT (0x68U)
|
|
#define EMAC_CTRL_C2MISCSTAT (0x6CU)
|
|
#define EMAC_CTRL_C0RXIMAX (0x70U)
|
|
#define EMAC_CTRL_C0TXIMAX (0x74U)
|
|
#define EMAC_CTRL_C1RXIMAX (0x78U)
|
|
#define EMAC_CTRL_C1TXIMAX (0x7CU)
|
|
#define EMAC_CTRL_C2RXIMAX (0x80U)
|
|
#define EMAC_CTRL_C2TXIMAX (0x84U)
|
|
|
|
/**************************************************************************\
|
|
* Field Definition Macros
|
|
\**************************************************************************/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|