/* Read All Status Flags. 
The programming error, end of operation, write protect error and busy flags are returned in the order of appearance in the status register. */
uint32_t flash_get_status_flags(void)
/* Read All Status Flags. 
The programming error, end of operation, write protect error and busy flags are returned in the order of appearance in the status register. */
uint32_t flash_get_status_flags(void)
{
	return FLASH_SR & (FLASH_SR_PGERR |
			FLASH_SR_EOP |
			FLASH_SR_WRPRTERR |
			FLASH_SR_BSY);
}