GR712RC unit tests 1.0
Bare-metal C++ hardware tests for the PLATO DPU (IAA-CSIC, 2019)
Loading...
Searching...
No Matches
gpio_config.cpp File Reference

Configures GPIO26 to produce an oscillator. More...

#include <cstdint>
#include <mcal/mcal.h>
Include dependency graph for gpio_config.cpp:

Go to the source code of this file.

Functions

int main ()

Detailed Description

Configures GPIO26 to produce an oscillator.

Use case:
use_case gpio_config

Enables the gpio33 as output, which corresponds with GRGPIO Port1 pin 26, then toggles the pin as fast as possible. The memory controller is configured, it disables the SRAM and enables the SDRAM.

Returns
The configured values, are then read from the configuration registers and stored in the begginnnig of the SDRAM:

param [out] J23 Pin 13 generates an oscillator with T=1,6us ( tek00223.png ).

Note
The program should be linked to be executed on the build-in SRAM of GR712RC: -T linkcmds-ahbram
The Switch matrix for the pin JP29 of the GR712RC-Commercial should be move to A.
Author
Juan Manuel Gómez jmgom.nosp@m.ez@i.nosp@m.aa.es

Definition in file gpio_config.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 43 of file gpio_config.cpp.