| 
									
										
										
										
											2023-03-16 22:39:00 +07:00
										 |  |  | /* vector numbers are configurable/dynamic, hence this, it will be used inside the port */ | 
					
						
							| 
									
										
										
										
											2023-07-03 11:22:19 +07:00
										 |  |  | #ifndef VECTOR_DATA_H
 | 
					
						
							|  |  |  | #define VECTOR_DATA_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* ISR prototypes */ | 
					
						
							|  |  |  | void usbfs_interrupt_handler(void); | 
					
						
							|  |  |  | void usbfs_resume_handler(void); | 
					
						
							|  |  |  | void usbfs_d0fifo_handler(void); | 
					
						
							|  |  |  | void usbfs_d1fifo_handler(void); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-05 17:13:01 +07:00
										 |  |  | #ifdef BOARD_HAS_USB_HIGHSPEED
 | 
					
						
							|  |  |  | void usbhs_interrupt_handler(void); | 
					
						
							|  |  |  | void usbhs_d0fifo_handler(void); | 
					
						
							|  |  |  | void usbhs_d1fifo_handler(void); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-03 11:22:19 +07:00
										 |  |  | /* Vector table allocations */ | 
					
						
							| 
									
										
										
										
											2023-07-03 13:09:43 +07:00
										 |  |  | #define USBFS_INT_IRQn    0
 | 
					
						
							| 
									
										
										
										
											2023-03-16 22:39:00 +07:00
										 |  |  | #define USBFS_RESUME_IRQn 1
 | 
					
						
							|  |  |  | #define USBFS_FIFO_0_IRQn 2
 | 
					
						
							|  |  |  | #define USBFS_FIFO_1_IRQn 3
 | 
					
						
							| 
									
										
										
										
											2023-07-03 11:22:19 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-05 17:13:01 +07:00
										 |  |  | #define USBHS_USB_INT_RESUME_IRQn  4 /* USBHS USB INT RESUME (USBHS interrupt) */
 | 
					
						
							|  |  |  | #define USBHS_FIFO_0_IRQn          5 /* USBHS FIFO 0 (DMA transfer request 0) */
 | 
					
						
							|  |  |  | #define USBHS_FIFO_1_IRQn          6 /* USBHS FIFO 1 (DMA transfer request 1) */
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-03 11:22:19 +07:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |