39#include "event_groups.h"
61#define PAYLOAD_MESSAGE_COLD_RST (1 << 0)
62#define PAYLOAD_MESSAGE_WARM_RST (1 << 1)
63#define PAYLOAD_MESSAGE_REBOOT (1 << 2)
64#define PAYLOAD_MESSAGE_QUIESCE (1 << 3)
65#define PAYLOAD_MESSAGE_RTM_ENABLE (1 << 4)
66#define PAYLOAD_MESSAGE_CLOCK_CONFIG (1 << 5)
74#define PAYLOAD_BASE_DELAY 100
105#define PAYLOAD_HPM_PAGE_SIZE 256
107uint8_t payload_hpm_prepare_comp(
void );
108uint8_t payload_hpm_upload_block( uint8_t * block, uint16_t size );
109uint8_t payload_hpm_finish_upload( uint32_t image_size );
110uint8_t payload_hpm_get_upgrade_status(
void );
111uint8_t payload_hpm_activate_firmware(
void );
void vTaskPayload(void *pvParameters)
Payload Control task.
Definition payload.c:216
void payload_init(void)
Creates Payload Control task and initializes the board's needed hardware.
Definition payload.c:182
void payload_send_message(uint8_t fru_id, EventBits_t msg)
Sends a message to the payload task.
Definition payload.c:169
mmc_err clock_configuration(const uint8_t clk_cfg[16])
Configure the clock switch interconects according to the configuration saved in EEPROM.
TaskHandle_t vTaskPayload_Handle
Payload task handle variable.
Definition payload.c:180
enum @10 payload_state
Payload state machine state numbers.
@ PAYLOAD_QUIESCED
Definition payload.h:51
@ PAYLOAD_MAX_STATES
Definition payload.h:53
@ PAYLOAD_NO_POWER
Definition payload.h:46
@ PAYLOAD_FPGA_ON
Definition payload.h:49
@ PAYLOAD_SWITCHING_OFF
Definition payload.h:50
@ PAYLOAD_POWER_GOOD_WAIT
Definition payload.h:47
@ PAYLOAD_STATE_FPGA_SETUP
Definition payload.h:48
@ PAYLOAD_RESET
Definition payload.h:52
Error handling functions and codes.
mmc_err
Definition mmc_error.h:36