package atdf

All checked builds pass
  1. Overview
  2. Docs
Atmel's ATDF files parsing library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.1.tar.gz
md5=5f5c349d9deb3a94dcd4fc85f7ddce8e
sha512=6d5fb7ad3ee245b7de1bad85914492c953ddedd026bda954a278a51e9aebcdd8b96a6437ab7c1356e89d6b1f61819add61cc6fc2984c2dee381a37dc0472a3a6

doc/README.html

atdf

Atmel's ATDF (AVR Target Description Format) files parsing library.

ATDF files describe the complete hardware layout of AVR microcontrollers, including memory maps, registers, bitfields, interrupts, peripherals, pinouts, and programmer interfaces. This library parses them into strongly-typed OCaml records.

Features

  • Full ATDF v0.3 schema coverage (variants, devices, modules, pinouts)
  • Pre-parsed definitions (pack) for a large number of AVR microcontrollers

Quick start

You can install atdf using the OPAM package manager or another method. If you are using Dune, add atdf to your dependencies.

In use

The library uses xml-light for XML parsing; the parsed XML is then passed to the atdf library to produce a structured representation.

#require "xml-light";;
#require "atdf";;

Xml.parse_file "atmega328pb.atdf" |> Atdf.File.of_xml
(* - : Atdf.File.t = ... *)

For more details, see the API reference.

ATDF pack

Additionally, the atdf.pack package provides pre-parsed definitions for a large number of AVR microcontrollers.

#require "atdf.pack";;

let atdf_file = Atdf_pack.find "atmega328p"

License

The project is licensed under the MIT License, which allows for all permissions. Just use it and enjoy yourself without fear. We are always open to pull requests!