goldfinsh: fix timer compile issue

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen 2024-07-16 22:22:51 +08:00 committed by Xiang Xiao
parent e7094ec40a
commit a6b12eb29c
2 changed files with 4 additions and 1 deletions

View file

@ -23,9 +23,11 @@
****************************************************************************/
#include <nuttx/timers/arch_alarm.h>
#include <nuttx/timers/goldfish_timer.h>
#include <nuttx/fdt.h>
#include "arm_timer.h"
#include "chip.h"
/****************************************************************************
* Public Functions
@ -41,7 +43,7 @@ void up_timer_initialize(void)
lower = goldfish_timer_initialize(
fdt_get_reg_base_by_path(fdt, "/goldfish_rtc"),
fdt_get_irq_by_path(fdt, "/goldfish_rtc"), QEMU_SPI_IRQ_BASE);
fdt_get_irq_by_path(fdt, "/goldfish_rtc", QEMU_SPI_IRQ_BASE));
DEBUGASSERT(lower != NULL);

View file

@ -27,6 +27,7 @@
#include <nuttx/irq.h>
#include <nuttx/kmalloc.h>
#include <nuttx/timers/oneshot.h>
#include <nuttx/spinlock.h>
/****************************************************************************
* Pre-processor Definitions