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 4 matches
CCS Forum Index
Author Message
  Topic: error 51 in setup_adc_ports(...
micsch

Replies: 5
Views: 8824

PostForum: General CCS C Discussion   Posted: Tue Dec 06, 2011 7:42 am   Subject: error 51 in setup_adc_ports(...
It is amazing, when I try something like that:


tmpmask = RTCC_INTERNAL;
tmpmask |= RTCC_DIV_16;
setup_timer_0( tmpmask );
//or
tmpmask = T1_INTERNAL;
tmpmask |= T1_DIV_BY_8;
setup ...
  Topic: error 51 in setup_adc_ports(...
micsch

Replies: 5
Views: 8824

PostForum: General CCS C Discussion   Posted: Tue Dec 06, 2011 4:01 am   Subject: error 51 in setup_adc_ports(...
Hi,

why does the following instruction generate the error 51 (A numeric expression must appear here):



#include <16F913.h>
typedef unsigned int uint8_type;

uint8_type tmpma ...
  Topic: MISRA rule violation
micsch

Replies: 3
Views: 5638

PostForum: General CCS C Discussion   Posted: Tue Dec 06, 2011 3:18 am   Subject: MISRA rule violation
Probably you are right. It seems that MISRA-rule does not know these directives and generates the violation. So there is not a possibility to fix it.
I will ask this in MISRA.org.uk, maybe they know ...
  Topic: MISRA rule violation
micsch

Replies: 3
Views: 5638

PostForum: General CCS C Discussion   Posted: Tue Dec 06, 2011 1:21 am   Subject: MISRA rule violation
Hi,

I get a rule violation by MISRA (2004) when I use Pre-Processor directives like #FUSES, #device , #int_TIMER0 and so on.

The rule is:

//Configuration uC in Headerfile
#device adc=8 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group