mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
[Squash] Move I2C to IRQ based for big txn
Squash DMA attempt out .
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user