STLinkUSB-0.1.1: STLink USB interface in Haskell

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

STM32.STLinkUSB

Description

This module exports a small driver for the STLink dongles. The focus of this API is on reading and writing to the memory of and attached STM32 controller. The STM32 architecture use memory mapped IO registers to program IO ports a hardware peripherals. Therefor a STLink dongle with an attached STM32 board in combination with this library makes a nice Haskell-controlled IO extension board.

Synopsis

Documentation

test :: IO () Source #

Test the dongle and connection to the board. This test fails if no board is attached

type STLT m a = ReaderT STLinkEnv m a Source #

type STL a = forall m. MonadIO m => ReaderT STLinkEnv m a Source #

initDongle :: STL () Source #

Init the dongle and set debug mode. A Haskell translation of the same function in the openocd library.

type Logger = LogLevel -> String -> IO () Source #