66,21 → 66,21 |
setup_timer_2(T2_DISABLED,0,1); |
setup_ccp1(CCP_OFF); |
setup_comparator(NC_NC_NC_NC); // This device COMP currently not supported by the PICWizard |
setup_oscillator(OSC_8MHZ); |
setup_wdt(WDT_1152MS|WDT_DIV_16); |
// setup_oscillator(OSC_8MHZ); // pri prouziti bootloaderu neni treba nastavovat |
// setup_wdt(WDT_1152MS|WDT_DIV_16); |
setup_spi(SPI_MASTER | SPI_MODE_0 | SPI_CLK_DIV_64); |
output_high(CSN_SPI); |
|
delay_ms(100); |
|
welcome(); // welocome print and device indentification |
welcome(); // welcome print and device indentification |
|
sht_init(); |
MPL_init(); // get correction coefficients from the sensor |
|
enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings |
enable_interrupts(INT_TIMER0); |
enable_interrupts(GLOBAL); |
// enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings |
// enable_interrupts(INT_TIMER0); |
// enable_interrupts(GLOBAL); |
|
while (TRUE) |
{ |