It enables actually both. Trough unified interface one can control RP natively using ghc crosscopmiler or remotely over TCP/IP.
https://hackage.haskell.org/package/Lambdaya
Quick start:
(should work any OS)
1. Install ghc and cabal or haskell-platform. https://www.haskell.org/platform/
2. Install lambdaya using cabal
Code: Select all
cabal update
cabal install lambdaya
Code: Select all
import System.RedPitaya.Fpga
import System.RedPitaya.Tcp
rpIp = "10.42.0.219" -- fix for ip for RP
rpPort = 4242
main = runRemoteRp rpIp rpPort (setLed 0x55)
Code: Select all
ghc -O2 client.hs
5. Download https://github.com/ra1u/Lambdaya/blob/m ... r?raw=true on RP and run.
6. Run client you have compiled on PC and stare in Leds.
There is also some notes on how to crosscompile GHC on github. https://github.com/ra1u/Lambdaya/blob/m ... c/build.md in case you want running binaries natively, or extend communication protocol for example.
Currently supported features:
- Documentaion and tutorial available from hackage https://hackage.haskell.org/package/Lambdaya
- Native and remote controlling.
- Functions for acesssing Houskeeping, Oscilloscope ans ASG registers in Fpga are available and also documented. (doc can be accessed from hackage page)
- Testing
- PID, ASM, Daisy chain, Power test controlling functions
- World domination