Skip to content

A CanFestival port to RT-Thread operating system

License

Notifications You must be signed in to change notification settings

saiyn/canfestival-rtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a package for RT-Thread operating system.

Forked from the CanFestival-3 project https://bitbucket.org/Mongo/canfestival-3-asc

CanFestival

1、介绍

此 package 是 Canfestival (一个开源的 CANopen 协议栈)在 RT-Thread 系统上的移植。使用了 RT-Thread 的 CAN 驱动和 hwtimer 驱动,从而可以运行于所有提供了这两个驱动的平台。 同时提供了 CANopen 的一些示例,力图做到开箱即用。

1.1 目录结构

名称 说明
docs 文档目录
examples 例子目录,Master402 为 DS402 主站示例,用于控制伺服电机
inc 头文件目录
src 源代码目录

1.2 许可证

Canfestival package 遵循 LGPLv2.1 许可,详见 LICENSE 文件。

1.3 依赖

  • RT-Thread 3.0+
  • CAN 驱动
  • hwtimer 驱动

2、如何打开 CanFestival

使用 CanFestival package 需要在 RT-Thread 的包管理器中选择它,具体路径如下:

RT-Thread online packages
    miscellaneous packages --->
        [*] CanFestival: A free software CANopen framework

然后让 RT-Thread 的包管理器自动更新,或者使用 pkgs --update 命令更新包到 BSP 中。

3、使用 Canfestival

在 menuconfig 中打开 CAN 驱动和 hwtimer驱动 并且在 CanFestival config 中配置好 CAN 驱动的 device name, 以及 hwtimer 驱动的 device name

(bxcan1) CAN device name for CanFestival
(timer0) hwtimer device name for CanFestival
(9) The priority level value of can receive thread
(10) The priority level value of timer thread
[*] Enable Cia402 Master example

根据需要配置 can 接收线程,和时钟线程的优先级。 选择需要使用的例子。

在打开 Canfestival package 后,当进行 bsp 编译时,它会被加入到 bsp 工程中进行编译。

4、注意事项

CAN驱动必须支持硬件滤波,Canfestival 只使用第 1 个滤波器。

5、联系方式 & 感谢

About

A CanFestival port to RT-Thread operating system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.6%
  • C++ 1.2%
  • Python 0.2%