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

Minor code style and documentation changes.

parent af3c001c
Branches
Tags
No related merge requests found
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
* can be incorporated into many different applications. * can be incorporated into many different applications.
* *
* \li Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/ * \li Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/
* \li AERY development platform for the AVR32 devices: http://www.aery32.com/
* \li Arcade Controller: http://fletchtronics.net/arcade-controller-made-petunia * \li Arcade Controller: http://fletchtronics.net/arcade-controller-made-petunia
* \li Arcade Joystick: http://jamie.lentin.co.uk/embedded/arcade-joystick/ * \li Arcade Joystick: http://jamie.lentin.co.uk/embedded/arcade-joystick/
* \li AttoBasic AVR BASIC interpreter: http://www.cappels.org/dproj/AttoBasic2_1/AttoBasic_2.1_with_USB_and_Arduino_support.html * \li AttoBasic AVR BASIC interpreter: http://www.cappels.org/dproj/AttoBasic2_1/AttoBasic_2.1_with_USB_and_Arduino_support.html
...@@ -119,6 +120,7 @@ ...@@ -119,6 +120,7 @@
* \li USB MIDI to DMX controller: http://github.com/hanshuebner/miDiMX * \li USB MIDI to DMX controller: http://github.com/hanshuebner/miDiMX
* \li USB powered Geiger Counter: http://uhrheber.wordpress.com/2011/04/28/a-usb-powered-geiger-counter-for-the-z2-and-other-computers/ * \li USB powered Geiger Counter: http://uhrheber.wordpress.com/2011/04/28/a-usb-powered-geiger-counter-for-the-z2-and-other-computers/
* \li Userial, a USB to Serial converter with SPI, I2C and other protocols: http://www.tty1.net/userial/ * \li Userial, a USB to Serial converter with SPI, I2C and other protocols: http://www.tty1.net/userial/
* \li Wii Classic Controller to USB converter: https://github.com/crazyiop/wii-classic-2-usb
* \li Wireless MIDI Guitar system: http://www.ise.pw.edu.pl/~wzab/wireless_guitar_system/ * \li Wireless MIDI Guitar system: http://www.ise.pw.edu.pl/~wzab/wireless_guitar_system/
* \li Xnormidi, a C MIDI library: http://x37v.info/projects/xnormidi * \li Xnormidi, a C MIDI library: http://x37v.info/projects/xnormidi
* \li XUM1541, a Commodore 64 floppy drive to USB adapter: http://www.root.org/~nate/c64/xum1541/ * \li XUM1541, a Commodore 64 floppy drive to USB adapter: http://www.root.org/~nate/c64/xum1541/
......
...@@ -126,9 +126,12 @@ ...@@ -126,9 +126,12 @@
* \param[out] DataPtr Pointer to a global array that will hold the data stored into the ring buffer. * \param[out] DataPtr Pointer to a global array that will hold the data stored into the ring buffer.
* \param[out] Size Maximum number of bytes that can be stored in the underlying data array. * \param[out] Size Maximum number of bytes that can be stored in the underlying data array.
*/ */
static inline void RingBuffer_InitBuffer(RingBuffer_t* Buffer, uint8_t* const DataPtr, const uint16_t Size) static inline void RingBuffer_InitBuffer(RingBuffer_t* Buffer,
ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2); uint8_t* const DataPtr,
static inline void RingBuffer_InitBuffer(RingBuffer_t* Buffer, uint8_t* const DataPtr, const uint16_t Size) const uint16_t Size) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
static inline void RingBuffer_InitBuffer(RingBuffer_t* Buffer,
uint8_t* const DataPtr,
const uint16_t Size)
{ {
GCC_FORCE_POINTER_ACCESS(Buffer); GCC_FORCE_POINTER_ACCESS(Buffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment