Commit Graph

907 Commits

Author SHA1 Message Date
Dean Camera 016a4c068a Make loops in AVRISP-MKII Clone project's XPROG protocol infinite rather than looping on the timeout value, as this is already checked inside the loop anyway. 2010-06-25 13:19:05 +00:00
Dean Camera 26afe5fe9e Fix Doxygen formatting of parameters for the CALLBACK_HID_Device_CreateHIDReport() function in the ClassDriver HID device demos. 2010-06-25 09:49:46 +00:00
Dean Camera 55d7e1e65b Make XPLAINBridge serial bridge much more reliable for the reception of characters from the XMEGA through the software UART interface. 2010-06-24 08:12:27 +00:00
Dean Camera ad29e79b94 Maximise the size of the ring buffers in the Benito/XPLAINBridge/USBtoSerial projects, so that they should never become full under normal conditions. 2010-06-24 07:42:18 +00:00
Dean Camera 4b952d479a Split RFCOMM channel signals into Remote and Local pairs. Use memcpy() to copy over data from the command parameters to the RFCOMM response parameters.
Ensure that only the valid parameter bytes are sent back in response to MSC commands.
2010-06-23 08:10:21 +00:00
Dean Camera 2eff731ecf Add TEST RFCOMM command handler. Remove the RFCOMM channel UseUIFrame element, as the Bluetooth adaptions to RFCOMM only allow UIH frames to be used. 2010-06-23 07:17:47 +00:00
Dean Camera 559af02204 Use a bitmask instead of an array of bools in the SDP UUID List matching algorithm to reduce the compiled code size and stack used. 2010-06-22 07:55:02 +00:00
Dean Camera e621ab33be Added new pgm_read_ptr() macro to Common.h for reading of pointers out of flash memory space.
Added new SWAPENDIAN_16() and SWAPENDIAN_32() macros to Common.h for statically initialized variables at compile time.
2010-06-22 07:06:27 +00:00
Dean Camera 988604b25d Moved calls to V2Params_UpdateParamValues() out of the main AVRISP-MKII and XPLAINBridge project loops and into the AVRISP management function. 2010-06-21 13:39:56 +00:00
Dean Camera 51c2dcf3b0 Fixed broken PDI EEPROM Section Erase functionality in the AVRISP-MKII project. 2010-06-17 09:17:09 +00:00
Dean Camera deed746d37 Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().
Minor tweaks to the library documentation.
2010-06-17 08:15:58 +00:00
Dean Camera 69dc32c5f0 Fix compile and Doxygen errors due to the spell-check changes in the source code. 2010-06-16 11:46:42 +00:00
Dean Camera 711542ee89 Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as the new 1.7 Doxygen's default stylesheet is much better. 2010-06-16 11:01:01 +00:00
Dean Camera 13ea700b35 Rename RFCOMM_GetFrameDataLength() to RFCOMM_GetVariableFieldValue() as it is multi-purpose, and modify it to move the buffer pointer itself rather than relying on the caller.
Make RFCOMM_GetChannelData() return NULL if the required channel DLCI is found, but the channel is closed.

Add modem signals (BREAK, DCD, etc.) to the channel state array, and add in a handler for the Modem Status RFCOMM control command.
2010-06-15 11:28:15 +00:00
Dean Camera f5d079462d Changed the RFCOMM-specific ItemProtocolChannel_t type to a more generic ItemProtocol_8BitParam_t name, and added a new ItemProtocol_16BitParam_t to the SDP protocol type defines. 2010-06-15 10:09:42 +00:00
Dean Camera 3125fd5f4f Add RFCOMM channel configuration parsing and channel states to the incomplete BluetoothHost demo.
Add missing BT_* prefix to the Bluetooth stack's channel state enum values.
2010-06-15 09:32:35 +00:00
Dean Camera dcedde0123 Fix HID parser documentation for the default maximum report/path/etc. elements so that it matches the current code values. 2010-06-15 03:40:02 +00:00
Dean Camera a14ece5f57 Change over Doxygen \note documentation to \pre where applicable. 2010-06-15 03:34:55 +00:00
Dean Camera 27fb44268f Update TemperatureDataLogger and Webserver projects to the latest FATFS library version. 2010-06-14 11:58:23 +00:00
Dean Camera 67bc625109 Split out the RFCOMM Control Channel command processing code into a seperate set of files for clarity. 2010-06-13 13:21:35 +00:00
Dean Camera b522e35965 Rename the incomplete Bluetooth Host demo's ServiceDiscoveryProtocol.c/.h files to SDP.c/.h. Fix compile errors in RFCOMM.c/.h. 2010-06-13 12:44:20 +00:00
Dean Camera 637c7b01d0 More RFCOMM layer additions - begin to add multiplexer channel state variables. 2010-06-13 12:37:16 +00:00
Dean Camera d57e7369a2 Oops - temp code left in the XPLAINBridge project which prevented it from entering programmer mode. 2010-06-12 08:52:44 +00:00
Dean Camera 036a156ff4 Slight improvements to the reliability of the software UART in the XPLAINBridge project. 2010-06-12 08:39:12 +00:00
Dean Camera 931ca42a6e Minor fixes to demos to add in some missing comments, printf() formatting. Make incomplete Bluetooth demo indicate connections visually via the board LEDs. 2010-06-12 07:03:22 +00:00
Dean Camera 75d440ace3 Speed up calls to Pipe_IsPipeBound() by immediately skipping unconfigured pipes, rather than performing token check first. 2010-06-12 07:01:18 +00:00
Dean Camera 5fa0e9c007 Oops - light weight ring buffer documentation used \ref instead of \param to document function parameters. 2010-06-10 01:30:32 +00:00
Dean Camera b02217d745 Add missing documentation to the lightweight ring buffer code in the XPLAINBridge project. 2010-06-10 01:26:10 +00:00
Dean Camera f73f01235e Update main library makefile with missing source files for the "clean" rule. 2010-06-08 14:47:17 +00:00
Dean Camera 5ce3f0b17b Add missing ATTR_NON_NULL_PTR_ARG and ATTR_ALWAYS_INLINE attributes to class driver functions. 2010-06-08 11:14:07 +00:00
Dean Camera 96063b9f98 Add Mecurial repository mirror link to the library documentation. 2010-06-08 09:13:11 +00:00
Dean Camera e930738247 Add stub RFCOMM command handlers. Move out RFCOMM frame length and data pointer calculations to the master RFCOMM frame reception routine, instead of inside each frame type handler function. 2010-06-07 13:39:34 +00:00
Dean Camera f92229697f More RFCOMM layer implementation - fix FCS calculation, add in start of control channel command processing. 2010-06-07 12:53:47 +00:00
Dean Camera 34e0fed4ca Make the RFCOMM_SendFrame() function correctly generate frames from the input parameters, change addressing to use the raw DLCI address plus flags. 2010-06-07 09:07:18 +00:00
Dean Camera 361e1ec1d8 Refactor out RFCOMM packet send code into a seperate function. 2010-06-06 14:39:51 +00:00
Dean Camera 7aec6cba1a Fix incorrect copyright attribution on the class-driver keyboard demos due to header copy-pasting. 2010-06-06 14:03:56 +00:00
Dean Camera c2e340320c Document lightweight ring buffer header files. 2010-06-06 13:49:50 +00:00
Dean Camera 2dabb4e55f Add the svn:eol-style property onto new files which where missing it to ensure uniform line endings. 2010-06-06 08:33:14 +00:00
Dean Camera efbedcfa54 Document Bluetooth files with overall file Doxygen comments. Add more initial RFCOMM layer code to receive and respond to SABM packets. 2010-06-04 06:25:12 +00:00
Dean Camera be09f64872 Fixed incorrect function references in the Mass Storage Class driver documentation. 2010-06-03 15:58:22 +00:00
Dean Camera 6d53cdba83 More documentation fixes. 2010-06-03 15:55:28 +00:00
Dean Camera fc92f9969c Minor documentation cleanups. 2010-06-03 15:32:45 +00:00
Dean Camera 9293de2491 Start implementation of RFCOMM decoding layer. Add new service initialize routines for each Bluetooth service - currently unused, but will eventually reset the service state of RFCOMM when a new connection is made. 2010-06-03 12:45:15 +00:00
Dean Camera 13d812a718 Delay needed in bluetooth code due to the send function not waiting for the pipe bank to become ready before writing. Add in a call to Pipe_WaitUntilReady() to fix the issue. 2010-06-03 08:42:20 +00:00
Dean Camera a405a9bdf8 Extra protocol value in the RFCOMM protocol is the channel number, not the PSM - update typedef name and size.
Add delay to the Connection Request signal processing routine - without this, the host will not create the RFCOMM channel correctly. Need to investigate why this delay is needed.
2010-06-03 08:33:01 +00:00
Dean Camera 480da5aab6 Add PSM value to the RFCOMM service so that the host knows what PSM to use on channels when trying to access it. 2010-06-03 07:45:09 +00:00
Dean Camera 008e0e2e0a Add start of RFCOMM service layer to the incomplete BluetoothHost demo.
Reduce the size of the attribute search list from 15 ranges to 8 to save RAM.
2010-06-03 03:58:57 +00:00
Dean Camera 5144ea76f6 Oops - descriptor pointer should be assigned, not incremented with the new type-safe code. 2010-06-02 15:44:48 +00:00
Dean Camera 6d22a00e8b Better fix to avoid void pointer arithmetic in ConfigDescriptor.h to regain C++ compatibility (thanks to Michael Hennebry). 2010-06-02 15:28:07 +00:00
Dean Camera 23a94a7181 Fix byte ordering of UUIDs in the SDP server - host can now successfully pair to the Bluetooth device and discover the exposed Serial Port Profile RFCOMM service. 2010-06-02 14:49:06 +00:00