mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
bsp/arm/tms570: Use BSP_INTERRUPT_VECTOR_COUNT in place of magic number
- replaces the hard-coded VIM vector table initialization limit (magic number) with the already defined constant BSP_INTERRUPT_VECTOR_COUNT
This commit is contained in:
1 parent
0348f79b45
commit
2b34f4d35f
2 files changed
+5
-1
No files matched your search
@@ -128,6 +128,10 @@
|
||||
#define TMS570_IRQ_DCC2_DONE_INTERRUPT 83
|
||||
#define TMS570_IRQ_HWAG1_INT_REQ_L 88
|
||||
#define TMS570_IRQ_HWAG2_INT_REQ_L 89
|
||||
/*
|
||||
* The LC4357 VIM supports 128 interrupt request channels,
|
||||
* but this BSP currently only supports channels 0-94.
|
||||
*/
|
||||
#define BSP_INTERRUPT_VECTOR_COUNT 95
|
||||
|
||||
#define TMS570_IRQ_PRIORITY_VALUE_MIN 0U
|
||||
|
||||
@@ -382,7 +382,7 @@ void bsp_interrupt_facility_initialize(void)
|
||||
TMS570_VIM_ECCCTL_ECCENA( TMS570_VIM_ECCCTL_ECC_ENABLE );
|
||||
#endif
|
||||
|
||||
for ( i = 0; i <= 94; ++i ) {
|
||||
for ( i = 0; i < BSP_INTERRUPT_VECTOR_COUNT; ++i ) {
|
||||
vim_vec[i] = _ARMV4_Exception_interrupt;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user