/**
  ******************************************************************************
  * @file    Flash_user.h
  * @author  SINOMCU-AE
  * @brief   Header file of Flash_user.c file.
  * 
  *          This file describes the Flash user macro definitions used:
  * test flash page address,test len.
  *    
  ******************************************************************************
  * @attention 
  *                           DISCLAIMER
  * The present firmware which is for guidance only aims at providing customers
  * with coding information regarding their products in order for them to save
  * time. As a result, SinoMCU shall not be held liable for any direct,indirect
  * or consequential damages with respect to any claims arising from the content 
  * of such firmware and/or the use made by customers of the coding information 
  * contained herein in connection with their products.
  *
  * <h2><center>&copy; Copyright (c) 2021 sinomcu All rights reserved.</center></h2>
  *
  ******************************************************************************
  */

#ifndef __FLASH_USER_H
#define __FLASH_USER_H

#include "ms32f0xx.h"

#define MS32F031A6_MAIN_FLASH_LAST_PAGE_ADD    0x08007C00  // 32K Flash,last page start address

#define FLASH_RW_TEST_PAGE_ADD                 ( MS32F031A6_MAIN_FLASH_LAST_PAGE_ADD )

#define TEST_FLASH_BUFF_LEN                    20          // no more than one page size(MS32F031 1K)

ErrorStatus Flash_Write_Read_test(void);

#endif /* __FLASH_USER_H */ 

/******************************** END OF FILE *********************************/
