Forum Discussion
tehjingy_Altera
Regular Contributor
3 years agoHi Alex
In the c program, we will be using the Hwlibs.
It is a set a library for you to access the hardware using apis.
https://www.rocketboards.org/foswiki/Documentation/HWLib#SoC_Abstraction_Layer_40SoCAL_41
You could find the list of API and its description here:
https://www.rocketboards.org/foswiki/pub/Documentation/HWLib/hwlib_api.tar.gz
Once you have the hwlibs installed. You could refer to the example.
In the example you will need to include the related header files and you could access the hardware and register.
e.g.
#include "alt_interrupt.h"
#include "alt_timers.h"
Regards
Jingyang, Teh