|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
USBX DFU device class wired to the ra8_dfu MRAM program path. More...
#include "ra8_dfu_device.h"Go to the source code of this file.
USBX DFU device class wired to the ra8_dfu MRAM program path.
Registers the vendored USBX DFU class and backs its callbacks with real MRAM. dfu_write only stages a 64-byte block + marks it pending (ISR-safe); the caller's device-worker thread drains it via ra8_dfu_device_worker_step, which prepares the slot on the first block, programs each block, and commits the header on end-of-download. dfu_get_status reports dfuDNBUSY until the worker catches up; dfu_read serves DFU_UPLOAD straight out of the target slot's MRAM body. The whole TU is firmware-only (the host test build defines RA8_OFF_TARGET and has no USBX).
Definition in file ra8_dfu_device.c.