Fixed CDC and DFU bootloaders API page erase and write function failures (thanks to Martin Lambert).

This commit is contained in:
Dean Camera 2012-06-29 04:55:44 +00:00
parent 579fbb68fc
commit 2e27cc2670
5 changed files with 9 additions and 4 deletions

View file

@ -38,12 +38,14 @@
void BootloaderAPI_ErasePage(const uint32_t Address)
{
boot_page_erase_safe(Address);
boot_spm_busy_wait();
boot_rww_enable();
}
void BootloaderAPI_WritePage(const uint32_t Address)
{
boot_page_write_safe(Address);
boot_spm_busy_wait();
boot_rww_enable();
}