diff options
| author | guanwenliang <[email protected]> | 2019-02-18 15:32:45 +0800 |
|---|---|---|
| committer | guanwenliang <[email protected]> | 2019-02-18 15:32:45 +0800 |
| commit | 7534ec57692e4d103ffb38062dac61ac35ef1b5f (patch) | |
| tree | 92e8dd6d561f21a96a562b1d18a11def9c9b9f1d | |
| parent | 9a9a7b35935c94850164085d781188c1f324b446 (diff) | |
Add fal_cfg.h
| -rw-r--r-- | bsp/stm32/stm32g071-st-nucleo/board/Kconfig | 4 | ||||
| -rw-r--r-- | bsp/stm32/stm32g071-st-nucleo/board/ports/fal_cfg.h | 34 |
2 files changed, 36 insertions, 2 deletions
diff --git a/bsp/stm32/stm32g071-st-nucleo/board/Kconfig b/bsp/stm32/stm32g071-st-nucleo/board/Kconfig index 3ef8334766..8766f9943f 100644 --- a/bsp/stm32/stm32g071-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32g071-st-nucleo/board/Kconfig @@ -141,11 +141,11 @@ menu "On-chip Peripheral Drivers" if BSP_USING_I2C1 config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" - range 0 63 + range 0 47 default 22 config BSP_I2C1_SDA_PIN int "I2C1 sda pin number" - range 0 63 + range 0 47 default 23 endif diff --git a/bsp/stm32/stm32g071-st-nucleo/board/ports/fal_cfg.h b/bsp/stm32/stm32g071-st-nucleo/board/ports/fal_cfg.h new file mode 100644 index 0000000000..ee65e188d9 --- /dev/null +++ b/bsp/stm32/stm32g071-st-nucleo/board/ports/fal_cfg.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-12-8 zylx first version + */ + +#ifndef _FAL_CFG_H_ +#define _FAL_CFG_H_ + +#include <rtthread.h> +#include <board.h> + +extern const struct fal_flash_dev stm32_onchip_flash; + +/* flash device table */ +#define FAL_FLASH_DEV_TABLE \ +{ \ + &stm32_onchip_flash, \ +} +/* ====================== Partition Configuration ========================== */ +#ifdef FAL_PART_HAS_TABLE_CFG + +/* partition table */ +#define FAL_PART_TABLE \ +{ \ + {FAL_PART_MAGIC_WROD, "app", "onchip_flash", 0, 112 * 1024, 0}, \ + {FAL_PART_MAGIC_WROD, "param", "onchip_flash", 112 * 1024 , 16 * 1024, 0}, \ +} +#endif /* FAL_PART_HAS_TABLE_CFG */ +#endif /* _FAL_CFG_H_ */ |
