Menu

#79 SDCC template and configuration

open
nobody
None
5
2012-03-18
2012-03-18
Gál Zsolt
No

There are some changes in SDCC since the 3.1.0 version so I am having to modify the template and the result of the config generator.
SDCC use "__interrupt" instead of "interrupt" and there is similar modification with "at".
So here is my working template for PIC16F690 device:

/* ----------------------------------------------------------------------- */
/* Template source file generated by piklab */
#include <pic16f690.h>

/* ----------------------------------------------------------------------- */
/* Configuration bits: adapt to your setup and needs */

typedef unsigned int word;
word __at( 0x2007 ) CONFIG = _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_ON & _CPD_OFF & _BOR_ON & _IESO_ON & _FCMEN_ON;

void isr() __interrupt 0
{

}

void main()
{

}

I would like to ask for using __at and __interrupt in the generated template.

Discussion

  • Alain Portal

    Alain Portal - 2012-03-19

    Could you try this patch?

     
  • Alain Portal

    Alain Portal - 2012-03-19

    I didn't succeed to attach patch on this forum, so, I post the patch on the user list.

     

Log in to post a comment.