aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx/I2C/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32F1xx/I2C/main.c')
-rw-r--r--testhal/STM32F1xx/I2C/main.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/testhal/STM32F1xx/I2C/main.c b/testhal/STM32F1xx/I2C/main.c
index 760cee229..c4581ddf6 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 msg_t PollAccelThread(void *arg) {
-// chRegSetThreadName("PollAccel");
-// (void)arg;
-// while (TRUE) {
-//// chThdSleepMilliseconds(rand() & 31);
-// chThdSleepMilliseconds(32);
-// request_acceleration_data();
-// }
-// return 0;
-//}
+/*static WORKING_AREA(PollAccelThreadWA, 256);
+static msg_t PollAccelThread(void *arg) {
+ chRegSetThreadName("PollAccel");
+ (void)arg;
+ while (TRUE) {
+ chThdSleepMilliseconds(rand() & 31);
+ chThdSleepMilliseconds(32);
+ request_acceleration_data();
+ }
+ return 0;
+}*/
/* Temperature polling thread */
@@ -67,7 +67,7 @@ static msg_t PollTmp75Thread(void *arg) {
chRegSetThreadName("PollTmp75");
(void)arg;
while (TRUE) {
-// chThdSleepMilliseconds(rand() & 31);
+ /*chThdSleepMilliseconds(rand() & 31);*/
chThdSleepMilliseconds(15);
/* Call reading function */
request_temperature();
@@ -103,11 +103,11 @@ int main(void) {
I2CInit_pns();
/* Create accelerometer thread */
-// chThdCreateStatic(PollAccelThreadWA,
-// sizeof(PollAccelThreadWA),
-// NORMALPRIO,
-// PollAccelThread,
-// NULL);
+ /*chThdCreateStatic(PollAccelThreadWA,
+ sizeof(PollAccelThreadWA),
+ NORMALPRIO,
+ PollAccelThread,
+ NULL);*/
/* Create temperature thread */
chThdCreateStatic(PollTmp75ThreadWA,