dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bl_xfer.c File Reference
#include "pios.h"
#include "string.h"
#include "bl_xfer.h"
#include "pios_com_msg.h"
#include "pios_board_info.h"
#include "pios_flash.h"

Go to the source code of this file.

Macros

#define MIN(x, y)   ((x) < (y) ? (x) : (y))
 

Functions

static uint32_t bl_compute_partition_crc (uintptr_t partition_id, uint32_t partition_offset, uint32_t length)
 
bool bl_xfer_completed_p (const struct xfer_state *xfer)
 
bool bl_xfer_crc_ok_p (const struct xfer_state *xfer)
 
bool bl_xfer_read_start (struct xfer_state *xfer, const struct msg_xfer_start *xfer_start)
 
bool bl_xfer_send_next_read_packet (struct xfer_state *xfer)
 
bool bl_xfer_write_start (struct xfer_state *xfer, const struct msg_xfer_start *xfer_start)
 
bool bl_xfer_write_cont (struct xfer_state *xfer, const struct msg_xfer_cont *xfer_cont)
 
bool bl_xfer_wipe_partition (const struct msg_wipe_partition *wipe_partition)
 
bool bl_xfer_send_capabilities_self (void)
 

Detailed Description

Author
dRonin, http://dRonin.org/, Copyright (C) 2016
Tau Labs, http://taulabs.org, Copyright (C) 2013

Definition in file bl_xfer.c.