Browse Source

stm32l0: add missing base addresses for usart4/5, gpioe

Reported-by: massic@irc
Fixes: 623fabca5f when we initially added these extra periphs
pull/1332/head
Karl Palsson 4 years ago
parent
commit
4f71527881
  1. 1
      include/libopencm3/stm32/l0/gpio.h
  2. 3
      include/libopencm3/stm32/l0/memorymap.h

1
include/libopencm3/stm32/l0/gpio.h

@ -46,6 +46,7 @@
#define GPIOB_BRR GPIO_BRR(GPIOB)
#define GPIOC_BRR GPIO_BRR(GPIOC)
#define GPIOD_BRR GPIO_BRR(GPIOD)
#define GPIOE_BRR GPIO_BRR(GPIOE)
#define GPIOH_BRR GPIO_BRR(GPIOH)
/*****************************************************************************/

3
include/libopencm3/stm32/l0/memorymap.h

@ -45,6 +45,8 @@
#define SPI2_BASE (PERIPH_BASE_APB1 + 0x3800)
#define USART2_BASE (PERIPH_BASE_APB1 + 0x4400)
#define LPUART1_BASE (PERIPH_BASE_APB1 + 0x4800)
#define USART4_BASE (PERIPH_BASE_APB1 + 0x4c00)
#define USART5_BASE (PERIPH_BASE_APB1 + 0x5000)
#define I2C1_BASE (PERIPH_BASE_APB1 + 0x5400)
#define I2C2_BASE (PERIPH_BASE_APB1 + 0x5800)
#define USB_DEV_FS_BASE (PERIPH_BASE_APB1 + 0x5c00)
@ -80,6 +82,7 @@
#define GPIO_PORT_B_BASE (IOPORT_BASE + 0x00400)
#define GPIO_PORT_C_BASE (IOPORT_BASE + 0x00800)
#define GPIO_PORT_D_BASE (IOPORT_BASE + 0x00c00)
#define GPIO_PORT_E_BASE (IOPORT_BASE + 0x01000)
#define GPIO_PORT_H_BASE (IOPORT_BASE + 0x01C00)
/* Device Electronic Signature */

Loading…
Cancel
Save