diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/halconf.h | 22 | ||||
-rwxr-xr-x | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c | 4 |
2 files changed, 22 insertions, 4 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/halconf.h b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/halconf.h index d1d69ab8f..800077363 100644 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/halconf.h +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/halconf.h @@ -34,7 +34,7 @@ * @brief Enables the PAL subsystem.
*/
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
-#define HAL_USE_PAL FALSE
+#define HAL_USE_PAL TRUE
#endif
/**
@@ -178,6 +178,26 @@ #endif
/*===========================================================================*/
+/* PAL driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
+#define PAL_USE_CALLBACKS FALSE
+#endif
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#define PAL_USE_WAIT FALSE
+#endif
+
+/*===========================================================================*/
/* ADC driver related settings. */
/*===========================================================================*/
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c index c0fa19e5f..e06c3471d 100755 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c @@ -27,9 +27,7 @@ static THD_FUNCTION(Thread1, arg) { chRegSetThreadName("blinker");
while (true) {
- PIOA->PIO_PIO_[1].S_PIO_CODR = S_PIO_CODR_P5;
- chThdSleepMilliseconds(500);
- PIOA->PIO_PIO_[1].S_PIO_SODR = S_PIO_SODR_P5;
+ palToggleLine(LINE_LED_BLUE);
chThdSleepMilliseconds(500);
}
}
|