/* Lock the Flash Program and Erase Controller, upper Bank. 
Used to prevent spurious writes to FLASH.  */
void flash_lock_upper(void)
/* Lock the Flash Program and Erase Controller, upper Bank. 
Used to prevent spurious writes to FLASH.  */
void flash_lock_upper(void)
{
	FLASH_CR2 |= FLASH_CR_LOCK;
}