Author |
Message |
Topic: error 51 in setup_adc_ports(... |
micsch
Replies: 5
Views: 8824
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|