STM32-Zombie-0.1.1: control a STM32F103 microcontroller

Copyright(c) Marc Fontaine 2017
LicenseBSD3
MaintainerMarc.Fontaine@gmx.de
Stabilityexperimental
PortabilityGHC-only
Safe HaskellNone
LanguageHaskell2010

STM32.Utils

Description

Utility functions for hardware register access.

Documentation

delay :: Int -> MI () Source #

print' :: Show x => x -> MI () Source #

class ToBit a where Source #

Minimal complete definition

toBit

Methods

toBit :: a -> Bool Source #

bitWrite :: ToBit b => Peripheral -> Field -> b -> MI () Source #

fieldWriteRaw :: Word32 -> [Int] -> [Bool] -> MI () Source #

bitWriteRaw :: ToBit b => b -> Word32 -> Int -> MI () Source #