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

Function efm_eth_cs

bsp/efm32/drv_ethernet.c:60–73  ·  view source on GitHub ↗

Private function prototypes -----------------------------------------------*/ Private functions ---------------------------------------------------------*/ / * @brief * Set/Clear chip select * * @details * * @note * * @param[in] enable * Chip select pin setting ******************************************************************************/

Source from the content-addressed store, hash-verified

58 * Chip select pin setting
59 ******************************************************************************/
60static void efm_eth_cs(rt_uint8_t enable)
61{
62 if (!ethAutoCs)
63 {
64 if (enable)
65 {
66 GPIO_PinOutClear(ETH_CS_PORT, ETH_CS_PIN);
67 }
68 else
69 {
70 GPIO_PinOutSet(ETH_CS_PORT, ETH_CS_PIN);
71 }
72 }
73}
74
75/***************************************************************************//**
76 * @brief

Callers 4

efm_eth_cmdFunction · 0.85
efm_eth_initFunction · 0.85
efm_eth_rxFunction · 0.85
efm_eth_txFunction · 0.85

Calls 2

GPIO_PinOutClearFunction · 0.85
GPIO_PinOutSetFunction · 0.85

Tested by

no test coverage detected