OpenBIC
OpenSource Bridge-IC
|
#include "altera.h"
#include "hal_i2c.h"
#include "util_spi.h"
#include <logging/log.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <zephyr.h>
Macros | |
#define | MAX_RETRY 3 |
#define | CHECK_ALTERA_STATUS_DELAY_US 100 |
#define | SWAP_LSB_TO_MSB(x) |
Functions | |
LOG_MODULE_REGISTER (dev_altera) | |
__weak int | pal_load_altera_max10_attr (altera_max10_attr *altera_max10_config) |
int | change_word_to_byte (uint8_t *output, int intput) |
int | get_register_via_i2c (int reg, int *val) |
int | max10_reg_read (int address) |
int | max10_status_read (void) |
int | set_register_via_i2c (int reg, int val) |
int | max10_reg_write (int address, int data) |
int | max10_write_flash_data (int address, int data) |
int | cpld_altera_max10_fw_update (uint32_t offset, uint16_t msg_len, uint8_t *msg) |
#define CHECK_ALTERA_STATUS_DELAY_US 100 |
#define MAX_RETRY 3 |
#define SWAP_LSB_TO_MSB | ( | x | ) |
int change_word_to_byte | ( | uint8_t * | output, |
int | intput | ||
) |
int cpld_altera_max10_fw_update | ( | uint32_t | offset, |
uint16_t | msg_len, | ||
uint8_t * | msg | ||
) |
int get_register_via_i2c | ( | int | reg, |
int * | val | ||
) |
LOG_MODULE_REGISTER | ( | dev_altera | ) |
int max10_reg_read | ( | int | address | ) |
int max10_reg_write | ( | int | address, |
int | data | ||
) |
int max10_status_read | ( | void | ) |
int max10_write_flash_data | ( | int | address, |
int | data | ||
) |
__weak int pal_load_altera_max10_attr | ( | altera_max10_attr * | altera_max10_config | ) |
int set_register_via_i2c | ( | int | reg, |
int | val | ||
) |