*/
-// This is where we go after reset.
-int main(int argc, char **argv)
+static void
+audio_gap(int secs)
{
- uint8_t utcSeconds, lockLostCounter;
-
-//test();
+ int samples = secs * 9600;
- // Configure the basic systems.
-// sysInit();
-
- // Wait for the power converter chains to stabilize.
-// delay_ms (100);
+ while (samples--)
+ putchar(0x7f);
+}
- // Setup the subsystems.
-// adcInit();
-// flashInit();
+// This is where we go after reset.
+int main(int argc, char **argv)
+{
+ uint8_t utcSeconds, lockLostCounter, i;
gpsInit();
-// logInit();
-// timeInit();
-// serialInit();
tncInit();
- // Program the DDS.
-// ddsInit();
-
+ audio_gap(1);
// Transmit software version packet on start up.
tncTxPacket(TNC_MODE_1200_AFSK);
- exit(0);
// Counters to send packets if the GPS time stamp is not available.
lockLostCounter = 5;
utcSeconds = 55;
// This is the main loop that process GPS data and waits for the once per second timer tick.
- for (;;)
+ for (i = 0; i < 5; i++)
{
+ audio_gap(10);
// Read the GPS engine serial port FIFO and process the GPS data.
// gpsUpdate();
} // END if timeIsUpdate
} // END for
+ return 0;
}