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

Function EBI_TFTHPorchSet

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

/ * @brief * Configure and initialize Horizontal Porch Settings * * @param[in] front * Horizontal front porch size in pixels * @param[in] back * Horizontal back porch size in pixels * @param[in] pulseWidth * Horizontal synchronization pulse width. Set to required -1. ******************************************************************************/

Source from the content-addressed store, hash-verified

644 * Horizontal synchronization pulse width. Set to required -1.
645 ******************************************************************************/
646void EBI_TFTHPorchSet(int front, int back, int pulseWidth)
647{
648 EFM_ASSERT(front < 256);
649 EFM_ASSERT(back < 256);
650 EFM_ASSERT((pulseWidth-1) < 128);
651
652 EBI->TFTHPORCH = (front << _EBI_TFTHPORCH_HFPORCH_SHIFT) |
653 (back << _EBI_TFTHPORCH_HBPORCH_SHIFT) |
654 ((pulseWidth-1) << _EBI_TFTHPORCH_HSYNC_SHIFT);
655}
656
657
658/***************************************************************************//**

Callers 1

EBI_TFTInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected