Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/24/03 10:56
Read: times


 
#39890 - RE: sdcc functions
Responding to: ???'s previous message
prasad,

"are there any special functions written in SDCC as those in AVRGCC like-
loop_until_bit_is _set()"


For

loop_until_bit_is_set();

use


while(!bit_to_test);

or


while(!bit_to_test)
{
// flash an LED or something
}


SDCC will build a lookup table if you use case statements of sequential order
like this :-


swich(value)
{
case 1:
// Do something here
case 2:
// Do something here
case 3:
// Do something here
}


It's in the manual that came with SDCC, take a look at that.

Chris.

List of 7 messages in thread
TopicAuthorDate
sdcc functions            01/01/70 00:00      
   RE: sdcc functions            01/01/70 00:00      
      RE: sdcc functions            01/01/70 00:00      
      RE: sdcc functions            01/01/70 00:00      
         RE: sdcc functions/pranav            01/01/70 00:00      
   RE: sdcc functions            01/01/70 00:00      
   RE: outw()            01/01/70 00:00      

Back to Subject List