diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-31 10:34:04 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-31 10:34:04 +0000 |
commit | 409fb83520d52bdf62baedfe639d8704f50bb5b1 (patch) | |
tree | 8d3e1b4a585e144fe8fb33e1dfb1ba5557ed92e3 /testhal/STM32F1xx/I2C/main.c | |
parent | c397738010966f85c7ae841e21d74790ac49611c (diff) | |
download | ChibiOS-409fb83520d52bdf62baedfe639d8704f50bb5b1.tar.gz ChibiOS-409fb83520d52bdf62baedfe639d8704f50bb5b1.tar.bz2 ChibiOS-409fb83520d52bdf62baedfe639d8704f50bb5b1.zip |
I2C. Fully functional testhal for STM32F1x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3696 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx/I2C/main.c')
-rw-r--r-- | testhal/STM32F1xx/I2C/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32F1xx/I2C/main.c b/testhal/STM32F1xx/I2C/main.c index c4581ddf6..b779ae0b7 100644 --- a/testhal/STM32F1xx/I2C/main.c +++ b/testhal/STM32F1xx/I2C/main.c @@ -48,17 +48,17 @@ static msg_t Blink(void *arg) { /*
* Accelerometer thread
*/
-/*static WORKING_AREA(PollAccelThreadWA, 256);
+static WORKING_AREA(PollAccelThreadWA, 256);
static msg_t PollAccelThread(void *arg) {
chRegSetThreadName("PollAccel");
(void)arg;
while (TRUE) {
- chThdSleepMilliseconds(rand() & 31);
+ /*chThdSleepMilliseconds(rand() & 31);*/
chThdSleepMilliseconds(32);
request_acceleration_data();
}
return 0;
-}*/
+}
/* Temperature polling thread */
@@ -103,11 +103,11 @@ int main(void) { I2CInit_pns();
/* Create accelerometer thread */
- /*chThdCreateStatic(PollAccelThreadWA,
+ chThdCreateStatic(PollAccelThreadWA,
sizeof(PollAccelThreadWA),
NORMALPRIO,
PollAccelThread,
- NULL);*/
+ NULL);
/* Create temperature thread */
chThdCreateStatic(PollTmp75ThreadWA,
|