aboutsummaryrefslogtreecommitdiffstats
path: root/fw/tests/system/spi_systest.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-10-02 14:45:56 -0400
committerSam Anthony <sam@samanthony.xyz>2025-10-02 14:45:56 -0400
commit99be520563834d51eb3ddd32b757a3dcd2486632 (patch)
tree7c31bcc262950d431a1676b62624b6ac82f30df3 /fw/tests/system/spi_systest.c
parentc91e3d96c90cd1c9b3b6155bc5e37954011cf0af (diff)
downloadcan-gauge-interface-99be520563834d51eb3ddd32b757a3dcd2486632.zip
spi systest
Diffstat (limited to 'fw/tests/system/spi_systest.c')
-rw-r--r--fw/tests/system/spi_systest.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/fw/tests/system/spi_systest.c b/fw/tests/system/spi_systest.c
new file mode 100644
index 0000000..1adc624
--- /dev/null
+++ b/fw/tests/system/spi_systest.c
@@ -0,0 +1,22 @@
+#include <xc.h>
+
+#include <stdint.h>
+
+#include "system.h"
+#include "types.h"
+#include "spi.h"
+
+void
+main(void) {
+ sysInit();
+ spiInit();
+
+ for (;;) {
+ (void)spiTx(0x05); // 0b0000101
+ }
+}
+
+void
+__interrupt() isr(void) {
+
+}