Long beep on start up
authorBernard Blackham <[email protected]>
Fri, 15 Aug 2003 17:11:04 +0000 (17:11 +0000)
committerBernard Blackham <[email protected]>
Fri, 15 Aug 2003 17:11:04 +0000 (17:11 +0000)
ROM2/main_basic.c

index b7c110f..6019371 100644 (file)
@@ -122,13 +122,15 @@ int main() {
        u16 last_coin_value;
        bool last_door_open;
 
-       chime_start();
+       chime_on();
        
        misc_output = 0;
        changer_output = 0x7f;
        _io_ports[M6811_PORTA] = 0xc8;
        _io_ports[M6811_DDRD] = 0x3e;
        _io_ports[M6811_SPCR] = 0x12;
+       
+       delay(1000); chime_off(); /* mainly for debugging */
 
        unlock(); /* enable interrupts */
 
@@ -138,7 +140,7 @@ int main() {
 
        last_coin_value = 0;
        last_door_open = 0;
-       
+
        while(1) {
                if (door_open() != last_door_open) {
                        last_door_open = door_open();

UCC git Repository :: git.ucc.asn.au