mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Remove redundant no hint
This commit is contained in:
parent
7fc6a0d4dd
commit
b117637ddf
@ -184,7 +184,7 @@ static void spi_config_init(int w, int h, int refresh_rate, bool triple_buffer,
|
|||||||
framebuffer_tail = 0;
|
framebuffer_tail = 0;
|
||||||
|
|
||||||
for (int i = 0; i < FRAMEBUFFER_COUNT; i++) {
|
for (int i = 0; i < FRAMEBUFFER_COUNT; i++) {
|
||||||
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_NO_HINT | FB_ALLOC_CACHE_ALIGN);
|
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_CACHE_ALIGN);
|
||||||
}
|
}
|
||||||
|
|
||||||
dma_init(&spi_tx_dma, OMV_SPI_LCD_CONTROLLER->tx_dma_descr, DMA_MEMORY_TO_PERIPH, OMV_SPI_LCD_CONTROLLER->spi);
|
dma_init(&spi_tx_dma, OMV_SPI_LCD_CONTROLLER->tx_dma_descr, DMA_MEMORY_TO_PERIPH, OMV_SPI_LCD_CONTROLLER->spi);
|
||||||
@ -941,7 +941,7 @@ static void ltdc_config_init(int frame_size, int refresh_rate)
|
|||||||
framebuffer_tail = 0;
|
framebuffer_tail = 0;
|
||||||
|
|
||||||
for (int i = 0; i < FRAMEBUFFER_COUNT; i++) {
|
for (int i = 0; i < FRAMEBUFFER_COUNT; i++) {
|
||||||
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_NO_HINT | FB_ALLOC_CACHE_ALIGN);
|
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_CACHE_ALIGN);
|
||||||
ltdc_framebuffer_layers[i].WindowX0 = 0;
|
ltdc_framebuffer_layers[i].WindowX0 = 0;
|
||||||
ltdc_framebuffer_layers[i].WindowX1 = w;
|
ltdc_framebuffer_layers[i].WindowX1 = w;
|
||||||
ltdc_framebuffer_layers[i].WindowY0 = 0;
|
ltdc_framebuffer_layers[i].WindowY0 = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user