Skip to content

Commit

Permalink
goldfinsh: fix timer compile issue
Browse files Browse the repository at this point in the history
Signed-off-by: buxiasen <[email protected]>
  • Loading branch information
jasonbu authored and GUIDINGLI committed Oct 7, 2024
1 parent ebcfff1 commit 6b3e18b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/src/goldfish/goldfish_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);

Expand Down
1 change: 1 addition & 0 deletions drivers/timers/goldfish_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <nuttx/irq.h>
#include <nuttx/kmalloc.h>
#include <nuttx/timers/oneshot.h>
#include <nuttx/spinlock.h>

/****************************************************************************
* Pre-processor Definitions
Expand Down

0 comments on commit 6b3e18b

Please sign in to comment.