mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 07:25:13 +00:00
goldfinsh: fix timer compile issue
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
e7094ec40a
commit
a6b12eb29c
2 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <nuttx/irq.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/timers/oneshot.h>
|
||||
#include <nuttx/spinlock.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue