Skip to content

Commit 970f68f

Browse files
bors[bot]andreas-karg-bluefruitadamgreig
authored
Merge #552
552: Fix LCD RAM_COM register size on L4x6 r=adamgreig a=AndreasKarg - Make RAM_COM registers bigger - Replace individual segment flags with one 40-bit field # Note If I understand https://www.st.com/content/st_com/en/search.html#q=lcd-t=products-page=1 and the reference manual (RM0351) right, the L4x6 is the only L4 with this LCD peripheral. The SVDs for the 4x1, 2, 3 and 5 seem to contain the same peripheral definition though. Due to this contradiction, I have only applied the patch to the 4x6 for now. If someone could throw another pair of eyes on the documentation and confirm whether the other chips do or don't have this peripheral, I'm happy to update the PR and patch those as well. If it turns out that the SVDs are wrong and the LCD peripherals don't exist, I suggest tackling that in a separate PR. Co-authored-by: Andreas Karg <andreas.karg@bluefruit.co.uk> Co-authored-by: Adam Greig <adam@adamgreig.com>
2 parents 39d4255 + 6e18aa3 commit 970f68f

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# LCD RAM_COM registers are 64 bit wide, not 32.
2+
LCD:
3+
_modify:
4+
RAM_COM?:
5+
size: 0x40
6+
RAM_COM?:
7+
_delete:
8+
- "S??"
9+
_add:
10+
SEGS:
11+
description: "Segment states, one bit per segment, LSB: S00, MSB: S39"
12+
bitOffset: 0
13+
bitWidth: 40
14+
_array:
15+
"RAM_COM?": {}

devices/stm32l4x3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,4 @@ _include:
157157
- ./common_patches/l4_adc_sqr1.yaml
158158
- ./common_patches/l4_spi.yaml
159159
- ../peripherals/spi/spi_l4.yaml
160+
- ./common_patches/l4_lcd_segment.yaml

devices/stm32l4x6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ _include:
7676
- ../peripherals/dma/dma2d_v1.yaml
7777
- ./common_patches/l4_spi.yaml
7878
- ../peripherals/spi/spi_l4.yaml
79+
- ./common_patches/l4_lcd_segment.yaml

0 commit comments

Comments
 (0)