MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / Ft_GmacCfgInitialize

Function Ft_GmacCfgInitialize

bsp/ft2004/libraries/bsp/ft_gmac/ft_gmac.c:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40s32 Ft_GmacCfgInitialize(Ft_Gmac_t *Gmac, FGmac_Config_t *Config)
41{
42 Ft_assertNonvoid(Gmac != NULL);
43 Ft_assertNonvoid(Config != NULL);
44
45 Gmac->Config = *Config;
46 Gmac->IsReady = FT_COMPONENT_IS_READLY;
47
48 FGmac_SetHandler(Gmac, FT_GMAC_TX_COMPLETE_CB_ID, Ft_Gmac_StubHandler, Gmac);
49 FGmac_SetHandler(Gmac, FT_GMAC_RX_COMPLETE_CB_ID, Ft_Gmac_StubHandler, Gmac);
50 FGmac_SetHandler(Gmac, FT_GMAC_DMA_ERROR_CB_ID, Ft_Gmac_StubErrorHandler, Gmac);
51
52 return FST_SUCCESS;
53}
54
55s32 Ft_Gmac_Start(Ft_Gmac_t *Gmac)
56{

Callers 1

rt_ft2004_gmac_initFunction · 0.85

Calls 1

FGmac_SetHandlerFunction · 0.85

Tested by

no test coverage detected