Files
2024-09-28 14:24:04 +08:00

40 lines
1.6 KiB
C

/****************************************************************************
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
be copied by any method or incorporated into another program without
the express written consent of Aerospace C.Power. This Information or any portion
thereof remains the property of Aerospace C.Power. The Information contained herein
is believed to be accurate and Aerospace C.Power assumes no responsibility or
liability for its use in any way and conveys no license or title under
any patent or copyright and makes no representation or warranty that this
Information is free from patent or copyright infringement.
****************************************************************************/
#include "vc_upgrade_driver.h"
/* note: we just used STM32F103RET6 */
/* define page size macro */
#define SZ_2K 0x00000800
/* fixed size pages */
static uint32_t p_2k[] = {SZ_2K, 0};
/*
* Device table, corresponds to the "Bootloader device-dependant parameters"
* table in ST document AN2606.
* Note that the option bytes upper range is inclusive!
*/
const stm32_dev_t devices[] = {
/* ID "name" SRAM-address-range */
{0x414, "STM32F10xxx High-density" , 0x20000200, 0x20010000,
/* FLASH-address-range PPS PSize Option-byte-addr-range */
0x08000000, 0x08080000, 2, p_2k , 0x1FFFF800, 0x1FFFF80F,
/* System-mem-addr-range Flags */
0x1FFFF000, 0x1FFFF800, 0},
{ /* sentinel */ }
};