mimxrt: Improve ticks and sleep functions using GPT.

SysTick cannot wake the CPU from WFI/WFE so a hardware timer is needed to
keep track of ticks/delay (similar to the nrf port).

Fixes issue #7234.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-05-16 13:27:54 +10:00
parent 452fa3f8d4
commit 7408ca1d78
7 changed files with 189 additions and 27 deletions

View File

@@ -32,6 +32,7 @@
#include "py/stackctrl.h"
#include "lib/utils/gchelper.h"
#include "lib/utils/pyexec.h"
#include "ticks.h"
#include "tusb.h"
#include "led.h"
@@ -41,6 +42,7 @@ void board_init(void);
int main(void) {
board_init();
ticks_init();
tusb_init();
led_init();