blob: 082eb464ca96b2f35794f0069462138a90599885 [file] [log] [blame]
/******************************************************************************
*(C) Copyright 2014 Marvell International Ltd.
* All Rights Reserved
******************************************************************************/
/* -------------------------------------------------------------------------------------------------------------------
*
* Filename: main.c
*
* Authors:
*
* Description: gps main
*
* HISTORY:
*
* May 26, 2015 - Initial Version
*
* Notes:
*
******************************************************************************/
/******************************************************************************
* Include files
******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "gps.h"
#include "gps_utils.h"
/******************************************************************************
* Code
******************************************************************************/
int main(int argc, char *argv[])
{
struct gps_context *gps;
GPS_LOG_INIT();
GPS_IMSG("gps version 0.1\n");
gps = gps_init(argc, argv);
if (!gps) {
GPS_EMSG("gps init failed\n");
exit(1);
}
gps_run(gps);
gps_exit(gps);
return 0;
}