diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-10-23 16:01:22 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-10-23 16:01:22 -0400 |
| commit | 04fbfdb4fd6bf4118b88867d852e3b29d139c800 (patch) | |
| tree | 504a392a7e68b0d3aeedfddc8518ab4ae4bb33fd /fw/tests/system/eeprom_systest.c | |
| parent | 24bce89e4663baaa28332887d5b531fa03ebb252 (diff) | |
| download | can-gauge-interface-04fbfdb4fd6bf4118b88867d852e3b29d139c800.zip | |
fw: remove usb
Diffstat (limited to 'fw/tests/system/eeprom_systest.c')
| -rw-r--r-- | fw/tests/system/eeprom_systest.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/fw/tests/system/eeprom_systest.c b/fw/tests/system/eeprom_systest.c deleted file mode 100644 index 81fa189..0000000 --- a/fw/tests/system/eeprom_systest.c +++ /dev/null @@ -1,44 +0,0 @@ -#include <xc.h> - -#include <stdint.h> - -#include "system.h" -#include "types.h" -#include "spi.h" -#include "eeprom.h" -#include "usb.h" - -void -main(void) { - sysInit(); - spiInit(); - eepromInit(); - usbInit(); - - T1CON = 0; - T1CONbits.TMR1CS = 0x0; // FOSC/4 - T1CONbits.T1CKPS = 0x3; // 1:8 prescaler - T1CONbits.TMR1ON = 1; - - TMR1IE = 1; - TMR1IF = 0; - PEIE = 1; - GIE = 1; - - for (;;) { - - } -} - -void -__interrupt() isr(void) { - static U8 ctr = 0u; - - if (TMR1IF) { - if (ctr == 23u) { // 1s period - - } - ctr = (ctr+1u) % 23u; - TMR1IF = 0; - } -} |