@@ -611,11 +611,11 @@ osal_basetype_t osal_write_firmware_slothdr(osal_slotid_t slotid, osal_csmp_slot
611
611
/****************************************************************************
612
612
* @fn osal_write_storage
613
613
* @brief write data to the storage
614
- * @param[in] slotid slot id
615
- * @param[in] slot slot structure
616
- * @param[in] offset offset to write
617
- * @param[in] data data to write
618
- * @param[in] len length of data
614
+ * @param[in] slotid slot id
615
+ * @param[in] slot slot structure
616
+ * @param[in] offset offset to write
617
+ * @param[in] data data to write
618
+ * @param[in] len length of data
619
619
* @return returns 0 on success and -1 on error
620
620
*****************************************************************************/
621
621
osal_basetype_t osal_write_storage (osal_slotid_t slotid ,
@@ -624,6 +624,19 @@ osal_basetype_t osal_write_storage(osal_slotid_t slotid,
624
624
uint8_t * data ,
625
625
uint32_t len );
626
626
627
+
628
+ /****************************************************************************
629
+ * @fn osal_erase_storage
630
+ *
631
+ * @brief Erase storage.
632
+ *
633
+ * @param[in] slotid Slot ID.
634
+ * @param[in] slot Pointer to slot structure.
635
+ *
636
+ * @return Returns 0 on success and -1 on error.
637
+ *****************************************************************************/
638
+ osal_basetype_t osal_erase_storaqe (osal_slotid_t slotid , osal_csmp_slothdr_t * slot );
639
+
627
640
/****************************************************************************
628
641
* @fn osal_deploy_and_reboot_firmware
629
642
*
0 commit comments