/ * @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. ******************************************************************************/
| 644 | * Horizontal synchronization pulse width. Set to required -1. |
| 645 | ******************************************************************************/ |
| 646 | void 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 | /***************************************************************************//** |