aboutsummaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-28 15:18:26 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-28 15:18:26 +0000
commit3f57f313a16cc756b46e2f07e1e8ef99a9dc174e (patch)
tree52871679f64d7f67529f037fadfeb242b5f2f1ad /nuttx
parent0464a6d9be334e10c7f510f8ef29112e209264e5 (diff)
downloadpx4-firmware-3f57f313a16cc756b46e2f07e1e8ef99a9dc174e.tar.gz
px4-firmware-3f57f313a16cc756b46e2f07e1e8ef99a9dc174e.tar.bz2
px4-firmware-3f57f313a16cc756b46e2f07e1e8ef99a9dc174e.zip
PM update; NSH extension to catch return values
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4987 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/configs/stm3210e-eval/src/up_idle.c11
-rw-r--r--nuttx/configs/stm3210e-eval/src/up_lcd.c6
2 files changed, 9 insertions, 8 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_idle.c b/nuttx/configs/stm3210e-eval/src/up_idle.c
index b412aa5a9..296b48efc 100644
--- a/nuttx/configs/stm3210e-eval/src/up_idle.c
+++ b/nuttx/configs/stm3210e-eval/src/up_idle.c
@@ -122,9 +122,8 @@
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static volatile bool g_alarmwakeup;
+static volatile bool g_alarmwakeup; /* Wakeup Alarm indicator */
#endif
-
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -159,7 +158,7 @@ static void up_alarmcb(void)
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static void up_alarm_exti(int irq, FAR void *context);
+static int up_alarm_exti(int irq, FAR void *context)
{
up_alarmcb();
return OK;
@@ -175,7 +174,7 @@ static void up_alarm_exti(int irq, FAR void *context);
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static void up_exti_cancel(void);
+static void up_exti_cancel(void)
{
(void)stm32_exti_alarm(false, false, false, NULL);
}
@@ -190,7 +189,7 @@ static void up_exti_cancel(void);
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static int int up_rtc_alarm(int irq, FAR void *context);
+static int up_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
{
struct timespec alarmtime;
int ret;
@@ -201,7 +200,7 @@ static int int up_rtc_alarm(int irq, FAR void *context);
{
/* TODO: Make sure that that is no pending EXTI interrupt */
- stm32_exti_alarm(true, true, true, up_alarm_exti);
+ (void)stm32_exti_alarm(true, true, true, up_alarm_exti);
}
/* Configure the RTC alarm to Auto Wake the system */
diff --git a/nuttx/configs/stm3210e-eval/src/up_lcd.c b/nuttx/configs/stm3210e-eval/src/up_lcd.c
index 6f50323ed..8b832aafb 100644
--- a/nuttx/configs/stm3210e-eval/src/up_lcd.c
+++ b/nuttx/configs/stm3210e-eval/src/up_lcd.c
@@ -1238,8 +1238,10 @@ static void stm3210e_pm_notify(struct pm_callback_s *cb , enum pm_state_e pmstat
stm3210e_writereg(LCD_REG_59, 0x00); /* Gate scan stop */
}
-// Does this belong here?
- (void)stm3210e_poweroff();
+ else
+ {
+ (void)stm3210e_poweroff();
+ }
}
break;