Integrate New Module

From Arctic Core - the open source AUTOSAR embedded platform

Jump to: navigation, search

Some steps/pointers on how to integrate a new module (driver/service etc.) into the Arctic Core platform

Code placement

  • Place public headers (.h) in the folder
    include


  • Place implementation code (.c) and private headers in the appropriate place in the tree:
    • Code that is dependent on cpu type/architecture (MCAL) should go into
      arch/<yourarch>/<yourcpu>/drivers
      (like Can driver for mpc55xx)


  • Code for modules not in the MCAL should be placed in a folder named after the module in the tree where appropriate (like module Com)


  • Place configuration files (*Cfg.c, *Cfg.h) in your project (you should consider creating an example project using the module) under
    config/<yourboard>

Building

  • Make the module available in the board you are using by adding it to the MOD_AVAIL variable in:
    boards/<yourboard>/build_config.mk
    (like for mpc5567qrtech)


  • Add make dependencies and paths for the module files in:
    boards/board_common.mk
    with the inclusion switch USE_<MOD> (like for module Com)



As a final note please bear in mind that in using Arctic Core you are bound by the GPLv2 license. If you want to contribute your work to the open source repository, please contact us and we will help you.