X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fhelpers.c;h=b44be32f2846a2eb600c7b9e6da9d390b2aa5068;hb=c9763dcb182398266bae1c6a7a848beec1cba35d;hp=68adb3f6489aa9b683dc47c423e37837c4529fca;hpb=55253e1f322dc699f53ad45f8dd1bae282686953;p=uccvend-snackrom.git diff --git a/ROM2/helpers.c b/ROM2/helpers.c index 68adb3f..b44be32 100644 --- a/ROM2/helpers.c +++ b/ROM2/helpers.c @@ -4,23 +4,3 @@ void delay(u16 ms) { /* FIXME fill me in */ } -#define buffered_addr(a) \ - u8 a; \ - inline void set_##a(u8 b) { a = *_##a = b; } \ - inline void bset_##a(u8 m) { a |= m; *_##a = a; } \ - inline void bclr_##a(u8 m) { a &= ~m ; *_##a = a; } - -buffered_addr(switch_input) -buffered_addr(misc_input) -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; -}