FS#12082 - Attempt to add IAP support to the nano 2g
Attached patch attempts to add iPod Accessory Protocol (IAP) support for the ipod nano2g.
I can't test this myself because I have neither an ipod nano 2g nor an accessory.
The patch basically just adds a serial driver and sends all data to the iap handler.
Automatic bit rate detection is not implemented.
Things that have not been figured out yet:
* is the bit rate calculation correct? currently the patch uses PCLK (48 MHz) for bit rate generation. We could also use UCLK, but I don't know how fast that runs.
* are we using the proper UART? the patch assumes UART0 is used, but we could also try UART1.
* maybe there is some other thing that's needed to actually to enable the UART connection to the dock/accessory (this is the case on older ipods). The patches assumes this is not needed.
* no idea if I got the ADC channel for the accessory power right (the code for the ipod radio remote needs this), so I made a guess.
This task depends upon