CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Does my bootloader use interrupts??

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
moutinho



Joined: 12 May 2005
Posts: 31
Location: BRAZIL

View user's profile Send private message Visit poster's website MSN Messenger

Does my bootloader use interrupts??
PostPosted: Tue Nov 28, 2006 8:14 pm     Reply with quote

Hi,

I am implementing a bootloader that uses serial to receive hex data using the #use rs232 directive and get/put commands.
Does my code use interrupts? Do I have to pay attention to interrupts redirection?

Thanks,
Andre
Ttelmah
Guest







PostPosted: Wed Nov 29, 2006 3:02 am     Reply with quote

Getc, and putc, do not themselves use interrupts. You are only using interrupts, if you have a #int directive. The question though is what you 'main' code uses, rather than what the bootloader does.

Best Wishes
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Nov 29, 2006 3:27 am     Reply with quote

Quote:
Do I have to pay attention to interrupts redirection?
You only have to redirect interrupts when:
1) Your bootloader is at the start of memory.
or
2) The bootloader is _not_ at the start of memory and using interrupts.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group