diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-04-06 16:49:36 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-04-06 16:49:36 +0200 |
commit | 892424ba4d0c979e4351f7a866b6fe777783e4d2 (patch) | |
tree | d6688765834be74370038d8662703bd83b1acd40 /src/ppu/stm.c | |
parent | 4881723cf765fbd7bad2a1f08baf5897a7425401 (diff) |
dma send done and working
Diffstat (limited to 'src/ppu/stm.c')
-rw-r--r-- | src/ppu/stm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ppu/stm.c b/src/ppu/stm.c index 6bd9f66..ddd62b9 100644 --- a/src/ppu/stm.c +++ b/src/ppu/stm.c @@ -13,7 +13,6 @@ void hh_ppu_deinit() {} void hh_ppu_vram_dwrite(uint8_t* data, size_t size) { HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, GPIO_PIN_SET); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, GPIO_PIN_RESET); - HAL_SPI_Transmit_IT(&hspi1, data, size); - // HAL_SPI_Transmit_IT(&hspi1, (uint8_t[4]){ 0xff }, 4); + HAL_SPI_Transmit_DMA(&hspi1, data, size); } |