Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Compilation error: identifier "CAN" is undefined "CAN can1(PD_0, PD_1);"
include the mbed library with this snippet
#include "mbed.h" DigitalOut myled(LED1); CAN can1(PD_0, PD_1); int main() { while(1) { myled = 1; // LED is ON wait(0.2); // 200 ms myled = 0; // LED is OFF wait(1.0); // 1 sec } }