lable for register

I have a problem with labels for registers (STM32).
For ex. the code below:


    AREA asm_area, CODE, READONLY
        EXPORT  asm_check_inputs

chan_val        equ r0

asm_check_inputs
        mov             chan_val,#0x200
        nop

        END

Causes error:
error: A1647E: Bad register name symbol, expected Integer register
If I use r0 directly, it's ok.

Does anybody know what's wrong?

More questions in this forum