aboutsummaryrefslogtreecommitdiffstats
path: root/demos/nil
diff options
context:
space:
mode:
Diffstat (limited to 'demos/nil')
-rw-r--r--demos/nil/NIL-STM32L152-DISCOVERY/main.c8
-rw-r--r--demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/demos/nil/NIL-STM32L152-DISCOVERY/main.c b/demos/nil/NIL-STM32L152-DISCOVERY/main.c
index 9f36cc6a7..7f54cdb1c 100644
--- a/demos/nil/NIL-STM32L152-DISCOVERY/main.c
+++ b/demos/nil/NIL-STM32L152-DISCOVERY/main.c
@@ -29,9 +29,9 @@ THD_FUNCTION(Thread1, arg) {
(void)arg;
while (true) {
-// palSetPad(GPIOE, GPIOE_LED3_RED);
+ palSetPad(GPIOB, GPIOB_LED4);
chThdSleepMilliseconds(250);
-// palClearPad(GPIOE, GPIOE_LED3_RED);
+ palClearPad(GPIOB, GPIOB_LED4);
chThdSleepMilliseconds(250);
}
}
@@ -45,9 +45,9 @@ THD_FUNCTION(Thread2, arg) {
(void)arg;
while (true) {
-// palSetPad(GPIOE, GPIOE_LED4_BLUE);
+ palSetPad(GPIOB, GPIOB_LED3);
chThdSleepMilliseconds(500);
-// palClearPad(GPIOE, GPIOE_LED4_BLUE);
+ palClearPad(GPIOB, GPIOB_LED3);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h b/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h
index 5276a3f2a..440d43beb 100644
--- a/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h
+++ b/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h
@@ -41,7 +41,7 @@
/**
* @brief System tick frequency.
*/
-#define NIL_CFG_ST_FREQUENCY 50000
+#define NIL_CFG_ST_FREQUENCY 1000
/**
* @brief Time delta constant for the tick-less mode.