47 #if !USE_HEARTBEAT && !defined(__DOXYGEN__)
139 #define u16_INTTREGlast BITS2WORD(INTTREGBITS_last)
185 TBLPAG = u32_address >> 16;
186 return ( ((
uint32_t) __builtin_tblrdh(u16_offset)) << 16) |
187 __builtin_tblrdl(u16_offset);
197 outString(
"**** SIMULATION MODE: cannot read device and revision ID ****\n");
202 const char* devIDStr =
"unknown";
203 const char* revisionStr =
"unknown";
214 #ifdef EXPECTED_REVISION2
215 case EXPECTED_REVISION2 :
216 revisionStr = EXPECTED_REVISION2_STR;
219 #ifdef EXPECTED_REVISION3
220 case EXPECTED_REVISION3 :
221 revisionStr = EXPECTED_REVISION3_STR;
224 #ifdef EXPECTED_REVISION4
225 case EXPECTED_REVISION4 :
226 revisionStr = EXPECTED_REVISION4_STR;
229 #ifdef EXPECTED_REVISION5
230 case EXPECTED_REVISION5 :
231 revisionStr = EXPECTED_REVISION5_STR;
248 "******************************************************\n"
249 "* WARNING - this program was compiled for the wrong *\n"
250 "* chip. This program may produce unexpected behvior! *\n"
251 "* Edit the header files to properly define this chip *\n"
252 "* and to insure correct operation. *\n"
254 "* NOTE: If this was compiled for the correct chip, *\n"
255 "* and only occurs at power-on (not during a MCLR *\n"
256 "* reset), verify that AVDD and AVSS are connected. *\n"
257 "* On the PIC24H32GP202, not connecting AVDD *\n"
258 "* produces this message only at power-up. *\n"
259 "******************************************************\n");
281 outString(
"Primary Osc (XT, HS, EC) with PLL\n");
289 #if ( defined(__PIC24H__) || defined(__dsPIC33F__) || defined(__PIC24E__) || defined(__dsPIC33E__))
296 #elif ( defined(__PIC24F__) || defined(__PIC24FK__) )
301 #error Unknown processor
316 u8_resetIdentified = 0;
318 outString(
"\nDevice has been in sleep mode\n");
322 outString(
"\nDevice has been in idle mode\n");
327 u8_resetIdentified = 1;
341 u8_resetIdentified = 1;
346 u8_resetIdentified = 1;
356 u8_resetIdentified = 1;
361 u8_resetIdentified = 1;
366 u8_resetIdentified = 1;
371 u8_resetIdentified = 1;
377 u8_resetIdentified = 1;
384 if (!u8_resetIdentified) {
391 #if ( defined(__PIC24H__) || defined(__dsPIC33F__) || defined(__PIC24E__) || defined(__dsPIC33E__) )
424 #if (defined(__PIC24HJ32GP202__) || \
425 defined(__PIC24FJ64GA002__) || \
426 defined(__PIC24FJ64GA102__))
432 #if defined(__PIC24F__)
434 #elif defined(__PIC24H__)
437 #error Unknown processor
446 #if (FNOSC_SEL == FNOSC_PRI) || (FNOSC_SEL == FNOSC_PRIPLL)
447 #if (POSCMD_SEL == POSCMD_EC)
460 #endif // #if (POSCMD_SEL == POSCMD_EC)
461 #else // The primary oscillator is not selected
469 #
if defined(__PIC24H__) || defined(__dsPIC33F__)
471 #elif defined(__PIC24F__) || defined(__PIC24FK__)
474 #error Unsupported processor.
486 #warning Using dummy function for configPinsForLowPower() in 'common/pic24_util.c'
518 if ((f_x - u32_y) < 0.5)
return u32_y;
530 if ((f_x - u16_y) < 0.5)
return u16_y;