soc: arm: st_stm32: Using LL library to implement gpio functions
The original implementation of gpio functions access registers directly. Using LL library can add a set of unifying access functions for all series of stm32 for avoiding accessing low level code, and improve readability. Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
This commit is contained in:
parent
9612f9d840
commit
2fb616efbe
27 changed files with 174 additions and 565 deletions
|
@ -79,6 +79,10 @@
|
|||
#include <stm32l4xx_ll_pwr.h>
|
||||
#endif /* CONFIG_USB */
|
||||
|
||||
#ifdef CONFIG_GPIO_STM32
|
||||
#include <stm32l4xx_ll_gpio.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32L4X_SOC_H_ */
|
||||
|
|
|
@ -10,6 +10,5 @@
|
|||
|
||||
/* include register mapping headers */
|
||||
#include "flash_registers.h"
|
||||
#include "syscfg_registers.h"
|
||||
|
||||
#endif /* _STM32L4X_SOC_REGISTERS_H_ */
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 BayLibre, SAS
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef _STM32_SYSCFG_REGISTERS_H_
|
||||
#define _STM32_SYSCFG_REGISTERS_H_
|
||||
|
||||
#include "../common/soc_syscfg_common.h"
|
||||
|
||||
/* SYSCFG registers */
|
||||
struct stm32_syscfg {
|
||||
u32_t memrmp;
|
||||
u32_t cfgr1;
|
||||
union syscfg_exticr exticr1;
|
||||
union syscfg_exticr exticr2;
|
||||
union syscfg_exticr exticr3;
|
||||
union syscfg_exticr exticr4;
|
||||
u32_t scsr;
|
||||
u32_t cfgr2;
|
||||
u32_t swpr;
|
||||
u32_t skr;
|
||||
};
|
||||
|
||||
#endif /* _STM32_SYSCFG_REGISTERS_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue