EnableBufferedPort() now run on p_dsd_clk on every audio port config. This is because deliver sets p_dsd_clk low to ensure that stop_clock() completes. This avoids a run time exception when p_dsd_clk is not yet turned on.

This commit is contained in:
Ross Owen
2014-03-27 19:43:59 +00:00
parent 23eaa438a5
commit a9815ca850
2 changed files with 16 additions and 6 deletions

View File

@@ -619,12 +619,17 @@ enum USBEndpointNumber_Out
#define MAX_VOL (0x20000000)
#ifdef SELF_POWERED
#define BMAX_POWER 0
/* Default to taking no power from the bus in self-powered mode */
#ifndef BMAX_POWER
#define BMAX_POWER 0
#endif
#else
#ifndef BMAX_POWER
#define BMAX_POWER 250
#endif
/* Default to taking 500mA from the bus in bus-powered mode */
#ifndef BMAX_POWER
#define BMAX_POWER 250
#endif
#endif