Bedside reader tutorials for LUFA

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A bedside reader is a book or magazine one reads before going to sleep. Usually which outlines a project like building boat or a house, or other complex thing (like a real or model engine or clock.)

I have an old clock repair book which states that these are typically books of plans and projects that one dreams of doing. Something one reads as one falls a sleep imagining performing the step of each task in order ...

I have a lot of MIDI code. Most of which is written in ASM. This uses the MIDI current loop hardware.

Now I am wanting to do more with USB MIDI and do away with the bulky and slow current loop optical transceivers. To this effect I have used commercial MIDI/USB bridges or FTDI serial/MIDI bridge.

LUFA on the other hand promises MIDI HID. Yet there are no getting started or bedside reader tutorials I can find. The auto generated documentation is not of any use. I can read the code if needed to find the API interface. I did download LUFA and it is ginormous where as I only want the MIDI stuff. This is not conducive to short term study between projects or on the side.

Is there a simple cetting started tutorial, which does not spend 99 percent of it's time teaching C make files and libraries?

Simple instructions that tells how to set up a project (preferably in studio 4) without a make file as a pure IDE project? Something like the old Heathkit and Popular mechanics magazines projects I learned from initially? Something I can download as a PDF onto my phone to read and study while traveling and during the commercial breaks of life? That can be digested in 5 to 10 minute chunks?

I am grudgingly using more and more C programming (to communicate with the file system on SD cards.) On the other hand I tend to think in ASM, which means I do not want anything between me and my bits that I want to twiddle.

-julie

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well LUFA is designed for building at the command line. To integrate it into an IDE is possible but fraught. As for learning it. I've found the best way is to use the demo projects and simply use one of those as a template for what you want to do. In the case of MIDI I'd try:

\LUFA-120730\Projects\MIDIToneGenerator
\LUFA-120730\Demos\Device\ClassDriver\MIDI
\LUFA-120730\Demos\Device\ClassDriver\MIDI

In each case just CD in a command prompt to that directory and "make". Read the .txt file in each for a description and study the main .c file in each to see what's going on.

When building don't be concerned that 20-30 files appear to be compiled. Dean basically builds everything then cherry-picks just the bits that are needed at the end.