ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_dfu_device.c File Reference

USBX DFU device class wired to the ra8_dfu MRAM program path. More...

#include "ra8_dfu_device.h"
Include dependency graph for ra8_dfu_device.c:

Go to the source code of this file.

Detailed Description

USBX DFU device class wired to the ra8_dfu MRAM program path.

Tag
[Ring 4 / Service] {World: S}

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.