Skip to main content
botm
Visitor II
August 3, 2021
Question

register definitions file (like stm32l053xx.h) includeable in assembly?

Hello,

I hopefully selected proper category, forgive me if not.

I have the following question.

There are files like for example /CMSIS/device/stm32l053xx.h

(or similar files for other devices)

which include useful definitions of addresses of all the peripheral registers, bits, etc.

However these files can only be included in C, and not in assembly,

(because they contain things not supported by assembly like typedefs, structs, etc.)

My question now is:

Are there provided similar files but usable in assembly? (where can I find?)

Or am I forced to prepare my own file and write all the needed definitions by myself?

Thank You in advance,

B

This topic has been closed for replies.

1 reply

Peter BENSCH
ST Technical Moderator
August 4, 2021

STM32L053 is no MPU, thread therefore moved to STM32 MCUs.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.