/simpPRU

Intuitive language for PRU which compiles down to PRU C

Primary LanguageCMIT LicenseMIT


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.