diff options
| author | lonkaars <loek@pipeframe.xyz> | 2023-03-30 17:00:05 +0200 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2023-03-30 17:00:05 +0200 |
| commit | fa296fbc6fe1c423932189116bd0cb949de0beef (patch) | |
| tree | fc7de2beb8c06e1e244caf0ca201d03c690b657e /src/ppu | |
| parent | 6292c1101121bc8ba2db752cab3cbe41469b29d0 (diff) | |
spi not working on hardware
Diffstat (limited to 'src/ppu')
| -rw-r--r-- | src/ppu/stm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppu/stm.c b/src/ppu/stm.c index 18811cf..8292d3c 100644 --- a/src/ppu/stm.c +++ b/src/ppu/stm.c @@ -9,7 +9,7 @@ void hh_ppu_deinit() {} void hh_ppu_vram_dwrite(uint8_t* data, size_t size) { HAL_SPI_Transmit(&hspi1, data, size, HAL_MAX_DELAY); - HAL_SPI_Transmit(&hspi1, (uint8_t[4]) { 0xff, 0xff, 0xff, 0xff }, 4, HAL_MAX_DELAY); + // reset SPI HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, true); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, false); } |