/* Enables or disables the read/write protection (PCROP) of the desired sectors, for the first 1 MB of the Flash.  */
void FLASH_OB_PCROPConfig(uint32_t OB_PCROP, FunctionalState NewState)
/* Enables or disables the read/write protection (PCROP) of the desired sectors, for the first 1 MB of the Flash.  */
void FLASH_OB_PCROPConfig(uint32_t OB_PCROP, FunctionalState NewState)
{ 
  FLASH_Status status = FLASH_COMPLETE;
  assert_param(IS_OB_PCROP(OB_PCROP));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  status = FLASH_WaitForLastOperation();
  if(status == FLASH_COMPLETE)
  { 
    if(NewState != DISABLE)
    {
      *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)OB_PCROP;    
    }
    else
    {
      *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~OB_PCROP);
    }
  }
}