This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what type of data should I choose?

Hello

I have a program written in assembler for 8051, I need to change it to a program in C for STM32F103. The old program has symbols for individual bytes in memory. e.g

in NFL byte:
SAVED EQU 18H; SAVED = 1 when state was saved
PRG EQU 19H; PRG = 1 when PROGR = 1
BWK EQU 1AH; BWK = 1 when FM = 1
PLUS EQU 1BH; button was '+' pressed
MINUS EQU 1CH; button was '-' pressed
FMERR EQU 1DH; FMERR = 1 when the FM memory is not resp.
Inoc EQU 1EH; Inoc = 1 the minimum brightness of the LED

Does the C language for STM32 also have an equivalent mechanism that allows access to individual memory bits in a similar way to 8051?

0