support ra2a1 pipe numbering, fix ra2a1 ek led/button. Though usb not enumerated yet, probably due to bsp/clock setup
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define LED1 BSP_IO_PORT_01_PIN_06
|
||||
#define LED1 BSP_IO_PORT_02_PIN_05
|
||||
#define LED_STATE_ON 1
|
||||
|
||||
#define SW1 BSP_IO_PORT_01_PIN_05
|
||||
#define SW1 BSP_IO_PORT_02_PIN_06
|
||||
#define BUTTON_STATE_ACTIVE 0
|
||||
|
||||
static const ioport_pin_cfg_t board_pin_cfg[] = {
|
||||
|
@@ -64,8 +64,11 @@ BSP_DONT_REMOVE BSP_PLACE_IN_SECTION(BSP_SECTION_APPLICATION_VECTORS)
|
||||
const fsp_vector_t g_vector_table[BSP_ICU_VECTOR_MAX_ENTRIES] = {
|
||||
[0] = usbfs_interrupt_handler, /* USBFS INT (USBFS interrupt) */
|
||||
[1] = usbfs_resume_handler, /* USBFS RESUME (USBFS resume interrupt) */
|
||||
|
||||
#ifndef BSP_MCU_GROUP_RA2A1
|
||||
[2] = usbfs_d0fifo_handler, /* USBFS FIFO 0 (DMA transfer request 0) */
|
||||
[3] = usbfs_d1fifo_handler, /* USBFS FIFO 1 (DMA transfer request 1) */
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_HAS_USB_HIGHSPEED
|
||||
[4] = usbhs_interrupt_handler, /* USBHS INT (USBHS interrupt) */
|
||||
|
@@ -9,8 +9,11 @@ extern "C" {
|
||||
/* ISR prototypes */
|
||||
void usbfs_interrupt_handler(void);
|
||||
void usbfs_resume_handler(void);
|
||||
|
||||
#ifndef BSP_MCU_GROUP_RA2A1
|
||||
void usbfs_d0fifo_handler(void);
|
||||
void usbfs_d1fifo_handler(void);
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_HAS_USB_HIGHSPEED
|
||||
void usbhs_interrupt_handler(void);
|
||||
|
Reference in New Issue
Block a user