[Squash] Move I2C to IRQ based for big txn

Squash DMA attempt out

.
This commit is contained in:
Ben V. Brown
2025-02-21 18:42:17 +11:00
parent c2ec65cafb
commit 48b28123a6
9 changed files with 382 additions and 484 deletions

View File

@@ -10,6 +10,7 @@
#include "FreeRTOSConfig.h"
#include "IRQ.h"
#include "Pins.h"
#include "bl702_dma.h"
#include "bl702_sec_eng.h"
#include "history.hpp"
#include <string.h>
@@ -66,7 +67,10 @@ void hardware_init() {
I2C_SetDeglitchCount(I2C0_ID, 1); // Turn on de-glitch
// Note on I2C clock rate @ 100Khz the screen update == 20ms which is too long for USB-PD to work
// 200kHz and above works
I2C_ClockSet(I2C0_ID, 300000); // Sets clock to around 25 kHz less than set here
CPU_Interrupt_Enable(I2C_IRQn);
TIMER_SetCompValue(TIMER_CH0, TIMER_COMP_ID_0, 0);
}
void setup_pwm(void) {