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

Search found 3 matches
CCS Forum Index
Author Message
  Topic: CCP1 Capture Interrupt Latency (18F452)
Flowmeter

Replies: 17
Views: 54924

PostForum: General CCS C Discussion   Posted: Tue Oct 29, 2013 2:03 am   Subject: CCP1 Capture Interrupt Latency (18F452)
Thank you for your answer. So I try to get an answer from MicroChip and if not I will have to switch to CCS Smile

Thanks again.

By the way changing it to:

#define BytePtr(var, offset) ((char*)&a ...
  Topic: CCP1 Capture Interrupt Latency (18F452)
Flowmeter

Replies: 17
Views: 54924

PostForum: General CCS C Discussion   Posted: Tue Oct 29, 2013 1:45 am   Subject: Syntax error
Thank you very much for your reply.

When I change the line to the suggested code
#define BytePtr(var, offset) (&(char)var + offset))

I receive a syntax error e.g. for this line

*BytePtr( ...
  Topic: CCP1 Capture Interrupt Latency (18F452)
Flowmeter

Replies: 17
Views: 54924

PostForum: General CCS C Discussion   Posted: Tue Oct 29, 2013 1:09 am   Subject: Problem with BytePtr
Hi, I have used the code presented in this thread but have problems with the BytePtr

A quick test shows:

#define BytePtr(var, offset) (char*)(&var + offset)

INT32 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group