Coder Social home page Coder Social logo

c151151 / cantp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sauci/cantp

0.0 0.0 0.0 444 KB

Implementation of the CanTp module (ISO 15765-2), according to AUTOSAR specification v4.4.0

License: BSD 3-Clause "New" or "Revised" License

Python 44.10% C 50.96% CMake 1.57% Dockerfile 0.18% Jinja 3.19%

cantp's Introduction

branch build status coverage
master cantp CI codecov
develop cantp CI codecov

CMake definitions

The following definitions might be set by the user, depending on the needs.

definition values default description
AUTOSAR_STD_HEADER_PATH - CanTp/test/stub/common specifies the directory containing AUTOSAR standard headers ComStack_Types.h and Std_Types.h (used when integrating this module in an other project)
CANTP_CONFIG_FILEPATH - CanTp/config/can_tp.json specifies which json configuration file should be used to generate the auto-generated code
CANTP_ENABLE_TEST ON/OFF OFF enables/disables tests.
ENABLE_DET ON/OFF ON enables/disables development error detections (see AUTOSAR DET module)
ENABLE_DOC_GEN ON/OFF OFF enables/disables generation of Doxygen documentation
ENABLE_PC_LINT ON/OFF OFF enables/disables generation of targets related to static code analysis (should be disabled if PC-Lint software is not available)
MISRA_C_VERSION 1998/2004/2012 2012 specifies which version of MISRA should be used when performing static code analysis (only used if ENABLE_PC_LINT is set)
OS_GET_TIME_API ON/OFF OFF indicates whether the OSEK API GetElapsedValue is available or not. If enabled, the user is responsible to provide the function uint32_t CanTp_GetElapsedValue(void)

To use this feature, simply add -D<definition>=<value> when configuring the build with CMake.

Notes

Bellow, a few point to consider when using this module:

  • This module does not support nested interrupts. In other words, the functions CanTp_RxIndication, CanTp_TxConfirmation and CanTp_MainFunction (if scheduled using timer interrupt) should not be able to interrupt each other.

TODO

  • Protect variables used in both synchronous and asynchronous APIs.

cantp's People

Contributors

sauci avatar dependabot[bot] avatar

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.