Revision 8dbafe16
components/ControllerAreaNetworkTx.cpp | ||
---|---|---|
163 | 163 |
//---------------------------------------------------------------- |
164 | 164 |
|
165 | 165 |
msg_t ControllerAreaNetworkTx::main(void) { |
166 |
evtInit(&this->evtimer, CAN::UPDATE_PERIOD_MSEC);
|
|
166 |
evtInit(&this->evtimer, CAN::UPDATE_PERIOD); |
|
167 | 167 |
|
168 | 168 |
this->eventTimerEvtSource = reinterpret_cast<EvtSource *>(&this->evtimer.et_es); |
169 | 169 |
|
components/accel/lis331dlh.cpp | ||
---|---|---|
73 | 73 |
|
74 | 74 |
this->eventSource.broadcastFlags(0); |
75 | 75 |
|
76 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD_MSEC);
|
|
76 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD); |
|
77 | 77 |
|
78 | 78 |
} |
79 | 79 |
return RDY_OK; |
components/input/mpr121.cpp | ||
---|---|---|
172 | 172 |
|
173 | 173 |
this->eventSource.broadcastFlags(0); |
174 | 174 |
|
175 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD_MSEC);
|
|
175 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD); |
|
176 | 176 |
} |
177 | 177 |
|
178 | 178 |
return RDY_OK; |
components/magneto/hmc5883l.cpp | ||
---|---|---|
51 | 51 |
|
52 | 52 |
this->eventSource.broadcastFlags(0); |
53 | 53 |
|
54 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD_MSEC);
|
|
54 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD); |
|
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
return RDY_OK; |
components/proximity/vcnl4020.cpp | ||
---|---|---|
108 | 108 |
|
109 | 109 |
this->eventSource.broadcastFlags(0); |
110 | 110 |
|
111 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD_MSEC);
|
|
111 |
this->waitAnyEventTimeout(ALL_EVENTS, CAN::UPDATE_PERIOD); |
|
112 | 112 |
} |
113 | 113 |
|
114 | 114 |
return RDY_OK; |
devices/DiWheelDrive/userthread.cpp | ||
---|---|---|
411 | 411 |
setRpmSpeed(rpmFuzzyCtrl); |
412 | 412 |
} |
413 | 413 |
|
414 |
this->sleep(MS2ST(10));
|
|
414 |
this->sleep(CAN::UPDATE_PERIOD);
|
|
415 | 415 |
} |
416 | 416 |
|
417 | 417 |
return RDY_OK; |
include/amiro/Constants.h | ||
---|---|---|
37 | 37 |
|
38 | 38 |
namespace CAN { |
39 | 39 |
|
40 |
const uint32_t UPDATE_PERIOD_MSEC = US2ST(62500); // 16 Hz
|
|
40 |
const uint32_t UPDATE_PERIOD = US2ST(62500); // 16 Hz |
|
41 | 41 |
|
42 | 42 |
const uint32_t PERIODIC_TIMER_ID = 1; |
43 | 43 |
const uint32_t RECEIVED_ID = 2; |
Also available in: Unified diff