v_sdirxss: fzetta_fmc_gpio.c File Reference

| v_sdirxss Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
fzetta_fmc_gpio.c File Reference

## Overview

FMC configuration file.

    MODIFICATION HISTORY:

    Ver   Who  Date       Changes

    1.0  jsr   03/07/2018 Initial version

## Functions
int | fzetta_fmc_gpio_init (u8 Dev_ID)
| This function Initialize GPIO IP and set all IO direction to output. More...
int | fzetta_fmc_spi_channel_select (u8 Channel)
| This function Set 4-Channel MUX in FMC according to target channel. More...
void | fzetta_fmc_init_done ()
| This function Set bit7 of GPIO to 1 to declare init done. More...

## Function Documentation

int fzetta_fmc_gpio_init | ( | u8 | Dev_ID | ) |

This function Initialize GPIO IP and set all IO direction to output.

Parameters

  Dev_ID | Device ID.

Returns
  XST_SUCCESS if initialization is successful else XST_FAILURE

Note
  None.

Referenced by fzetta_fmc_ip_init().

void fzetta_fmc_init_done | ( |  | ) |

This function Set bit7 of GPIO to 1 to declare init done.

Parameters

  None |

Returns
  none

Note
  None.

Referenced by fzetta_fmc_dev_errata_init().

int fzetta_fmc_spi_channel_select | ( | u8 | Channel | ) |

This function Set 4-Channel MUX in FMC according to target channel.

Parameters

  GPIO[1:0] | 00 - Chan0 01 - Chan1 10 - Chan2 11 - Chan3

Returns
  XST_SUCCESS if SPI channel select is successful else XST_FAILURE

Note
  None.

Referenced by fzetta_fmc_register_read(), and fzetta_fmc_register_write().