Attached code demonstrates how to set up the CGU and CDU on ADSP-SC58x/2158x series of products. Following are the setting done:
- Configure the CDU
- Configure the CGU0
- Configure the CGU1
CDU is configured to route all the clocks form CGU0 which is same as default. In order to test different configuration, following structure should be modified(look into header files for more details about the structure members):
Separate example for setting up the CGU/CDU form ARM as well as SHARC core are attached.