From 6a0ac4e3210d61d760efd62a5a0b9a288fb09f81 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Fri, 17 Jan 2014 11:29:23 +0000 Subject: [PATCH] XUD_ON_U_SERIES updated to XUD_SERIES_SUPPORT --- module_usb_audio/reboot.xc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module_usb_audio/reboot.xc b/module_usb_audio/reboot.xc index 5aa9ba76..ace0b64a 100644 --- a/module_usb_audio/reboot.xc +++ b/module_usb_audio/reboot.xc @@ -10,8 +10,9 @@ unsigned get_tile_id(tileref); extern tileref tile[]; -void device_reboot_aux(void) { -#ifdef XUD_ON_U_SERIES +void device_reboot_aux(void) +{ +#if (XUD_SERIES_SUPPORT == 1) /* Disconnect from bus */ unsigned data[] = {4}; write_periph_32(usb_tile, XS1_SU_PERIPH_USB_ID, XS1_SU_PER_UIFM_FUNC_CONTROL_NUM, 1, data); @@ -51,7 +52,7 @@ void device_reboot_aux(void) { /* Reboots XMOS device by writing to the PLL config register */ void device_reboot_implementation(chanend spare) { -#ifndef XUD_ON_U_SERIES +#if (XUD_SERIES_SUPPORT != 1) 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