void initSystem(void) { OSCCON = 0x70; //16 MHz Clock __delay_us(1); initPorts(); rs232_init(); config_init(); pocsagPhy_init(); interrupts_init(); }
void pocsagPhy_test(UINT8 tstType) { if (pocsagPhy_state != IDLE) return; if (pocsagPhy_init()) { rs232_putString("Init error"); return; } pocsagPhy_busy = 1; pocsagPhy_state = TEST; testType = tstType; }
void pocsagPhy_sendMsg(UINT16 numBytes) { if (pocsagPhy_state != IDLE) return; if (pocsagPhy_init()) { rs232_putString("Init error"); return; } pocsagPhy_busy = 1; numBytesTX = numBytes; pocsagPhy_state = SYNCH_TX; contador = PREAMBLE_LENGTH; }