deebot / simpPRU

Intuitive language for PRU which compiles down to PRU C

Home Page:https://simppru.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

Intuitive language for PRU which compiles down to PRU Assembly.

Explore the docs »
Report Bug · Request Feature · Send a Pull Request

Details

GSoC 2020 project under BeagleBoard.org

Build

Requirements:

  • flex
  • bison
  • gcc
  • gcc-pru
  • cmake
mkdir build
cd build
cmake ..
make 
sudo make install

# build debian package
sudo make package

# install debian package
sudo dpkg -i <debian_package_name>.deb

Install

Download debian package from Releases, available for amd64 and arm32 arch

sudo dpkg -i <debian_package_name>.deb

Check /examples for different examples

To Do List

  • Add support for using PWM using eCAP module.
  • Better error handler in bison parser.
  • Update grammar such that control statements (break/continue) can only be called inside loops.
  • Update grammar such that return statements can be called anywhere inside function definitions and not only at the end.
  • Add support for directly calling C code in simppru.
  • Add unit tests which run using pru-sim.

About

Intuitive language for PRU which compiles down to PRU C

https://simppru.readthedocs.io/en/latest/

License:MIT License


Languages

Language:C 78.6%Language:Yacc 10.3%Language:C++ 4.1%Language:CMake 3.4%Language:Lex 2.4%Language:Makefile 0.5%Language:Python 0.3%Language:Shell 0.2%Language:Dockerfile 0.1%