summaryrefslogtreecommitdiff
path: root/software/mpu/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/mpu/main.c')
-rw-r--r--software/mpu/main.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/software/mpu/main.c b/software/mpu/main.c
index c58cf59..88691ab 100644
--- a/software/mpu/main.c
+++ b/software/mpu/main.c
@@ -21,16 +21,16 @@
/*
* Red LED blinker thread, times are in milliseconds.
*/
-static WORKING_AREA(waThread1, 128);
-static msg_t Thread1(void *arg) {
+static WORKING_AREA(waHeartbeat, 128);
+static msg_t Heartbeat(void *arg) {
(void)arg;
chRegSetThreadName("blinker");
while (TRUE) {
palClearPad(GPIOA, GPIOA_LED);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(100);
palSetPad(GPIOA, GPIOA_LED);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(900);
}
}
@@ -57,18 +57,13 @@ int main(void) {
/*
* Creates the blinker thread.
*/
- chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
-
- /*
- * run tests after initialization is complete
- */
- TestThread(&SD2);
+ chThdCreateStatic(waHeartbeat, sizeof(waHeartbeat), NORMALPRIO, Heartbeat, NULL);
/*
* Normal main() thread activity, in this demo it does nothing except
* sleeping in a loop.
*/
while (TRUE) {
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(10000);
}
}