| 
    openMMC
    
   Open Source Modular MMC for AMCs 
   | 
 
#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"
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.   | |
| #define FPGA_SPI_BITRATE 10000000 | 
| #define FPGA_SPI_FRAME_SIZE 8 | 
| void fpga_spi_init | ( | void | ) | 
Initializes the FPGA Diagnostics Task.
| 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 | Pointer to parameters passed to the task upon initialization. |