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

Function efm32_spiLcd_cs

bsp/efm32/dev_lcd.c:392–405  ·  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

390 * Chip select pin setting
391 ******************************************************************************/
392static void efm32_spiLcd_cs(rt_uint8_t enable)
393{
394 if (!lcdAutoCs)
395 {
396 if (enable)
397 {
398 GPIO_PinOutClear(LCD_CS_PORT, LCD_CS_PIN);
399 }
400 else
401 {
402 GPIO_PinOutSet(LCD_CS_PORT, LCD_CS_PIN);
403 }
404 }
405}
406
407/***************************************************************************//**
408 * @brief

Callers 1

Calls 2

GPIO_PinOutClearFunction · 0.85
GPIO_PinOutSetFunction · 0.85

Tested by

no test coverage detected