From fe11029a6c6254ef069ab9bcbafed503781fde43 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 5 Jun 2013 10:30:42 +0100 Subject: [PATCH] Fixed build issue with new XN file --- module_usb_audio/reboot.xc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module_usb_audio/reboot.xc b/module_usb_audio/reboot.xc index 920ab879..c10cfa17 100644 --- a/module_usb_audio/reboot.xc +++ b/module_usb_audio/reboot.xc @@ -11,11 +11,11 @@ void device_reboot_implementation(chanend spare) #ifdef ARCH_S /* Disconnect from bus */ unsigned data[] = {4}; - write_periph_32(xs1_su, XS1_SU_PERIPH_USB_ID, XS1_SU_PER_UIFM_FUNC_CONTROL_NUM, 1, data); + write_periph_32(xs1_su_periph, XS1_SU_PERIPH_USB_ID, XS1_SU_PER_UIFM_FUNC_CONTROL_NUM, 1, data); /* Ideally we would reset SU1 here but then we loose power to the xcore and therefore the DFU flag */ /* Disable USB and issue reset to xcore only - not analogue chip */ - write_node_config_reg(xs1_su, XS1_SU_CFG_RST_MISC_NUM,0b10); + write_node_config_reg(xs1_su_periph, XS1_SU_CFG_RST_MISC_NUM,0b10); #else outct(spare, XS1_CT_END); // have to do this before freeing the chanend inct(spare); // Receive end ct from usb_buffer to close down in both directions