Quick demonstration of the PWM module for SiFive's FE310 chip, as used on the HiFive1 dev board.
Checkout the freedom-e-sdk and move korobeiniki to freedom-e-sdk/software (or clone directly in place). Make as usual with the SDK to build and upload to target development board:
dave@Prospero:~/freedom-e-sdk$ make software PROGRAM=korobeiniki BOARD=freedom-e300-hifive1
dave@Prospero:~/freedom-e-sdk$ make upload PROGRAM=korobeiniki BOARD=freedom-e300-hifive1- korobeiniki.c: Quick and dirty demonstration. Sets up PWM and adjusts frequency and duty cycle to generate musical tones.
- Makefile: Adds functionality specific to this demo. Note that it's not standalone and relies on including other Makefiles from the SDK.
- korobeiniki-demo-video.mp4: Shows the program in action with a corresponding oscilloscope trace.
