Fixed build issue with new XN file

This commit is contained in:
Ross Owen
2013-06-05 10:30:42 +01:00
parent 886de9846f
commit fe11029a6c

View File

@@ -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