diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-18 12:05:17 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-18 12:05:17 +0000 |
commit | d7d709ee5a1fd389602ac48735d17e7b7f421fec (patch) | |
tree | 4ee7afc77ff8b36314930ace0ff87e61a4218c77 /testhal/STM32/STM32F37x/CAN/main.c | |
parent | 84f7aa84b3a62ecc4ffc940bca7f220f48e99107 (diff) | |
download | ChibiOS-d7d709ee5a1fd389602ac48735d17e7b7f421fec.tar.gz ChibiOS-d7d709ee5a1fd389602ac48735d17e7b7f421fec.tar.bz2 ChibiOS-d7d709ee5a1fd389602ac48735d17e7b7f421fec.zip |
Continue merge of RT4/NIL2.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8908 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F37x/CAN/main.c')
-rw-r--r-- | testhal/STM32/STM32F37x/CAN/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F37x/CAN/main.c b/testhal/STM32/STM32F37x/CAN/main.c index 5b50a102e..e19aa106c 100644 --- a/testhal/STM32/STM32F37x/CAN/main.c +++ b/testhal/STM32/STM32F37x/CAN/main.c @@ -38,7 +38,7 @@ static THD_FUNCTION(can_rx, p) { (void)p;
chRegSetThreadName("receiver");
chEvtRegister(&CAND1.rxfull_event, &el, 0);
- while(!chThdShouldTerminateX()) {
+ while (true) {
if (chEvtWaitAnyTimeout(ALL_EVENTS, MS2ST(100)) == 0)
continue;
while (canReceive(&CAND1, CAN_ANY_MAILBOX, &rxmsg, TIME_IMMEDIATE) == MSG_OK) {
@@ -65,7 +65,7 @@ static THD_FUNCTION(can_tx, p) { txmsg.data32[0] = 0x55AA55AA;
txmsg.data32[1] = 0x00FF00FF;
- while (!chThdShouldTerminateX()) {
+ while (true) {
canTransmit(&CAND1, CAN_ANY_MAILBOX, &txmsg, MS2ST(100));
chThdSleepMilliseconds(500);
}
|