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

When GRPIO25 is low, generates an oscillator in GPIO26. More...

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

Go to the source code of this file.

Functions

int main ()

Detailed Description

When GRPIO25 is low, generates an oscillator in GPIO26.

Use case:
use_case gpio_inoput

Enables the gpio25 and gpio26 as input and output respectively.Then while GPIO25 is low it toggles the pin GPIO26 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 [in] J23 Pin 11 start the oscillator activity. param [out] J23 Pin 13 generates an oscillator with T=1,6us.

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_inout.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 45 of file gpio_inout.cpp.