|
发表于 2019-1-25 23:02:34
|
显示全部楼层
void ILI9488_DrawHColorLine(uint16_t _usX1 , uint16_t _usY1, uint16_t _usWidth, const uint16_t *_pColor)
{
ILI9488_SetDispWin(_usX1, _usY1, 1, _usWidth);
ILI9488_REG = 0x2C;
#if 0
{
uint16_t i;
/* 写显存 */
for (i = 0; i <_usWidth; i++)
{
ILI9488_RAM = *_pColor++;
}
}
#else
DMA2_Stream7->PAR = (uint32_t )_pColor;
DMA2_Stream7->NDTR =_usWidth;
DMA2_Stream7->CR |= 1<<0;
while(DMA_GetFlagStatus(DMA2_Stream7, DMA_FLAG_TCIF7) == RESET);
DMA_ClearFlag(DMA2_Stream7, DMA_FLAG_TCIF7);
#endif
}
@eric2013 大神,这个就是DMA加速吗?F103要怎么做呢? |
|