aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/STM32/RT-STM32F746G-DISCOVERY/main.c')
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
index 6db5cde31..5199ddf37 100644
--- a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "ch_test.h"
+//#include "ch_test.h"
/*
* This is a periodic thread that does absolutely nothing except flashing
@@ -29,9 +29,9 @@ static THD_FUNCTION(Thread1, arg) {
chRegSetThreadName("blinker");
while (true) {
palSetLine(LINE_ARD_D13);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(1000);
palClearLine(LINE_ARD_D13);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(1000);
}
}
@@ -64,15 +64,15 @@ int main(void) {
/*
* Creates the example thread.
*/
- chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
+ chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO+1, Thread1, NULL);
/*
* Normal main() thread activity, in this demo it does nothing except
* sleeping in a loop and check the button state.
*/
while (true) {
- if (palReadLine(LINE_BUTTON_USER))
- test_execute((BaseSequentialStream *)&SD1);
- chThdSleepMilliseconds(500);
+// if (palReadLine(LINE_BUTTON_USER))
+// test_execute((BaseSequentialStream *)&SD1);
+ chThdSleepMilliseconds(2000);
}
}