【发布时间】:2018-11-28 08:59:01
【问题描述】:
我正在尝试在 Nucleo F746ZG 上使用以太网连接, 但是,每当我使用 mbed 的官方包含时,我的别针就不再被识别了。 除此之外,一些标准命令也不能像 digitalout 一样工作。 欢迎所有帮助,并提前致谢。
#include "EthernetInterface.h"
#include "mbed.h" //Includes a diffent map.
#include <string>
Serial pc(USBTX, USBRX);//Selects the type of serial and assigns a name to it.
DigitalOut led1(LED1);//Selects the led.
CAN can1(PD_0, PD_1); <---- // CAN isnt recognized anymore //Sets the pins for the CAN.
这是我收到的错误:
错误:标识符“CAN”在“Nucleo_F746ZG_Ethernet/main.cpp”中未定义,行:7,列:2
【问题讨论】:
-
“不再 [sic] 被识别”是什么意思?你的意思是你得到构建错误?请在构建时复制粘贴(作为文本)完整的输出。
-
@Someprogrammerdude 我已经编辑过了