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

Function efm_spiFlash_cs

bsp/efm32/dev_sflash.c:225–238  ·  view source on GitHub ↗

/ * @brief * Set/Clear chip select * * @details * * @note * * @param[in] enable * Chip select pin setting *********************************************************************/

Source from the content-addressed store, hash-verified

223 * Chip select pin setting
224 *********************************************************************/
225static void efm_spiFlash_cs(rt_uint8_t enable)
226{
227 if (!sFlashAutoCs)
228 {
229 if (enable)
230 {
231 GPIO_PinOutClear(SFLASH_CS_PORT, SFLASH_CS_PIN);
232 }
233 else
234 {
235 GPIO_PinOutSet(SFLASH_CS_PORT, SFLASH_CS_PIN);
236 }
237 }
238}
239
240/******************************************************************//**
241 * @brief

Callers 1

efm_spiFlash_cmdFunction · 0.85

Calls 2

GPIO_PinOutClearFunction · 0.85
GPIO_PinOutSetFunction · 0.85

Tested by

no test coverage detected