bsp/leon3: Make declarations conditional

The LEON3_IrqCtrl_Adev object is only defined if LEON3_IRQAMP_BASE is
not defined.

The LEON3_Timer_Adev object is only defined if LEON3_GPTIMER_BASE is not
defined.

Close #4850.
This commit is contained in:
Sebastian Huber
2023-07-28 07:47:52 +02:00
parent c1cad595af
commit c173f0581a
2 changed files with 2 additions and 2 deletions

View File

@@ -90,12 +90,12 @@ extern rtems_interrupt_lock LEON3_IrqCtrl_Lock;
#define LEON3_IrqCtrl_Regs ((irqamp *) LEON3_IRQAMP_BASE)
#else
extern irqamp *LEON3_IrqCtrl_Regs;
#endif
/**
* @brief This pointer provides the IRQ(A)MP device information block.
*/
extern struct ambapp_dev *LEON3_IrqCtrl_Adev;
#endif
/**
* @brief This object provides the interrupt number used to multiplex extended

View File

@@ -211,12 +211,12 @@ static inline uint32_t leon3_get_cpu_count( const irqamp *regs )
#define LEON3_Timer_Regs ((gptimer *) LEON3_GPTIMER_BASE)
#else
extern gptimer *LEON3_Timer_Regs;
#endif
/**
* @brief This pointer provides the GPTIMER device information block.
*/
extern struct ambapp_dev *LEON3_Timer_Adev;
#endif
/**
* @brief Gets the processor local bus frequency in Hz.