[B96B_F446VE] Add the target for can test

pull/1520/head
adustm 2016-01-29 14:20:51 +01:00
parent 6ff8955d58
commit a58480e9eb
1 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,9 @@ DigitalOut led2(LED2);
#if defined(TARGET_LPC1549)
// LPC1549 support only single CAN channel
CAN can1(D2, D3);
#elif defined(TARGET_B96B_F446VE)
// B96B_F446VE support only single CAN channel
CAN can1(PD_0, PD_1);
#else
CAN can1(p9, p10);
#endif
@ -41,8 +44,8 @@ int main() {
ticker.attach(&send, 1);
CANMessage msg;
while(1) {
#if !defined(TARGET_LPC1549)
printf("loop()\n");
#if (!defined (TARGET_LPC1549) && !defined(TARGET_B96B_F446VE))
printf("loop()\n");
if(can2.read(msg)) {
printmsg("Rx message:", &msg);
led2 = !led2;