X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fhelpers.c;h=68adb3f6489aa9b683dc47c423e37837c4529fca;hb=caf0c7e19f65db08f81413320f11a8d5a8bea5d2;hp=71c10072b4131e405b14b16179385068a6ef358f;hpb=0f822a5a37e6e17e027b5a83b8d231a6c0de13eb;p=uccvend-snackrom.git diff --git a/ROM2/helpers.c b/ROM2/helpers.c index 71c1007..68adb3f 100644 --- a/ROM2/helpers.c +++ b/ROM2/helpers.c @@ -16,3 +16,11 @@ buffered_addr(home_sensors) buffered_addr(changer_output) buffered_addr(misc_output) + +inline void spi_enable() { + _io_ports[M6811_SPCR] |= M6811_SPE; +} + +inline void spi_disable() { + _io_ports[M6811_SPCR] &= ~M6811_SPE; +}