From a717344e07d4ba1fde86cc1008928adf38ec2b0a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 21 Aug 2013 02:53:51 +0000 Subject: some test for mpu git-svn-id: https://svn.spreadspace.org/mur.sat@833 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/mpu/main.c | 17 ++++++----------- 1 file 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); } } -- cgit v1.2.3