Revision df20c2fc unittests/lld/src/ut_lld_rtcan.c
unittests/lld/src/ut_lld_rtcan.c | ||
---|---|---|
56 | 56 |
ctfp.SID = 0x003; |
57 | 57 |
msg = rtcan_transmit(&MODULE_HAL_CAN,CAN_ANY_MAILBOX,&ctfp); |
58 | 58 |
}else if (strcmp(operation, "receive")==0){ |
59 |
aosUtInfoMsg(stream,"trying to receive msg"); |
|
59 | 60 |
CANRxFrame crfp; |
60 | 61 |
crfp.RTR = CAN_RTR_DATA; |
61 | 62 |
crfp.IDE = CAN_IDE_STD; |
62 | 63 |
crfp.DLC = 0; |
63 | 64 |
crfp.SID = 0x003; |
65 |
int empty = can_lld_is_rx_nonempty(&MODULE_HAL_CAN,CAN_ANY_MAILBOX); |
|
66 |
aosUtInfoMsg(stream,"%d",empty); |
|
64 | 67 |
msg = rtcan_receive(&MODULE_HAL_CAN,CAN_ANY_MAILBOX,&crfp); |
65 | 68 |
} |
66 | 69 |
|
Also available in: Unified diff