Git Product home page Git Product logo

avrman's Introduction

avrman

avrman (avr manager) is a tool for managing nim projects targetting AVR microcontrollers.

It is tightly coupled with the avr_io library, which is not a dependency, but it is used as the base dependency for projects created with this tool.

Dependencies

This tools does not use any third party libraries. Note that projects created with this tool depend on avr_io.

Requires nim >= 2.0.0.

Build

git clone https://github.com/Abathargh/avrman
cd avrman
nimble build

Or simply install using:

nimble install avrman

Usage

Avr manager for nim projects.
    
    avrman [options] command [command_options]

Options:
  -h, --help        shows this help message
  -v, --version     shows the current version

Commands:
  init              initializes an avr project

You can use the -h option with each subcommand to get a command-specific help prompt.

Init

For example, the following command will initialize a project for an ATMega644 running at 8KHz, using atmelice as its programmer:

avrman init -m:atmega644 -f:8000000 -p:"atmelice" test644

Note that:

  • The m/mcu option is required. A complete list of supported microcontrollers can be obtained with the -s flag.
  • The frequency defaults to 16MHz if not specified.
  • If no prog string is provided, no flash* nimble targets will be generated.

Creating C projects

You can also use this tool to manage a C project for an avr chip, by using the --cproject flag. For example, you can use the following command to initialize a Makefile-based C project for an arduino uno:

avrman init -m:atmega328p -f:16000000 -p:"arduino -b 115200 -P /dev/ttyACM0" \ 
  --cproject  test328p

If you wisht to use CMake instead, you can use the --cmake flag:

avrman init -m:atmega328p -f:16000000 -p:"arduino -b 115200 -P /dev/ttyACM0" \ 
  --cproject --cmake  test328p

License

This application is licensed under the BSD 3-Clause "New" or "Revised" License.

avrman's People

Contributors

abathargh avatar

Stargazers

 avatar Mark Leyva avatar

Watchers

 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.