[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] inline asm problem
From: |
Artur Lipowski |
Subject: |
Re: [avr-gcc-list] inline asm problem |
Date: |
Thu, 12 Feb 2004 08:24:49 +0100 |
User-agent: |
Mozilla Thunderbird 0.5 (Windows/20040207) |
whiteman wrote:
> hi,all:
> I want to write a simple inline asm statement in "main" function. but
> when compiling the source, I always received a 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));
Your case is described in the avr-libc documentation, read it please.
Hint: Related Pages/Inline Asm/GCC asm Statement
Regards,
--
Artur Lipowski