dfu: add error callback
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 18 May 2021 13:12:12 +0000 (15:12 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 18 Jun 2021 08:09:41 +0000 (10:09 +0200)
commitd4710326c814ffbf84eab87dce8f8fd789b0da18
treee32aae6b88ab806812fda4318bca456687e364c6
parentd4cb4025771e74dbf42c3aa0b6daa734f855928d
dfu: add error callback

Add error callback in dfu stack to manage some board specific
behavior on DFU targets.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/dfu/dfu.c
include/dfu.h