Изменения на новые настройки пинов и устройств
This commit is contained in:
parent
0e89352650
commit
a8ad10b9a0
|
|
@ -566,11 +566,6 @@ flash_status_type flash_user_system_data_erase(void)
|
||||||
fap_val = 0x0000;
|
fap_val = 0x0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait for last operation to be completed */
|
|
||||||
status = flash_operation_wait_for(ERASE_TIMEOUT);
|
|
||||||
|
|
||||||
if(status == FLASH_OPERATE_DONE)
|
|
||||||
{
|
|
||||||
/* unlock the user system data */
|
/* unlock the user system data */
|
||||||
FLASH->usd_unlock = FLASH_UNLOCK_KEY1;
|
FLASH->usd_unlock = FLASH_UNLOCK_KEY1;
|
||||||
FLASH->usd_unlock = FLASH_UNLOCK_KEY2;
|
FLASH->usd_unlock = FLASH_UNLOCK_KEY2;
|
||||||
|
|
@ -600,7 +595,7 @@ flash_status_type flash_user_system_data_erase(void)
|
||||||
/*disable the usdprgm bit */
|
/*disable the usdprgm bit */
|
||||||
FLASH->ctrl_bit.usdprgm = FALSE;
|
FLASH->ctrl_bit.usdprgm = FALSE;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/* return the status */
|
/* return the status */
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
@ -625,11 +620,6 @@ flash_status_type flash_eopb0_config(flash_usd_eopb0_type data)
|
||||||
{
|
{
|
||||||
flash_status_type status = FLASH_OPERATE_DONE;
|
flash_status_type status = FLASH_OPERATE_DONE;
|
||||||
|
|
||||||
/* wait for last operation to be completed */
|
|
||||||
status = flash_operation_wait_for(ERASE_TIMEOUT);
|
|
||||||
|
|
||||||
if(status == FLASH_OPERATE_DONE)
|
|
||||||
{
|
|
||||||
/* unlock the user system data */
|
/* unlock the user system data */
|
||||||
FLASH->usd_unlock = FLASH_UNLOCK_KEY1;
|
FLASH->usd_unlock = FLASH_UNLOCK_KEY1;
|
||||||
FLASH->usd_unlock = FLASH_UNLOCK_KEY2;
|
FLASH->usd_unlock = FLASH_UNLOCK_KEY2;
|
||||||
|
|
@ -646,11 +636,12 @@ flash_status_type flash_eopb0_config(flash_usd_eopb0_type data)
|
||||||
|
|
||||||
/*disable the usdprgm bit */
|
/*disable the usdprgm bit */
|
||||||
FLASH->ctrl_bit.usdprgm = FALSE;
|
FLASH->ctrl_bit.usdprgm = FALSE;
|
||||||
}
|
|
||||||
/* return the status */
|
/* return the status */
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief program a word at a specified address.
|
* @brief program a word at a specified address.
|
||||||
* @param address: specifies the address to be programmed, word alignment is recommended.
|
* @param address: specifies the address to be programmed, word alignment is recommended.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue