diff options
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/Makefile | 1 | ||||
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/main.c | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F4xx/RTC/Makefile b/testhal/STM32/STM32F4xx/RTC/Makefile index 1ad2388a1..e2a46cc1c 100644 --- a/testhal/STM32/STM32F4xx/RTC/Makefile +++ b/testhal/STM32/STM32F4xx/RTC/Makefile @@ -105,7 +105,6 @@ CSRC = $(PORTSRC) \ $(CHIBIOS)/os/various/syscalls.c \
$(CHIBIOS)/os/various/shell.c \
$(CHIBIOS)/os/various/chprintf.c \
- $(CHIBIOS)/os/various/chrtclib.c \
main.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
diff --git a/testhal/STM32/STM32F4xx/RTC/main.c b/testhal/STM32/STM32F4xx/RTC/main.c index 6b25d371a..5d70ca65d 100644 --- a/testhal/STM32/STM32F4xx/RTC/main.c +++ b/testhal/STM32/STM32F4xx/RTC/main.c @@ -14,6 +14,10 @@ limitations under the License.
*/
+#include "ch.h"
+#include "hal.h"
+
+#if 0
/*
This structure is used to hold the values representing a calendar time.
It contains the following members, with the meanings as shown.
@@ -197,7 +201,7 @@ static const ShellConfig shell_cfg1 = { (BaseSequentialStream *)&SD2,
commands
};
-
+#endif
/**
* Main function.
@@ -206,8 +210,9 @@ int main(void){ halInit();
chSysInit();
- chThdCreateStatic(blinkWA, sizeof(blinkWA), NORMALPRIO, blink_thd, NULL);
+// chThdCreateStatic(blinkWA, sizeof(blinkWA), NORMALPRIO, blink_thd, NULL);
+#if 0
#if !WAKEUP_TEST
/* switch off wakeup */
rtcSetPeriodicWakeup_v2(&RTCD1, NULL);
@@ -232,6 +237,7 @@ int main(void){ chThdSleepSeconds(3);
func_sleep();
#endif /* !WAKEUP_TEST */
+#endif
return 0;
}
|