homepage: https://github.com/erdeszt/ivory-avr-atmega328p-registers
changelog-type: ''
hash: 9008544280085988eaee72451a0fd5f2b5c8c83fb67a6100aa82b22d1126fbb5
test-bench-deps: {}
maintainer: erdeszt@gmail.com
synopsis: Ivory register bindings for the Atmega328p
changelog: ''
basic-deps:
  base: '>=4.7 && <5'
  ivory: '>=0.1.0.9 && <0.2'
  monadLib: '>=3.7.3 && <3.8'
  ivory-hw: '>=0.1.0.6 && <0.2'
  base-compat: '>=0.10.5 && <0.11'
all-versions:
- 0.1.0.0
author: erdeszt
latest: 0.1.0.0
description-type: markdown
description: |
  # Ivory register bindings for AVR Atmega328p

  [![Build Status](https://travis-ci.org/erdeszt/ivory-avr-atmega328p-registers.svg?branch=master)](https://travis-ci.org/erdeszt/ivory-avr-atmega328p-registers)

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

  Example:

  ```haskell
  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)
  ```
license-name: BSD-3-Clause

Update from Hackage at 2020-11-19T18:34:17Z
Update from Hackage at 2020-11-19T18:34:17Z
