Safe Haskell | None |
---|
- data MSP430Compilation = MSP430Compilation {
- setupFn :: Maybe (Atom ())
- setupFnName :: String
- loopFn :: Maybe (Atom ())
- loopFnName :: String
- timerAISR :: Maybe (Atom ())
- timerAISRName :: String
- watchdogISR :: Maybe (Atom ())
- watchdogISRName :: String
- port1ISR :: Maybe (Atom ())
- port1ISRName :: String
- port2ISR :: Maybe (Atom ())
- port2ISRName :: String
- mainFile :: String
- emitMainFn :: Bool
- mspProgram :: MSP430Compilation
- wiringProgram :: Atom () -> Atom () -> MSP430Compilation
- simpleProgram :: Atom () -> MSP430Compilation
- energiaProgram :: Atom () -> Atom () -> MSP430Compilation
- mspCompile :: String -> MSP430Compilation -> IO ()
Documentation
data MSP430Compilation Source
Program information. It specifies the functions that should be used in specific roles in the compiled code, as well as other configuration information.
MSP430Compilation | |
|
mspProgram :: MSP430CompilationSource
Default program to construct your own programs from. Contains Nothing and generates a basic main.c. Use it by overriding the functions it generates, and optionally their names.
wiringProgram :: Atom () -> Atom () -> MSP430CompilationSource
Easy settings for a Wiring-style program with setup and loop functions. Expects a device extension for header files - i.e. running with g2231 wihh generate files that #include msp430g2231.h
simpleProgram :: Atom () -> MSP430CompilationSource
Easy settings for a program with just a setup function.
energiaProgram :: Atom () -> Atom () -> MSP430CompilationSource
Easy settings for a program with setup and loop, but no main function.
mspCompile :: String -> MSP430Compilation -> IO ()Source
Compile a program given by the compilation specification. Compiles all functions into library files and then generates a main file which calls these functions in the appropriate way.