forked from PAWPAW-Mirror/lib_xua
Merge pull request #23 from larry-xmos/vf_2.0.1_alpha_merge
Merge back VocalFusion 2.0.1 release branch
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -21,3 +21,4 @@ module_dfu/host/xmosdfu/xmosdfu
|
|||||||
.lock-waf_*
|
.lock-waf_*
|
||||||
.waf-*/
|
.waf-*/
|
||||||
build/
|
build/
|
||||||
|
host/xmosdfu/xmosdfu
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ lib_xua Change Log
|
|||||||
so it shows up with a descriptive name in Windows Device Manager
|
so it shows up with a descriptive name in Windows Device Manager
|
||||||
- CHANGE: DFU_BCD_DEVICE removed (now uses BCD_DEVICE)
|
- CHANGE: DFU_BCD_DEVICE removed (now uses BCD_DEVICE)
|
||||||
- CHANGE: Renaming in descriptors.h to avoid clashes with application
|
- CHANGE: Renaming in descriptors.h to avoid clashes with application
|
||||||
|
- CHANGE: Make device reboot function no-argument (was one channel end)
|
||||||
- RESOLVED: FIR gain compensation for PDM mics set incorrectly for divide of 8
|
- RESOLVED: FIR gain compensation for PDM mics set incorrectly for divide of 8
|
||||||
- RESOLVED: Incorrect xmosdfu DYLD path in test script code
|
- RESOLVED: Incorrect xmosdfu DYLD path in test script code
|
||||||
- RESOLVED: xmosdfu cannot find XMOS device on modern MacBook Pro (#17897)
|
- RESOLVED: xmosdfu cannot find XMOS device on modern MacBook Pro (#17897)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
#if (XUA_DFU_EN == 1)
|
#if (XUA_DFU_EN == 1)
|
||||||
#include "xua_dfu.h"
|
#include "xua_dfu.h"
|
||||||
#define DFU_IF_NUM INPUT_INTERFACES + OUTPUT_INTERFACES + MIDI_INTERFACES + 1
|
#define DFU_IF_NUM INPUT_INTERFACES + OUTPUT_INTERFACES + MIDI_INTERFACES + 1
|
||||||
extern void device_reboot(chanend);
|
extern void device_reboot(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned int DFU_mode_active = 0; // 0 - App active, 1 - DFU active
|
unsigned int DFU_mode_active = 0; // 0 - App active, 1 - DFU active
|
||||||
@@ -579,7 +579,7 @@ void XUA_Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
if(reset)
|
if(reset)
|
||||||
{
|
{
|
||||||
DFUDelay(50000000);
|
DFUDelay(50000000);
|
||||||
device_reboot(c_audioControl);
|
device_reboot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -794,7 +794,7 @@ void XUA_Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
|
|
||||||
/* Send reboot command */
|
/* Send reboot command */
|
||||||
DFUDelay(5000000);
|
DFUDelay(5000000);
|
||||||
device_reboot(c_audioControl);
|
device_reboot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#include <xs1.h>
|
#include <xs1.h>
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
|
#include <print.h>
|
||||||
#include <xs1_su.h>
|
#include <xs1_su.h>
|
||||||
|
|
||||||
#define XS1_SU_PERIPH_USB_ID 0x1
|
#define XS1_SU_PERIPH_USB_ID 0x1
|
||||||
@@ -30,8 +31,10 @@ static void reset_tile(unsigned const tileId)
|
|||||||
write_sswitch_reg_no_ack(tileId, 6, pllVal);
|
write_sswitch_reg_no_ack(tileId, 6, pllVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Note - resetting is per *node* not tile */
|
/* Reboots XMOS device by writing to the PLL config register
|
||||||
static inline void device_reboot_aux(void)
|
* Note - resetting is per *node* not tile
|
||||||
|
*/
|
||||||
|
void device_reboot(void)
|
||||||
{
|
{
|
||||||
#if (XUD_SERIES_SUPPORT == 1)
|
#if (XUD_SERIES_SUPPORT == 1)
|
||||||
/* Disconnect from bus */
|
/* Disconnect from bus */
|
||||||
@@ -72,10 +75,10 @@ static inline void device_reboot_aux(void)
|
|||||||
|
|
||||||
#ifdef __XS2A__
|
#ifdef __XS2A__
|
||||||
/* Reset all even tiles, starting from the remote ones */
|
/* Reset all even tiles, starting from the remote ones */
|
||||||
for(unsigned int tileNum = tileArrayLength-2; tileNum>=0; tileNum-=2)
|
for(int tileNum = tileArrayLength-2; tileNum>=0; tileNum-=2)
|
||||||
#else
|
#else
|
||||||
/* Reset all tiles, starting from the remote ones */
|
/* Reset all tiles, starting from the remote ones */
|
||||||
for(unsigned int tileNum = tileArrayLength-1; tileNum>=0; tileNum--)
|
for(int tileNum = tileArrayLength-1; tileNum>=0; tileNum--)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* Cannot cast tileref to unsigned! */
|
/* Cannot cast tileref to unsigned! */
|
||||||
@@ -96,11 +99,6 @@ static inline void device_reboot_aux(void)
|
|||||||
/* Finally reboot the node this tile resides on */
|
/* Finally reboot the node this tile resides on */
|
||||||
reset_tile(localTileId);
|
reset_tile(localTileId);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
/* Reboots XMOS device by writing to the PLL config register */
|
|
||||||
void device_reboot(chanend spare)
|
|
||||||
{
|
|
||||||
device_reboot_aux();
|
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user