tree: d0e3adac7787cb554b7f75d1ce0603fdfbae6d41 [path history] [tgz]
  1. BUILD
  2. hello_world.c
  3. hello_world_test_expected_gpio.txt
  4. README.md
  5. run_verilator_hello_world.sh
sw/device/examples/hello_world/README.md

Hello World Example

Overview

Hello_world is the demo program used to show case basic functionality of the system. The test itself does 2 main things:

  • Echo pin changes over UART.
  • Echo SPI input over UART.

GPIO Changes Over UART

This function primarily exercises the GPIO and UART blocks. The test monitors changing values on the GPIO line and reports them over UART.

SPI Echo Over UART

All data input over SPI is echo'd on UART in a word aligned fashion.