Comments changed to doxygen formatting.

This commit is contained in:
Kai Lauterbach 2011-12-27 12:48:34 +01:00
parent 33dababf34
commit 219ddba8f3
3 changed files with 19 additions and 9 deletions

View file

@ -11,7 +11,8 @@
#include "main.h" #include "main.h"
// Main loop /*! \brief Main loop
*/
int __attribute__((OS_main)) int __attribute__((OS_main))
main() main()
{ {
@ -26,7 +27,8 @@ main()
} }
} }
// Initialize the AVR. /*! \brief Initialize the AVR.
*/
void init() void init()
{ {
// Init ports // Init ports
@ -52,7 +54,8 @@ void init()
sei(); // Enable interrupts global sei(); // Enable interrupts global
} }
// TIMER1 interruptvector /*! \brief TIMER1 interruptvector
*/
ISR (TIMER1_COMPA_vect) ISR (TIMER1_COMPA_vect)
{ {

View file

@ -19,12 +19,13 @@
#include <avr/io.h> #include <avr/io.h>
#include <avr/eeprom.h> #include <avr/eeprom.h>
// Cube-Data /*! \brief Cube-Data
// bit 0 - 8 = level 1 * bit 0 - 8 = level 1
// bit 9 - 17 = level 2 * bit 9 - 17 = level 2
// bit 18 - 26 = level 3 * bit 18 - 26 = level 3
// bit 27 - 31 = The delay in ISR calls multiplied with 8 until * bit 27 - 31 = The delay in ISR calls multiplied with 8 until
// the next frame will be shown (load from the EEPROM) * the next frame will be shown (load from the EEPROM)
*/
uint32_t frame; uint32_t frame;
uint8_t level; // current layer uint8_t level; // current layer

View file

@ -14,6 +14,10 @@
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
/*! \brief
* \param USB Data packet.
* \return The length of the received or send data.
*/
usbMsgLen_t usbFunctionSetup(uchar data[8]) usbMsgLen_t usbFunctionSetup(uchar data[8])
{ {
usbRequest_t *rq = (void *)data; usbRequest_t *rq = (void *)data;
@ -57,6 +61,8 @@ usbMsgLen_t usbFunctionSetup(uchar data[8])
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
/*! \brief Initializes the USB conneciton.
*/
void init_usb(void) void init_usb(void)
{ {