Added support to the MIDI Class drivers for packed data, where multiple MIDI events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour.
This commit is contained in:
parent
60e9641222
commit
d97db1120b
13 changed files with 113 additions and 14 deletions
|
@ -226,6 +226,9 @@ void XPROGTarget_EnableTargetTPI(void)
|
|||
/** Disables the target's PDI interface, exits programming mode and starts the target's application. */
|
||||
void XPROGTarget_DisableTargetPDI(void)
|
||||
{
|
||||
/* Switch to Rx mode to ensure that all pending transmissions are complete */
|
||||
XPROGTarget_SetRxMode();
|
||||
|
||||
#if defined(XPROG_VIA_HARDWARE_USART)
|
||||
/* Turn off receiver and transmitter of the USART, clear settings */
|
||||
UCSR1A |= (1 << TXC1) | (1 << RXC1);
|
||||
|
@ -249,6 +252,9 @@ void XPROGTarget_DisableTargetPDI(void)
|
|||
/** Disables the target's TPI interface, exits programming mode and starts the target's application. */
|
||||
void XPROGTarget_DisableTargetTPI(void)
|
||||
{
|
||||
/* Switch to Rx mode to ensure that all pending transmissions are complete */
|
||||
XPROGTarget_SetRxMode();
|
||||
|
||||
#if defined(XPROG_VIA_HARDWARE_USART)
|
||||
/* Turn off receiver and transmitter of the USART, clear settings */
|
||||
UCSR1A |= (1 << TXC1) | (1 << RXC1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue