<div dir="ltr"><div><div>Dobry den,<br><br></div>rychla pomoc, second service...<br><br>Skuste prosim vyhodit cely ten if ... endif, pretoze nemate nikde zadefinovany __XC flag. Podla mna by malo stacit nasledovne<br><br></div>
#include <xc.h> /* XC8 General Include File */<div><div><div><div class="gmail_extra"><div>#include <stdint.h> /* For uint8_t definition */</div>
<div>#include <stdbool.h> /* For true/false definition */</div><div><br><div>#include "system.h" /* System funct/params, like osc/peripheral config */</div>
<div>#include "user.h" /* User funct/params, such as InitApp */</div><div><br>...<br><br></div><div>Alebo si precitajte manual...<br><br></div>A.<br></div><br><br><br><div class="gmail_quote">2014/1/16 Jan Půhoný <span dir="ltr"><<a href="mailto:konference@puhy.cz" target="_blank">konference@puhy.cz</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Já jsem právě použil průvodce na vytvoření projektu, proto mě překvapilo, že to nejde přeložit...díky moc za Vači trpělivost ...</div>
<div><br></div><div>v main.c mám toto:</div><div><br></div><div><br>
</div><div>/******************************************************************************/</div><div>/* Files to Include */</div><div>/******************************************************************************/</div>
<div><br></div><div>#if defined(__XC)</div><div> #include <xc.h> /* XC8 General Include File */</div><div>#elif defined(HI_TECH_C)</div><div> #include <htc.h> /* HiTech General Include File */</div>
<div>#elif defined(__18CXX)</div><div> #include <p18cxxx.h> /* C18 General Include File */</div><div>#endif</div><div><br></div><div>#if defined(__XC) || defined(HI_TECH_C)</div><div><br></div><div>#include <stdint.h> /* For uint8_t definition */</div>
<div>#include <stdbool.h> /* For true/false definition */</div><div><br></div><div>#endif</div><div><br></div><div>#include "system.h" /* System funct/params, like osc/peripheral config */</div>
<div>#include "user.h" /* User funct/params, such as InitApp */</div><div><br></div><div><br></div><div><br></div><div>#define _XTAL_FREQ=20000000</div><div><br></div><div><br></div><div><br></div><div>
/******************************************************************************/</div><div>/* User Global Variable Declaration */</div><div>/******************************************************************************/</div>
<div><br></div><div>/* i.e. uint8_t <variable_name>; */</div><div><br></div><div>/******************************************************************************/</div><div>/* Main Program */</div>
<div>/******************************************************************************/</div><div><br></div><div>void main(void)</div><div>{</div><div> /* Configure the oscillator for the device */</div><div> ConfigureOscillator();</div>
<div><br></div><div> /* Initialize I/O and Peripherals for application */</div><div> InitApp();</div><div><br></div><div> /* TODO <INSERT USER APPLICATION CODE HERE> */</div><div><br></div><div> while(1)</div>
<div> {</div><div><br></div><div> PORTD=0xFF;</div><div><br></div><div> __delay_ms(1);</div><div><br></div><div> PORTD=0x00;</div><div> </div><div> __delay_ms(1);</div><div><br></div>
<div> }</div><div><br></div><div>}</div><div><br></div><br></div></blockquote></div><br></div></div></div></div></div>