Coder Social home page Coder Social logo

config's Introduction

Target Configuration (config.h) repository

Repository for the storage of config.h files for board settings. For more information pleasee see https://betaflight.com

The config.h replaces the unified target configuration that is now deprecated from version 4.5.0. This frees up some flash space, and ensures defaults are baked into the build. This has been made possible due to the introduction of the cloud build service. Standard default targets are still available, but they require all configuration to be restored from a backup.

Cloud build takes care of the config repository for the general user, and knowledge of it is generally not needed. The instructions here are predominantly for tinkerers and for manufacturers around creating a target.

How to use - Firmware

The config repository will be used directly by the firmware, and is only required if you wish to use one of the targets present here when building locally.

You need to hydrate the target list first with:

> make configs

Then you can make a build for a specific target configuration e.g.

> make BETAFLIGHTF4

Creating a config.h for a target

TIMER_MAP

The TIMER_MAP define sets up the timers default settings, as adjusted with the timer and dma commands in CLI. The problem is there are some magic numbers (index entries), that need to be known.

You can activate the timer map CLI command (by compiling with USE_TIMER_MAP_PRINT defined i.e. "EXTRA_FLAGS=-DUSE_TIMER_MAP_PRINT").

You will need to setup (again using CLI commands) what your default timer and dma should be. You can then run the timer map command and it will output the correct values for inserting into the config.h file.

config's People

Contributors

haslinghuis avatar blckmn avatar ot0tot avatar hydra avatar stevecevans avatar nerdcopter avatar freasy avatar asdosjani avatar howels avatar linjieqiang avatar lida2003 avatar x4ff3 avatar hakrc1 avatar jhemcu avatar geme-cyi avatar guidus93 avatar bayckrc avatar sugaark avatar cvetaevvitaliy avatar ctzsnooze avatar jesuslg123 avatar crteensy avatar yi-boyang avatar fabriciopolonio avatar brotherhobby avatar asizon avatar yejie0303 avatar vgpengke avatar tobeornottobe81 avatar tianv2mu0897 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.