X-Git-Url: https://git.ucc.asn.au/?p=uccvend-snackrom.git;a=blobdiff_plain;f=ROM2%2Fvend.h;h=460aa71169a3291e8805f19e69696185701f8f2f;hp=17ba674d1fd88c2deee12ec3b8692bde5283c997;hb=f5bc521c83d95d35e852747402a44d1411252c2b;hpb=17af89d1b2f699e0fc9dbe6132b6b8e0c6c81068 diff --git a/ROM2/vend.h b/ROM2/vend.h index 17ba674..460aa71 100644 --- a/ROM2/vend.h +++ b/ROM2/vend.h @@ -26,11 +26,14 @@ extern volatile u8 _misc_input; extern volatile u8 _home_sensors; #define home_sensors _home_sensors +#define is_standalone() (misc_input & 0x01) /* DIP sw 1 */ + extern u16 _stack; /******* from helpers.c *******/ void delay(u16 ms); void my_strncpy(char* dst, char* src, u8 max_size); /* for null-term strings */ +bool my_strncmp(char* a, char* b, u8 len); void my_memcpy(char* dst, char* src, u8 size); /******** Some meaningful bits ******/