// you must include the predef of these in the file with your main
// so lets just define them here
-void sudav_isr() __interrupt(SUDAV_ISR);
-void sof_isr() __interrupt(SOF_ISR);
-void sutok_isr() __interrupt(SUTOK_ISR);
-void suspend_isr() __interrupt(SUSPEND_ISR);
-void usbreset_isr() __interrupt(USBRESET_ISR);
-void hispeed_isr() __interrupt(HISPEED_ISR);
-void ep0ack_isr() __interrupt(EP0ACK_ISR);
-void ep0in_isr() __interrupt(EP0IN_ISR);
-void ep0out_isr() __interrupt(EP0OUT_ISR);
-void ep1in_isr() __interrupt(EP1IN_ISR);
-void ep1out_isr() __interrupt(EP1OUT_ISR);
-void ep2_isr() __interrupt(EP2_ISR);
-void ep4_isr() __interrupt(EP4_ISR);
-void ep6_isr() __interrupt(EP6_ISR);
-void ep8_isr() __interrupt(EP8_ISR);
-void ibn_isr() __interrupt(IBN_ISR);
-void ep0ping_isr() __interrupt(EP0PING_ISR);
-void ep1ping_isr() __interrupt(EP1PING_ISR);
-void ep2ping_isr() __interrupt(EP2PING_ISR);
-void ep4ping_isr() __interrupt(EP4PING_ISR);
-void ep6ping_isr() __interrupt(EP6PING_ISR);
-void ep8ping_isr() __interrupt(EP8PING_ISR);
-void errlimit_isr() __interrupt(ERRLIMIT_ISR);
-void ep2isoerr_isr() __interrupt(EP2ISOERR_ISR);
-void ep4isoerr_isr() __interrupt(EP4ISOERR_ISR);
-void ep6isoerr_isr() __interrupt(EP6ISOERR_ISR);
-void ep8isoerr_isr() __interrupt(EP8ISOERR_ISR);
-void spare_isr() __interrupt(RESERVED_ISR); // not used
+void sudav_isr(void) __interrupt(SUDAV_ISR);
+void sof_isr(void) __interrupt(SOF_ISR);
+void sutok_isr(void) __interrupt(SUTOK_ISR);
+void suspend_isr(void) __interrupt(SUSPEND_ISR);
+void usbreset_isr(void) __interrupt(USBRESET_ISR);
+void hispeed_isr(void) __interrupt(HISPEED_ISR);
+void ep0ack_isr(void) __interrupt(EP0ACK_ISR);
+void ep0in_isr(void) __interrupt(EP0IN_ISR);
+void ep0out_isr(void) __interrupt(EP0OUT_ISR);
+void ep1in_isr(void) __interrupt(EP1IN_ISR);
+void ep1out_isr(void) __interrupt(EP1OUT_ISR);
+void ep2_isr(void) __interrupt(EP2_ISR);
+void ep4_isr(void) __interrupt(EP4_ISR);
+void ep6_isr(void) __interrupt(EP6_ISR);
+void ep8_isr(void) __interrupt(EP8_ISR);
+void ibn_isr(void) __interrupt(IBN_ISR);
+void ep0ping_isr(void) __interrupt(EP0PING_ISR);
+void ep1ping_isr(void) __interrupt(EP1PING_ISR);
+void ep2ping_isr(void) __interrupt(EP2PING_ISR);
+void ep4ping_isr(void) __interrupt(EP4PING_ISR);
+void ep6ping_isr(void) __interrupt(EP6PING_ISR);
+void ep8ping_isr(void) __interrupt(EP8PING_ISR);
+void errlimit_isr(void) __interrupt(ERRLIMIT_ISR);
+void ep2isoerr_isr(void) __interrupt(EP2ISOERR_ISR);
+void ep4isoerr_isr(void) __interrupt(EP4ISOERR_ISR);
+void ep6isoerr_isr(void) __interrupt(EP6ISOERR_ISR);
+void ep8isoerr_isr(void) __interrupt(EP8ISOERR_ISR);
+void spare_isr(void) __interrupt(RESERVED_ISR); // not used
// gpif ints
-void ep2pf_isr() __interrupt(EP2PF_ISR);
-void ep4pf_isr() __interrupt(EP4PF_ISR);
-void ep6pf_isr() __interrupt(EP6PF_ISR);
-void ep8pf_isr() __interrupt(EP8PF_ISR);
-void ep2ef_isr() __interrupt(EP2EF_ISR);
-void ep4ef_isr() __interrupt(EP4EF_ISR);
-void ep6ef_isr() __interrupt(EP6EF_ISR);
-void ep8ef_isr() __interrupt(EP8EF_ISR);
-void ep2ff_isr() __interrupt(EP2FF_ISR);
-void ep4ff_isr() __interrupt(EP4FF_ISR);
-void ep6ff_isr() __interrupt(EP6FF_ISR);
-void ep8ff_isr() __interrupt(EP8FF_ISR);
-void gpifdone_isr() __interrupt(GPIFDONE_ISR);
-void gpifwf_isr() __interrupt(GPIFWF_ISR);
+void ep2pf_isr(void) __interrupt(EP2PF_ISR);
+void ep4pf_isr(void) __interrupt(EP4PF_ISR);
+void ep6pf_isr(void) __interrupt(EP6PF_ISR);
+void ep8pf_isr(void) __interrupt(EP8PF_ISR);
+void ep2ef_isr(void) __interrupt(EP2EF_ISR);
+void ep4ef_isr(void) __interrupt(EP4EF_ISR);
+void ep6ef_isr(void) __interrupt(EP6EF_ISR);
+void ep8ef_isr(void) __interrupt(EP8EF_ISR);
+void ep2ff_isr(void) __interrupt(EP2FF_ISR);
+void ep4ff_isr(void) __interrupt(EP4FF_ISR);
+void ep6ff_isr(void) __interrupt(EP6FF_ISR);
+void ep8ff_isr(void) __interrupt(EP8FF_ISR);
+void gpifdone_isr(void) __interrupt(GPIFDONE_ISR);
+void gpifwf_isr(void) __interrupt(GPIFWF_ISR);
#endif
extern BOOL handle_set_configuration(BYTE cfg);
extern BOOL handle_get_interface(BYTE ifc, BYTE* alt_ifc);
extern BOOL handle_set_interface(BYTE ifc,BYTE alt_ifc);
-extern BYTE handle_get_configuration();
+extern BYTE handle_get_configuration(void);
extern BOOL handle_set_configuration(BYTE cfg);
extern void handle_reset_ep(BYTE ep);
// GET_STATUS,
-BOOL handle_get_status();
+BOOL handle_get_status(void);
// CLEAR_FEATURE,
-BOOL handle_clear_feature();
+BOOL handle_clear_feature(void);
// 0x02 is reserved
// SET_FEATURE=0x03,
-BOOL handle_set_feature();
+BOOL handle_set_feature(void);
// 0x04 is reserved
// SET_ADDRESS=0x05, // this is handled by EZ-USB core unless RENUM=0
// GET_DESCRIPTOR,
-void handle_get_descriptor();
+void handle_get_descriptor(void);
// SET_DESCRIPTOR,
// GET_CONFIGURATION, // handled by callback
// SET_CONFIGURATION, // handled by callback
handshake
*/
-void handle_setupdata() {
+void handle_setupdata(void) {
//printf ( "Handle setupdat: %02x\n", SETUPDAT[1] );
switch ( SETUPDAT[1] ) {
volatile BOOL self_powered=FALSE;
volatile BOOL remote_wakeup_allowed=FALSE;
-BOOL handle_get_status() {
+BOOL handle_get_status(void) {
switch ( SETUPDAT[0] ) {
#define GF_DEVICE 0
#define GF_ENDPOINT 2
-BOOL handle_clear_feature() {
+BOOL handle_clear_feature(void) {
//printf ( "Clear Feature\n" );
switch ( SETUPDAT[0] ) {
case GF_DEVICE:
return TRUE;
}
-BOOL handle_set_feature() {
+BOOL handle_set_feature(void) {
printf ( "Set Feature %02x\n", SETUPDAT[0] );
switch ( SETUPDAT[0] ) {
case GF_DEVICE:
* String
* Other-Speed
**/
-void handle_get_descriptor() {
+void handle_get_descriptor(void) {
//printf ( "Get Descriptor\n" );
switch ( SETUPDAT[3] ) {