openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
fpga_spi.c File Reference
#include "FreeRTOS.h"
#include "task.h"
#include "port.h"
#include "i2c_mapping.h"
#include "fpga_spi.h"
#include "task_priorities.h"
#include "at24mac.h"
#include "sdr.h"
Include dependency graph for fpga_spi.c:

Macros

#define FPGA_SPI_BITRATE   10000000
 
#define FPGA_SPI_FRAME_SIZE   8
 

Functions

void vTaskFPGA_COMM (void *Parameters)
 FPGA Diagnostics Task.
 
void fpga_spi_init (void)
 Initializes the FPGA Diagnostics Task.
 

Macro Definition Documentation

◆ FPGA_SPI_BITRATE

#define FPGA_SPI_BITRATE   10000000

◆ FPGA_SPI_FRAME_SIZE

#define FPGA_SPI_FRAME_SIZE   8

Function Documentation

◆ fpga_spi_init()

void fpga_spi_init ( void )

Initializes the FPGA Diagnostics Task.

◆ vTaskFPGA_COMM()

void vTaskFPGA_COMM ( void * Parameters)

FPGA Diagnostics Task.

This task formats all sensors information and sends to the FPGA via SPI. All the information is accessed by the FPGA using the Wishbone stream.

Parameters
ParametersPointer to parameters passed to the task upon initialization.