mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
Fix a couple of problems introduced in review of commit 06e27e5547.
This commit is contained in:
committed by
Gregory Nutt
parent
e5ea84c1ff
commit
0344e017f9
@@ -92,12 +92,9 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_TIMER),y)
|
||||
CHIP_CSRCS += pic32mz-timer.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TIMER),y)
|
||||
CHIP_CSRCS += pic32mz-timer-lowerhalf.c
|
||||
else ifeq ($(CONFIG_PIC32MZ_ONESHOT),y)
|
||||
CHIP_CSRCS += pic32mz-timer-lowerhalf.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_FREERUN),y)
|
||||
@@ -106,6 +103,9 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_ONESHOT),y)
|
||||
CHIP_CSRCS += pic32mz-oneshot.c
|
||||
ifeq ($(CONFIG_ONESHOT),y)
|
||||
CHIP_CSRCS += pic32mz-oneshot-lowerhalf.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
||||
|
||||
@@ -773,7 +773,7 @@ static void pic32mz_timer_extclocksource(FAR struct pic32mz_timer_dev_s *dev,
|
||||
bool enable)
|
||||
{
|
||||
FAR struct pic32mz_timer_priv_s *priv =
|
||||
(FAR truct pic32mz_timer_priv_s *)dev;
|
||||
(FAR struct pic32mz_timer_priv_s *)dev;
|
||||
|
||||
if (enable)
|
||||
{
|
||||
@@ -1161,7 +1161,10 @@ static bool pic32mz_timer_checkint(FAR struct pic32mz_timer_dev_s *dev)
|
||||
}
|
||||
else
|
||||
{
|
||||
return up_pending_irq(((FAR structpic32mz_timer_priv_s *)dev)->config->irq);
|
||||
FAR struct pic32mz_timer_priv_s *priv =
|
||||
(FAR struct pic32mz_timer_priv_s *)dev;
|
||||
|
||||
return up_pending_irq(priv->config->irq);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user