diff options
author | Christian Pointner <equinox@mur.at> | 2013-08-21 02:53:51 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-08-21 02:53:51 +0000 |
commit | a717344e07d4ba1fde86cc1008928adf38ec2b0a (patch) | |
tree | 70cb2f45bc450deed314ec54743354cf396ff81e /software/mpu/main.c | |
parent | added reset func for rda1846dongle (diff) |
some test for mpu
git-svn-id: https://svn.spreadspace.org/mur.sat@833 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu/main.c')
-rw-r--r-- | software/mpu/main.c | 17 |
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); } } |