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

Function EBI_TFTTimingSet

bsp/efm32/Libraries/emlib/src/em_ebi.c:697–708  ·  view source on GitHub ↗

/ * @brief * Configure TFT Direct Drive Timing Settings * * @param[in] dclkPeriod * DCLK period in internal cycles * * @param[in] start * Starting position of external direct drive, relative to DCLK inactive edge * * @param[in] setup * Number of cycles RGB data is driven before active edge of DCLK * * @param[in] hold * Number of cycles RGB data is held after active edge of D

Source from the content-addressed store, hash-verified

695 * Number of cycles RGB data is held after active edge of DCLK
696 ******************************************************************************/
697void EBI_TFTTimingSet(int dclkPeriod, int start, int setup, int hold)
698{
699 EFM_ASSERT(dclkPeriod < 2048);
700 EFM_ASSERT(start < 2048);
701 EFM_ASSERT(setup < 4);
702 EFM_ASSERT(hold < 4);
703
704 EBI->TFTTIMING = (dclkPeriod << _EBI_TFTTIMING_DCLKPERIOD_SHIFT) |
705 (start << _EBI_TFTTIMING_TFTSTART_SHIFT) |
706 (setup << _EBI_TFTTIMING_TFTSETUP_SHIFT) |
707 (hold << _EBI_TFTTIMING_TFTHOLD_SHIFT);
708}
709#endif
710
711#if defined(_EFM32_GIANT_FAMILY)

Callers 1

EBI_TFTInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected