ivory-avr-atmega328p-registers

Autogenerated ivory register bindings for the AVR Atmega328p


Keywords
language, library, Propose Tags , https://github.com/erdeszt/ivory-avr-generator
License
BSD-3-Clause
Install
cabal install ivory-avr-atmega328p-registers

Documentation

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)