Hello,
I have tried to use mbed-os-example-blinky with mbed-os 6.13.0.
The target is NUCLEO_L552ZE_Q
When I add CAN, i get “[ERROR] .\main.cpp:17:5: error: unknown type name ‘CAN’”
What’s wrong ?
Thanks for advance.
/* mbed Microcontroller Library
- Copyright (c) 2019 ARM Limited
- SPDX-License-Identifier: Apache-2.0
*/
#include “mbed.h”
// Blinking rate in milliseconds
#define BLINKING_RATE 500ms
int main()
{
// Initialise the digital pin LED1 as an output
DigitalOut led(LED1);
CAN can(PA_11,PA_12,500000);// rx, tx
while (true) {
led = !led;
ThisThread::sleep_for(BLINKING_RATE);
}
}