Changed HWB board driver to Buttons driver, to allow for the support of future boards...
[pub/USBasp.git] / Demos / Host / MassStorageHost / MassStorageHost.c
index 15006d3..d06e3a6 100644 (file)
@@ -63,7 +63,7 @@ int main(void)
        /* Hardware Initialization */\r
        SerialStream_Init(9600, false);\r
        LEDs_Init();\r
-       HWB_Init();\r
+       Buttons_Init();\r
        \r
        /* Indicate USB not ready */\r
        UpdateStatus(Status_USBNotReady);\r
@@ -319,10 +319,10 @@ TASK(USB_MassStore_Host)
                                puts_P(PSTR("\r\n"));\r
                        }\r
                        \r
-                       puts_P(PSTR("\r\n\r\nPress HWB to read entire ASCII contents of disk...\r\n\r\n"));\r
+                       puts_P(PSTR("\r\n\r\nPress board button to read entire ASCII contents of disk...\r\n\r\n"));\r
                        \r
-                       /* Wait for HWB to be pressed */\r
-                       while (!(HWB_GetStatus()))\r
+                       /* Wait for the board button to be pressed */\r
+                       while (!(Buttons_GetStatus() & BUTTONS_BUTTON1))\r
                        {\r
                                /* Abort if device removed */\r
                                if (!(USB_IsConnected))\r