Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFirst read the NIC-Manual in order to integrate the API privided by Micrium with the API in DM9000A.C of terasic Example. This should be only writing following functions using the ones provided in DM9000A.C.
void NetBSP_NIC_HW_Init (void) void NetBSP_DlyU (CPU_INT16U us) void NetBSP_DlyM (CPU_INT16U ms) void NetBSP_IntInit(void) void NetBSP_IntClr (void) void NetNIC_WrReg_8(CPU_INT08U reg, CPU_INT08U data) CPU_INT08U NetNIC_RdReg_8(CPU_INT08U reg) void NetNIC_WrIx_8(CPU_INT08U ix) CPU_INT08U NetNIC_RdData_8(void) void NetNIC_WrData_8(CPU_INT08U data) NetNIC_WrData_16(CPU_INT16U data) I suggest use a Nios II EDS version with the uC/OS-II in order to make easier the integration with the Nios II port.