mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-07 16:13:07 +00:00
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:
@@ -90,12 +90,12 @@ extern rtems_interrupt_lock LEON3_IrqCtrl_Lock;
|
|||||||
#define LEON3_IrqCtrl_Regs ((irqamp *) LEON3_IRQAMP_BASE)
|
#define LEON3_IrqCtrl_Regs ((irqamp *) LEON3_IRQAMP_BASE)
|
||||||
#else
|
#else
|
||||||
extern irqamp *LEON3_IrqCtrl_Regs;
|
extern irqamp *LEON3_IrqCtrl_Regs;
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This pointer provides the IRQ(A)MP device information block.
|
* @brief This pointer provides the IRQ(A)MP device information block.
|
||||||
*/
|
*/
|
||||||
extern struct ambapp_dev *LEON3_IrqCtrl_Adev;
|
extern struct ambapp_dev *LEON3_IrqCtrl_Adev;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This object provides the interrupt number used to multiplex extended
|
* @brief This object provides the interrupt number used to multiplex extended
|
||||||
|
|||||||
@@ -211,12 +211,12 @@ static inline uint32_t leon3_get_cpu_count( const irqamp *regs )
|
|||||||
#define LEON3_Timer_Regs ((gptimer *) LEON3_GPTIMER_BASE)
|
#define LEON3_Timer_Regs ((gptimer *) LEON3_GPTIMER_BASE)
|
||||||
#else
|
#else
|
||||||
extern gptimer *LEON3_Timer_Regs;
|
extern gptimer *LEON3_Timer_Regs;
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This pointer provides the GPTIMER device information block.
|
* @brief This pointer provides the GPTIMER device information block.
|
||||||
*/
|
*/
|
||||||
extern struct ambapp_dev *LEON3_Timer_Adev;
|
extern struct ambapp_dev *LEON3_Timer_Adev;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the processor local bus frequency in Hz.
|
* @brief Gets the processor local bus frequency in Hz.
|
||||||
|
|||||||
Reference in New Issue
Block a user