Skip to content

Commit 4080ab3

Browse files
committed
wrap up ra update
1 parent 960d9fa commit 4080ab3

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
lines changed

.idea/cmake.xml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/kl25.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/stm32g474.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hw/bsp/ra/family.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@ static ioport_instance_ctrl_t port_ctrl;
6363
// Vector Data
6464
//--------------------------------------------------------------------+
6565

66-
void usbfs_interrupt_handler(void);
67-
void usbfs_resume_handler(void);
68-
void usbfs_d0fifo_handler(void);
69-
void usbfs_d1fifo_handler(void);
70-
71-
const fsp_vector_t g_vector_table[BSP_ICU_VECTOR_MAX_ENTRIES] BSP_PLACE_IN_SECTION(BSP_SECTION_APPLICATION_VECTORS) = {
66+
BSP_DONT_REMOVE const fsp_vector_t g_vector_table[BSP_ICU_VECTOR_MAX_ENTRIES] BSP_PLACE_IN_SECTION(BSP_SECTION_APPLICATION_VECTORS) = {
7267
[0] = usbfs_interrupt_handler, /* USBFS INT (USBFS interrupt) */
7368
[1] = usbfs_resume_handler, /* USBFS RESUME (USBFS resume interrupt) */
7469
[2] = usbfs_d0fifo_handler, /* USBFS FIFO 0 (DMA transfer request 0) */

hw/bsp/ra/vector_data.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
/* vector numbers are configurable/dynamic, hence this, it will be used inside the port */
2+
#ifndef VECTOR_DATA_H
3+
#define VECTOR_DATA_H
4+
5+
#ifdef __cplusplus
6+
extern "C" {
7+
#endif
8+
9+
#ifndef VECTOR_DATA_IRQ_COUNT
10+
#define VECTOR_DATA_IRQ_COUNT 4
11+
#endif
12+
13+
/* ISR prototypes */
14+
void usbfs_interrupt_handler(void);
15+
void usbfs_resume_handler(void);
16+
void usbfs_d0fifo_handler(void);
17+
void usbfs_d1fifo_handler(void);
18+
19+
/* Vector table allocations */
220
#define TU_IRQn 0
321
#define USBFS_RESUME_IRQn 1
422
#define USBFS_FIFO_0_IRQn 2
523
#define USBFS_FIFO_1_IRQn 3
24+
25+
#ifdef __cplusplus
26+
}
27+
#endif
28+
29+
#endif

0 commit comments

Comments
 (0)