LinxVIEW论坛-斯科道

 找回密码
 立即注册
查看: 8148|回复: 0
打印 上一主题 下一主题

CANFestival CANopen堆栈的Arduino库版本

[复制链接]

541

主题

757

帖子

2645

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2645
跳转到指定楼层
楼主
发表于 2019-11-16 22:21:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
CANFestival CANopen堆栈的Arduino库版本

History from 07/27/2015
  • Extensive changes to reduce SRAM usage
  • Removed need for extra timers
  • Added write access flag to object dict entry callback
  • objdictedit from this repo needed to generate suitable object dictionary definition
  • mcp_can, BlinkPattern, digitalWriteFast and Timer libraries from my repos needed to successfully compile
  • MCP2515 chip select pin set in CO_can_Arduino.cpp
  • Usage: define CO<red_led_pin, green_led_pin> co; (-1 if no led needed), call co.CO_Init(); in setup(), call co.CO_Cycle(); in loop()
  • See example
History from 11/02/2015
This is a first working prototype with only the most necessary changes to the original CANFestival code to make it run as an Arduino library.
Here is an intermediate state of this library before I started to compile it using the Arduino IDE.
The example uses my fork of the Seeed Studio CAN bus library. Beware that my example expects the CS of the MCP2515 on a different pin than the Seeed CAN bus shield.
The object dictionary that is implemented by the example must be edited with my special version of the CANFestival tool in order to generate code that doesn't conflict with Arduino conventions.
Further documentation to follow.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|SCADAO  

GMT+8, 2024-12-22 20:46 , Processed in 0.038651 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表