Skip to content

Commit eaa7ca6

Browse files
committed
mimxrt/systick: Clean up header file includes.
`systick.h` and `pendsv.h` both use MICROPY-level configuration macros, so must include `py/mpconfig.h`. Signed-off-by: Damien George <damien@micropython.org>
1 parent 829d770 commit eaa7ca6

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

ports/mimxrt/pendsv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#ifndef MICROPY_INCLUDED_MIMXRT_PENDSV_H
2727
#define MICROPY_INCLUDED_MIMXRT_PENDSV_H
2828

29+
#include "py/mpconfig.h"
30+
2931
enum {
3032
PENDSV_DISPATCH_SOFT_TIMER, // For later & for having at least one entry
3133
#if MICROPY_PY_NETWORK && MICROPY_PY_LWIP

ports/mimxrt/systick.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include "py/runtime.h"
28-
#include "py/mphal.h"
2927
#include "systick.h"
30-
3128
#include "pendsv.h"
3229
#include "shared/runtime/softtimer.h"
3330

ports/mimxrt/systick.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#ifndef MICROPY_INCLUDED_MIMXRT_SYSTICK_H
2727
#define MICROPY_INCLUDED_MIMXRT_SYSTICK_H
2828

29+
#include "py/mpconfig.h"
30+
2931
// Works for x between 0 and 16 inclusive
3032
#define POW2_CEIL(x) ((((x) - 1) | ((x) - 1) >> 1 | ((x) - 1) >> 2 | ((x) - 1) >> 3) + 1)
3133

0 commit comments

Comments
 (0)