Code Monkey home page Code Monkey logo

avr-device's People

Contributors

couchand avatar dalpil avatar dependabot[bot] avatar explicite avatar gpgreen avatar jaxter184 avatar jkristell avatar jonahbron avatar justinlatimer avatar kallemooo avatar khimaros avatar lights0123 avatar lperlaki avatar ltdsauce avatar marcantoinem avatar mbuesch avatar no111u3 avatar octycs avatar offdroid avatar patryk27 avatar peacememories avatar pitaj avatar quentinmit avatar rahix avatar rutherther avatar the6p4c avatar tones111 avatar torrancew avatar tronje avatar usa-reddragon avatar

avr-device's Issues

Brute-force init and update vendor files

Currently only a few Controllers are supported. Why not try to add as many as possible via brute-force? Also while doing that one could update every present vendor file as those receive updates from time to time.

ToDo:

Add a rust tool that does the following:

  • Get desired Controller Family and Version of the ATDF file from CLI, if version is omitted use "newest"
  • Add usage string for cli and emit error messages if family not selected
  • Download https://packs.download.microchip.com and extract download-url for selectedMicrocontroller and version from it (Limit it to a specified set of controllers, e.g. atmega and attiny for now)
    • Download html page
    • extract available versions for selected controller
    • Get download link for selected version
  • Download zip file that corresponds to selected controller and version and either store it in a vfs or a tmp directory
  • Copy every ATDF file from the zip file to the vendor directory
    • Make filenames lowercase while doing that
  • Find every ATDF file that has no corresponding patch file yet, this is a newly added controller
  • For every newly added controller do the following:
    • Create a new patch file containing a comment that states that it is autogenerated and the path to the generated svd file
    • Append the controller to the makefile CHIPS entry
    • Append the controller to the Cargo.toml features
    • add it to the list of the readme (but maybe that list is rather useless after this brufe-force add or should only contain controllers that were added by hand)
  • Print whicht controllers were added
  • Maybe print which ADTF files were only updated and brute-forced
  • Improve error handling

I want to do this with rust and not bash or python to get some experience with rust.

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.