Code Monkey home page Code Monkey logo

canfestival-rtt's Introduction

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、联系方式 & 感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.