ivory-avr-atmega328p-registers: Ivory register bindings for the Atmega328p

[ bsd3, language, library ] [ Propose Tags ] [ Report a vulnerability ]

Autogenerated ivory register bindings for the AVR Atmega328p


[Skip to Readme]

Modules

  • Ivory
    • Avr
      • Atmega328p
        • Ivory.Avr.Atmega328p.Registers

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0
Dependencies base (>=4.7 && <5), base-compat (>=0.10.5 && <0.11), ivory (>=0.1.0.9 && <0.2), ivory-hw (>=0.1.0.6 && <0.2), monadLib (>=3.7.3 && <3.8) [details]
License BSD-3-Clause
Copyright 2020 erdeszt
Author erdeszt
Maintainer erdeszt@gmail.com
Category Language
Home page https://github.com/erdeszt/ivory-avr-atmega328p-registers
Uploaded by erdeszt at 2020-11-19T18:26:40Z
Distributions
Downloads 153 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2020-11-19 [all 2 reports]

Readme for ivory-avr-atmega328p-registers-0.1.0.0

[back to package description]

Ivory register bindings for AVR Atmega328p

Build Status

Generated with: https://github.com/erdeszt/ivory-avr-generator

Example:

import Ivory.Language
import Ivory.HW
import Ivory.Avr.Atmega328p.Registers

-- Blink the onboard led (pin13, ddrb 5) on the Arduino Uno/Nano as fast as possible
rapidBlink :: Def ('[] :-> ())
rapidBlink = proc "rapidBlink" $ body $ do
    setReg regBitsDDRB (setBit ddb5)
    forever $ do
        setReg regBitsPORTB (setBit portb5)
        setReg regBitsPORTB (clearBit portb5)