Move Code to get Cortex A tick irqn

Move the function "mbed_get_a9_tick_irqn()" declared in os_tick.h
to SysTimer.h so it does not get overridden when RTX is updated.

This function was originally added in:
3d3e89097d
Fixes for RZ_A1H issue 6543
pull/7875/head
Russ Butler 2018-08-22 15:37:12 -05:00 committed by Russ Butler
parent 2f8e679183
commit 5d0aac53bb
2 changed files with 4 additions and 8 deletions

View File

@ -46,6 +46,10 @@ extern "C" {
extern "C" IRQn_Type mbed_get_m0_tick_irqn(void); extern "C" IRQn_Type mbed_get_m0_tick_irqn(void);
#endif #endif
#if defined(TARGET_CORTEX_A)
extern "C" IRQn_ID_t mbed_get_a9_tick_irqn(void);
#endif
namespace rtos { namespace rtos {
namespace internal { namespace internal {

View File

@ -26,9 +26,6 @@
#define OS_TICK_H #define OS_TICK_H
#include <stdint.h> #include <stdint.h>
#if defined(TARGET_CORTEX_A)
#include "irq_ctrl.h"
#endif
/// IRQ Handler. /// IRQ Handler.
#ifndef IRQHANDLER_T #ifndef IRQHANDLER_T
@ -71,9 +68,4 @@ uint32_t OS_Tick_GetCount (void);
/// \return OS Tick overflow status (1 - overflow, 0 - no overflow). /// \return OS Tick overflow status (1 - overflow, 0 - no overflow).
uint32_t OS_Tick_GetOverflow (void); uint32_t OS_Tick_GetOverflow (void);
/// Get Cortex-A9 OS Timer interrupt number
/// \returns Cortex-A9 OS Timer interrupt number (134)
#if defined(TARGET_CORTEX_A)
IRQn_ID_t mbed_get_a9_tick_irqn(void);
#endif
#endif /* OS_TICK_H */ #endif /* OS_TICK_H */