avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] inline asm problem


From: whiteman
Subject: Re: [avr-gcc-list] inline asm problem
Date: Sat, 14 Feb 2004 9:3:0 +0800

hi,Clemens Buchacher!
    I think you are right! thanks!
        

======= 2004-02-13 01:59:00 :=======

>On Thu, Feb 12, 2004 at 09:18:37AM +0800, whiteman wrote:
>[...]
>>        error message "pwm.c:27: error: impossible constraint in
>>        `asm'". what's meaning?
>> My inline asm is :
>>                      asm volatile("sbi 0,1" : "=I"(PORTC) : "I"(6));
>
>The sbi instruction uses I/O register addresses, so you will have to use
>_SFR_IO_ADDR(PORTC) if PORTC is in this address range (see
><avr/sfr_defs.h> for details). If it is not, you cannot use the sbi
>instruction at all.
>
>hth,
>Clemens
>
>_______________________________________________
>avr-gcc-list mailing list
>address@hidden
>http://www.avr1.org/mailman/listinfo/avr-gcc-list

= = = = = = = = = = = = = = = = = = = =
                        

Regards
                                
        whiteman
address@hidden
          2004-02-14






reply via email to

[Prev in Thread] Current Thread [Next in Thread]