NEORV32 - Software Framework Documentation
Functions
main.c File Reference

Simple PWM usage example. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 
#define PWM_MAX   128
 

Functions

int main ()
 

Detailed Description

Simple PWM usage example.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

◆ PWM_MAX

#define PWM_MAX   128

Maximum PWM output intensity (0..255)

Function Documentation

◆ main()

int main ( void  )

This program generates a simple dimming sequence for PWM channel 0,1,2.

Note
This program requires the PWM controller to be synthesized (the UART is optional).
Returns
0 if execution was successful