1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2011 by Martin Schmoelzer *
5 * <martin.schmoelzer@student.tuwien.ac.at> *
6 ***************************************************************************/
14 extern void sudav_isr(void) __interrupt SUDAV_ISR;
15 extern void sof_isr(void) __interrupt;
16 extern void sutok_isr(void) __interrupt;
17 extern void suspend_isr(void) __interrupt;
18 extern void usbreset_isr(void) __interrupt;
19 extern void ibn_isr(void) __interrupt;
20 extern void ep0in_isr(void) __interrupt;
21 extern void ep0out_isr(void) __interrupt;
22 extern void ep1in_isr(void) __interrupt;
23 extern void ep1out_isr(void) __interrupt;
24 extern void ep2in_isr(void) __interrupt;
25 extern void ep2out_isr(void) __interrupt;
26 extern void ep3in_isr(void) __interrupt;
27 extern void ep3out_isr(void) __interrupt;
28 extern void ep4in_isr(void) __interrupt;
29 extern void ep4out_isr(void) __interrupt;
30 extern void ep5in_isr(void) __interrupt;
31 extern void ep5out_isr(void) __interrupt;
32 extern void ep6in_isr(void) __interrupt;
33 extern void ep6out_isr(void) __interrupt;
34 extern void ep7in_isr(void) __interrupt;
35 extern void ep7out_isr(void) __interrupt;
39 /* PORTxCFG register bits select alternate functions (1 == alternate function,
41 * OEx register bits turn on/off output buffer (1 == output, 0 == input)
42 * OUTx register bits determine pin state of output
43 * PINx register bits reflect pin state (high == 1, low == 0) */
47 OEA = PIN_U_OE | PIN_OE | PIN_RUN_LED | PIN_COM_LED;
48 OUTA = PIN_RUN_LED | PIN_COM_LED;
52 OEB = PIN_TDI | PIN_TMS | PIN_TCK | PIN_TRST | PIN_BRKIN | PIN_RESET
55 /* TRST and RESET signals are low-active but inverted by hardware, so we clear
56 * these signals here! */
61 OEC = PIN_TXD0 | PIN_WR;
70 /* Enable Interrupts */
73 /* Begin executing command(s). This function never returns. */
76 /* Never reached, but SDCC complains about missing return statement */