Dean Camera
cde2afc50e
Ensure that the CDC class drivers return 0 if the number of unread bytes is queried and the bank has become empty.
15 years ago
Dean Camera
c3db72afdc
Make CDC class bootloader hard-reset the AVR when exited instead of a soft-reset. Reduce size of the TeensyHID bootloader slightly.
...
Fix the TeensyHID bootloader for the larger USB AVR devices, since Paul uses a different (undocumented) addressing scheme on these devices.
15 years ago
Dean Camera
add5192366
Oops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy++ targets.
15 years ago
Dean Camera
298592383a
Fixed TeensyHID bootloader so that it works with the official TeensyLoader GUI application with all supported AVR models.
15 years ago
Dean Camera
fc31973daf
Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootloader.
15 years ago
Dean Camera
a926053ab5
Fix up the ADC driver for the U4 parts to remove a typo on one of the register names.
15 years ago
Dean Camera
ab8668b14e
Removed software PDI/TPI emulation from the AVRISP-MKII clone project, as it was very buggy. PDI and TPI must now be implemented via seperate headers instead of the one unified ISP/TPI/PDI header.
15 years ago
Dean Camera
708a1c6166
Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts from occuring while the control endpoint request is being processed, causing possible lockups if a USB interrupt occurs during a transfer.
15 years ago
Dean Camera
e652cfac67
Fixed Host mode HID class driver not sending the correct report type when HID_Host_SendReportByID() was called and the HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set.
15 years ago
Dean Camera
27f0ba6fc3
Fixed device state not being reset back to the default state if the host sets the address to 0x00.
...
Fixed Set Configuration requests not being stalled until the host has set the device's address.
Fixed possibility of internal signature retrieval being corrupted if an interrupt occurs during a signature byte read (thanks to Andrei Krainev).
15 years ago
Dean Camera
eed7d4df6a
Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so that the stream functions early-abort if the bus is suspended before or during a transfer.
15 years ago
Dean Camera
5c0c0327d5
Increase hardware PDI/TPI programming speed to 1MHz in the AVRISP MKII clone project.
15 years ago
Dean Camera
a5e79333e5
Switch back to C based timeout ISR in the AVRISP project - assembly version was failing, and only one or two cycles could be shaved off the compiler generated code.
15 years ago
Dean Camera
3d28d53c3e
Change AVRISP project's timeout to be interrupt based again, but make the interrupt itself interruptable and use a seperate assembly file to hand-optimize the ISR code.
...
Removed the cast to uint16_t on the set baud rate in the USBtoSerial project, so that the higher >1M baud rates can be selected (thanks to Steffan).
15 years ago
Dean Camera
9a1560dc05
Make sure that long reads are aborted early if the connection times out while waiting on more bytes in the AVRISP MKII clone project.
15 years ago
Dean Camera
ceb16ee24f
Make sure that the NVM bus/controller busy waits in the AVRISP MKII clone project abort properly if a timeout occurs while waiting for a response.
15 years ago
Dean Camera
9cad677ebb
The Audio_Device_IsSampleReceived() and Audio_Device_IsReadyForNextSample() functions are now inline, to reduce overhead.
15 years ago
Dean Camera
9e34144c9b
Use puts_P() and printf_P() instead of the normal variants where possible in the Host mode Class Driver demos.
15 years ago
Dean Camera
0063f72117
Oops - relocated USBInterrupt.h header file requires adjusted include paths for the other USB driver header files.
15 years ago
Dean Camera
e977774d4e
Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the LowLevel directory as it is hardware-dependent.
15 years ago
Dean Camera
1090e767f1
Remove incomplete/nonfunctional MIDI class bootloader.
15 years ago
Dean Camera
59c4871f80
USB_Init() no longer calls sei() to enable global interrupts - this must now be done in the user application once all init code has run.
15 years ago
Dean Camera
85aaaf84ce
Make AVRISP-MKII clone project's software PDI/TPI mode more robust by keeping track of timeouts while waiting for a Tx/Rx to finish.
15 years ago
Dean Camera
3c7ff36cfd
Fix TeensyHID bootloader Doxygen configuration file's CREATE_SUBDIRS options set to true instead of false (thanks to Andrei Krainev).
15 years ago
Dean Camera
5993e1efe7
Added ability to search by Channel PSM to the GetChannelData() function in the BluetoothHost demo.
...
Added new HCI states to properly initialize the bluetooth dongle and retrieve the local BDADDR.
Factored out Bluetooth state information into a new state structure for easy reference in the user application.
Added new StackInitialized() Bluetooth stack callback function.
15 years ago
Dean Camera
8252b4febd
Fixed HID Device Class Driver not allocating a temporary buffer when the host requests a report via the control endpoint and the user has set the PrevReportINBuffer driver configuration element to NULL (thanks to Lars Noschinski).
...
Clean up incomplete BluetoothHost debugging commands to use GCC extension to avoid NULL parameters when no formatting is required.
15 years ago
Dean Camera
d03d6513d0
Add start of a SDP service table, which will be linked to the Bluetooth SDP code.
15 years ago
Dean Camera
d92e9133d3
Make bluetooth SDP code correctly unpack the search UUIDs and parameters.
...
Minor documentation improvements.
15 years ago
Dean Camera
fc8e4837a9
Add const keyword to the demo function parameters where possible.
15 years ago
Dean Camera
55db57e1ed
Add bluetooth channel connection callback to the incomplete BluetoothHost demo.
15 years ago
Dean Camera
1f682ca2de
Minor documentation improvements.
15 years ago
Dean Camera
3eb81df998
Rename FunctionAttributes.h to Attributes.h, as some attributes are applicable to variables also. Add new ATTR_NOINIT attribute for global variables.
...
Add the beginnings of a SDP implentation to the incomplete BluetoothHost demo.
Add const attribute to the Mass Storage Host driver functions where it was applicable, but missing.
15 years ago
Dean Camera
5e14c194c9
Fixed Set/Clear Feature requests directed to a non-configured endpoint not returning a stall to the host.
...
Make TeensyHID bootloader use an 8 byte control endpoint to match the official Teensy, just in case Paul decides to authenticate on that attribute in the future.
15 years ago
Dean Camera
7b79325aa0
Removed two-step endpoint/pipe bank clear and switch sequence for smaller, faster endpoint/pipe code.
...
Added spacing between multiple paragraphs in Doxygen \note sections.
Removed call to the clock prescaler reset function in the Teensy bootloader to save space - the user application is accessed via a watchdog reset anyway, so the prescale reset would only affect the speed of the bootloader itself.
15 years ago
Dean Camera
19ecd04f37
Removed invalid dfu and flip related targets from the bootloaders - bootloaders can only be replaced with an external programmer.
15 years ago
Dean Camera
e55f338663
Document the Bluetooth ACL layer. Remove unneeded parameters from the signalling command processing routines.
...
Change over the code so that the bluetooth packet data is read in by the stack rather than the user application, to make it more unform for sending/receiving, and so the library can handle incomming fragmentation in the future.
Start Service Discovery Protocol decoding and processing.
15 years ago
Dean Camera
882ef0c983
Add some more documentation to the half-completed Bluetooth Host demo, fix the OpenChannel() command initialising the channel information structure to the wrong initial state once the CONNECTION REQUEST command has been sent to the remote device.
15 years ago
Dean Camera
8b0ec6c5ca
Fix Bluetooth stack CONNECTION RESPONSE packets - for this command and this command only, the source/destination roles are switched. Reverse the Local/Remote channel ordering so that Windows mobile and other stacks which depend on valid channel values to connect.
15 years ago
Dean Camera
6cfa3b7db8
Add HCI debugging with verbosity control to the BluetoothHost demo.
...
Add Link Key Request event processing so that paired devices always re-authenticate until appropriate link key store/retrieve callbacks are implemented.
15 years ago
Dean Camera
26421b38cd
Fix up Bluetooth Demo's options processing on incoming channel configuration requests.
15 years ago
Dean Camera
28f1ac8117
Add LUFA-side channel open/close routines, add signalling handlers for the creation and configuration of channels from the local device to the remote device, to add to the existing remote to local channel capabilities.
15 years ago
Dean Camera
797130bddc
Bluetooth demo can now create and maintain logical channels - need to determine why Windows machines refuse to connect.
15 years ago
Dean Camera
2a072db703
Make Bluetooth signalling handler routines use the generic Bluetooth_SendPacket() routine for their responses. Use a better method of controlling the debug output verbosity.
15 years ago
Dean Camera
c77f136661
Add bidirectional channel configuration -- remote device is not ACKing sent Configuration Requests, needs further debugging. Implement Bluetooth spec's channel states.
...
Use abbreviations for the structure and function names where possible to try to cut down on the code verbosity.
15 years ago
Dean Camera
b9c7d19615
Add packet reception and send routines to the ACL layer of the incomplete Bluetooth Host demo.
15 years ago
Dean Camera
ee74b4948f
Add information request/response signal handler to the Bluetooth Host demo.
...
Ensure that the AVRISP-MKII project's Windows avrdude compatibility define is named properly in all parts of the code.
15 years ago
Dean Camera
083d797aca
Add Bluetooth signalling echo request/response handlers, disconnection request/response handlers.
...
Add Bluetooth connection request/complete/disconnection callbacks.
Remove debugging from HCI layer, as it is now operational -- add guards to ACL debug statements to reduce logging chattyness so that the overall command sequences can be observed and debugged.
15 years ago
Dean Camera
fa1a092901
Add user callback function to the Bluetooth host demo to filter out connections from remote devices. Add in ability to reject connections based on their bluetooth device address.
...
Clean up RelayBoard project code.
Make AVRISP project clear the XMEGA target's reset register twice; this does not appear to take affect properly the first time under some circumstances.
15 years ago
Dean Camera
fd96b28882
More improvements to the incomplete BluetoothHost demo - add Disconnection Event processing.
...
Remove unused macro in the host mode demos for the maximum Configuration Descriptor size.
15 years ago
Dean Camera
a2e6d54336
Massive cleanups to the incomplete BluetoothHost demo, to make the HCL layer code much easier to read, block less and work correctly.
15 years ago