Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ $(SVD_IN):

# Patch the SVD file.
stm32-rs/svd/%.svd.patched: stm32-rs/devices/%.yaml stm32-rs/svd/%.svd
svd patch $<
svdtools patch $<

# Copy the resulting SVD file to the destination location.
svd/%.svd: stm32-rs/svd/%.svd.patched
cp $< $@

# Apply changes to .yaml files.
mods:
cat mods.ed | sed '/^$$/d;/^#/d' | ed

28 changes: 28 additions & 0 deletions mods.ed
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Deactivating patches/16bit* keeps peripheral registers of
# IWDG, WWDG, SPI1 or I2C accessible as 32-bit regs.
#
e stm32-rs/devices/patches/16bit.yaml
1,$ s/^[^#]?/#inactive /
w

#e stm32-rs/devices/patches/16bit_with_mask.yaml
#1,$ s/^[^#]?/#inactive /
#w

# remove 16-bit constraints from USART registers,
# they are all 32-bit; see RM0008, p. 818
# https://www.st.com/resource/en/reference_manual/rm0008-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
#
#e stm32-rs/devices/patches/usart/v1.yaml
#/^ "\?\*"/
#.,+1 s/^ [^#]?/ #inactive /
#w

# remove 16-bit constraint of USART.GTPR
# it is a 32 bit register, with upper 16 bit reserved; see RM0090, p. 1020
# https://www.st.com/resource/en/reference_manual/dm00031020-stm32f405-415-stm32f407-417-stm32f427-437-and-stm32f429-439-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf#page=1020
#
#e stm32-rs/devices/patches/usart/f4_add_UART_GTPR.yaml
#/^ GTPR/
#+3,+5 s/size: 16/#size: 16/
#w
2 changes: 1 addition & 1 deletion stm32-rs
Submodule stm32-rs updated 191 files
Loading