Added incomplete PrinterHost demo application.
Seperated out Lib components of the incomplete BluetoothHost demo application out into a seperate Lib subfolder. Changed F_CLOCK entries in project makefiles to alias to F_CPU by default, as this is the most common case.
This commit is contained in:
parent
b462f2d457
commit
e0af6014a7
62 changed files with 1362 additions and 74 deletions
|
|
@ -50,7 +50,6 @@ int main(void)
|
|||
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
|
||||
|
||||
/* Startup message */
|
||||
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
|
||||
"Bluetooth Host Demo running.\r\n" ESC_INVERSE_OFF));
|
||||
|
||||
|
|
@ -111,6 +110,7 @@ void EVENT_USB_DeviceEnumerationFailed(uint8_t ErrorCode, uint8_t SubErrorCode)
|
|||
{
|
||||
puts_P(PSTR(ESC_BG_RED "Dev Enum Error\r\n"));
|
||||
printf_P(PSTR(" -- Error Code %d\r\n"), ErrorCode);
|
||||
printf_P(PSTR(" -- Sub Error Code %d\r\n"), SubErrorCode);
|
||||
printf_P(PSTR(" -- In State %d\r\n"), USB_HostState);
|
||||
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#include <avr/power.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "BluetoothStack.h"
|
||||
#include "Lib/BluetoothStack.h"
|
||||
|
||||
#include "DeviceDescriptor.h"
|
||||
#include "ConfigDescriptor.h"
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ F_CPU = 8000000
|
|||
#
|
||||
# If no clock division is performed on the input clock inside the AVR (via the
|
||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||
F_CLOCK = 8000000
|
||||
F_CLOCK = $(F_CPU)
|
||||
|
||||
|
||||
# Output format. (can be srec, ihex, binary)
|
||||
|
|
@ -133,9 +133,9 @@ LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
|
|||
SRC = $(TARGET).c \
|
||||
DeviceDescriptor.c \
|
||||
ConfigDescriptor.c \
|
||||
BluetoothStack.c \
|
||||
BluetoothHCICommands.c \
|
||||
BluetoothACLPackets.c \
|
||||
Lib/BluetoothStack.c \
|
||||
Lib/BluetoothHCICommands.c \
|
||||
Lib/BluetoothACLPackets.c \
|
||||
$(LUFA_PATH)/LUFA/Drivers/Peripheral/SerialStream.c \
|
||||
$(LUFA_PATH)/LUFA/Drivers/Peripheral/Serial.c \
|
||||
$(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/DevChapter9.c \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue