no-OS
Loading...
Searching...
No Matches
parameters.h File Reference

Definitions specific to Lattice platform used by ad738x_fmcz project. More...

#include <stdio.h>
#include <sys_platform.h>
#include "no_os_init.h"
#include "riscvrx_cache.h"
#include "riscvrx_ip_uart.h"
#include "axi_pwm_extra.h"
#include "spi_engine.h"
Include dependency graph for parameters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UART_DEVICE_ID   0
 
#define UART_IRQ_ID   UART0_INST_IRQ
 
#define UART_IRQ_PRIORITY   1
 
#define UART_BAUDRATE   115200
 
#define UART_EXTRA   &uart_extra_ip
 
#define UART_OPS   &latt_ip_uart_ops
 
#define UART_ASYNC_RX   true
 
#define DCACHE_INVALIDATE   lattice_dcache_invalidate_range
 
#define LATTICE_UART_BASE_ADDR   UART0_INST_UART_MEM_MAP_BASE_ADDR
 
#define DMA_BASEADDR   DMAC0_INST_S_AXI_MEM_MAP_BASE_ADDR
 
#define SPI_ENGINE_BASEADDR   AXI_SPI0_INST_S_AXI_MEM_MAP_BASE_ADDR
 
#define AXI_PWMGEN_BASEADDR   PWM0_INST_S_AXI_MEM_MAP_BASE_ADDR
 
#define SAMPLES_PER_CHANNEL_PLATFORM   1000
 
#define NUMBER_OF_CHANNELS   1
 
#define BYTES_PER_SAMPLE   2
 
#define MAX_SIZE_BASE_ADDR   (SAMPLES_PER_CHANNEL_PLATFORM * NUMBER_OF_CHANNELS * BYTES_PER_SAMPLE)
 
#define CLOCK_OS   10000000
 
#define REFCLK_RATE   160000000
 
#define UART_REFCLK_RATE   100000000
 
#define AXI_PWM_REFCLK_RATE   REFCLK_RATE
 
#define SPI_ENG_REFCLK_RATE   REFCLK_RATE
 
#define SPI_DEVICE_ID   0
 
#define SPI_OPS   &spi_eng_platform_ops
 
#define SPI_EXTRA   &spi_eng_init_param
 
#define SPI_CS   0
 
#define SPI_BAUDRATE   50000000
 
#define TRIGGER_PWM_ID   0
 
#define PWM_OPS   &axi_pwm_ops
 
#define TRIGGER_PWM_EXTRA   &axi_pwm_init_param
 
#define TRIGGER_PERIOD_NS   500
 
#define TRIGGER_DUTY_NS   10
 
#define OFFLOAD_INIT   &spi_engine_offload_init_param
 

Variables

struct latt_ip_uart_init_param uart_extra_ip
 
struct spi_engine_init_param spi_eng_init_param
 
struct axi_pwm_init_param axi_pwm_init_param
 
struct spi_engine_offload_init_param spi_engine_offload_init_param
 

Detailed Description

Definitions specific to Lattice platform used by ad738x_fmcz project.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)
Axel Haslam (ahasl.nosp@m.am@b.nosp@m.aylib.nosp@m.re.c.nosp@m.om)
Vilmos-Csaba Jozsa (vilmo.nosp@m.scsa.nosp@m.ba.jo.nosp@m.zsa@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright 2024-2026(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
  • The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
  • Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ AXI_PWM_REFCLK_RATE

#define AXI_PWM_REFCLK_RATE   REFCLK_RATE

◆ AXI_PWMGEN_BASEADDR

#define AXI_PWMGEN_BASEADDR   PWM0_INST_S_AXI_MEM_MAP_BASE_ADDR

◆ BYTES_PER_SAMPLE

#define BYTES_PER_SAMPLE   2

◆ CLOCK_OS

#define CLOCK_OS   10000000

◆ DCACHE_INVALIDATE

#define DCACHE_INVALIDATE   lattice_dcache_invalidate_range

◆ DMA_BASEADDR

#define DMA_BASEADDR   DMAC0_INST_S_AXI_MEM_MAP_BASE_ADDR

◆ LATTICE_UART_BASE_ADDR

#define LATTICE_UART_BASE_ADDR   UART0_INST_UART_MEM_MAP_BASE_ADDR

◆ MAX_SIZE_BASE_ADDR

#define MAX_SIZE_BASE_ADDR   (SAMPLES_PER_CHANNEL_PLATFORM * NUMBER_OF_CHANNELS * BYTES_PER_SAMPLE)

◆ NUMBER_OF_CHANNELS

#define NUMBER_OF_CHANNELS   1

◆ OFFLOAD_INIT

#define OFFLOAD_INIT   &spi_engine_offload_init_param

◆ PWM_OPS

#define PWM_OPS   &axi_pwm_ops

◆ REFCLK_RATE

#define REFCLK_RATE   160000000

◆ SAMPLES_PER_CHANNEL_PLATFORM

#define SAMPLES_PER_CHANNEL_PLATFORM   1000

◆ SPI_BAUDRATE

#define SPI_BAUDRATE   50000000

◆ SPI_CS

#define SPI_CS   0

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   0

◆ SPI_ENG_REFCLK_RATE

#define SPI_ENG_REFCLK_RATE   REFCLK_RATE

◆ SPI_ENGINE_BASEADDR

#define SPI_ENGINE_BASEADDR   AXI_SPI0_INST_S_AXI_MEM_MAP_BASE_ADDR

◆ SPI_EXTRA

#define SPI_EXTRA   &spi_eng_init_param

◆ SPI_OPS

#define SPI_OPS   &spi_eng_platform_ops

◆ TRIGGER_DUTY_NS

#define TRIGGER_DUTY_NS   10

◆ TRIGGER_PERIOD_NS

#define TRIGGER_PERIOD_NS   500

◆ TRIGGER_PWM_EXTRA

#define TRIGGER_PWM_EXTRA   &axi_pwm_init_param

◆ TRIGGER_PWM_ID

#define TRIGGER_PWM_ID   0

◆ UART_ASYNC_RX

#define UART_ASYNC_RX   true

◆ UART_BAUDRATE

#define UART_BAUDRATE   115200

◆ UART_DEVICE_ID

#define UART_DEVICE_ID   0

◆ UART_EXTRA

#define UART_EXTRA   &uart_extra_ip

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART0_INST_IRQ

◆ UART_IRQ_PRIORITY

#define UART_IRQ_PRIORITY   1

◆ UART_OPS

#define UART_OPS   &latt_ip_uart_ops

◆ UART_REFCLK_RATE

#define UART_REFCLK_RATE   100000000

Variable Documentation

◆ axi_pwm_init_param

struct axi_pwm_init_param axi_pwm_init_param
extern

◆ spi_eng_init_param

struct spi_engine_init_param spi_eng_init_param
extern

◆ spi_engine_offload_init_param

struct spi_engine_offload_init_param spi_engine_offload_init_param
extern

◆ uart_extra_ip

struct latt_ip_uart_init_param uart_extra_ip
extern