Skip to content

Commit b4d5f0e

Browse files
committed
CMSIS: Move non-config includes behind PTIM ifdef
That is to enabled integration with build-it-all Mbed OS type build system. Cherry-picked from CMSIS_5 repo: e8d0a476
1 parent 00a3218 commit b4d5f0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rtos/TARGET_CORTEX/rtx5/Source/os_tick_ptim.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
* limitations under the License.
2323
*/
2424

25-
#include "os_tick.h"
26-
#include "irq_ctrl.h"
27-
2825
#include "RTE_Components.h"
2926
#include CMSIS_device_header
3027

3128
#if defined(PTIM)
3229

30+
#include "os_tick.h"
31+
#include "irq_ctrl.h"
32+
3333
#ifndef PTIM_IRQ_PRIORITY
3434
#define PTIM_IRQ_PRIORITY 0xFFU
3535
#endif
@@ -75,7 +75,7 @@ int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) {
7575
}
7676
prio >>= 1;
7777
}
78-
78+
7979
// Adjust configured priority to the number of implemented priority bits
8080
prio = (PTIM_IRQ_PRIORITY << bits) & 0xFFUL;
8181

0 commit comments

Comments
 (0)