Skip to content
Snippets Groups Projects
Commit 85c2716f authored by Dean Camera's avatar Dean Camera
Browse files

Make Benito ping-pong LED code more explicit, using masks of the TX and RX LED...

Make Benito ping-pong LED code more explicit, using masks of the TX and RX LED masks for ping-pong toggle rather than the ambiguous LED "Busy" mask.

Fix incorrect event name in MassStorageHost.c.
parent 33a5715e
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
}
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void EVENT_USB_HostError(const uint8_t ErrorCode)
void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
{
USB_ShutDown();
......
......@@ -35,13 +35,16 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdbool.h>
#include <stddef.h>
#include "../LowLevel/LowLevel.h"
#include "StdRequestType.h"
#include "USBMode.h"
#include "Events.h"
#include "StdRequestType.h"
#include "StdDescriptors.h"
#include "USBMode.h"
#if defined(USB_CAN_BE_DEVICE)
#include "../LowLevel/DevChapter9.h"
#endif
#if defined(USB_CAN_BE_HOST)
#include "../LowLevel/HostChapter9.h"
......
......@@ -102,7 +102,7 @@ int main(void)
/* Check if the LEDs should be ping-ponging (during enumeration) */
if (PingPongMSRemaining && !(--PingPongMSRemaining))
{
LEDs_ToggleLEDs(LEDMASK_BUSY);
LEDs_ToggleLEDs(LEDMASK_TX | LEDMASK_RX);
PingPongMSRemaining = PING_PONG_LED_PULSE_MS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment