From: Olivier Matz Date: Wed, 4 Mar 2015 20:46:24 +0000 (+0100) Subject: gps_venus: most functions should be static X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5ee36a23b425f1b86b836073a3ae90e7a86a42b9;p=fpv.git gps_venus: most functions should be static --- diff --git a/imuboard/gps_venus.c b/imuboard/gps_venus.c index 5d8f62b..de65055 100644 --- a/imuboard/gps_venus.c +++ b/imuboard/gps_venus.c @@ -173,13 +173,13 @@ typedef struct { } m_navmode_t; -void serial1_tx_cout(uint8_t c) +static void serial1_tx_cout(uint8_t c) { debug_printf("%.2X ", c); uart_send(GPS_UART, c); } -void venus634_send(uint8_t type, void *payload, uint16_t len) +static void venus634_send(uint8_t type, void *payload, uint16_t len) { uint8_t crc = 0, n; @@ -207,7 +207,7 @@ void venus634_send(uint8_t type, void *payload, uint16_t len) debug_printf("\n"); } -void venus634_restart(void) +static void venus634_restart(void) { m_restart_t restart; @@ -219,7 +219,8 @@ void venus634_restart(void) return; } -void venus634_config_serial(void) +__attribute__((unused)) +static void venus634_config_serial(void) { m_serconf_t serconf; @@ -233,8 +234,7 @@ void venus634_config_serial(void) return; } - -void venus634_msg_type(uint8_t mode) +static void venus634_msg_type(uint8_t mode) { m_output_t output; @@ -248,7 +248,7 @@ void venus634_msg_type(uint8_t mode) } -void venus634_rate(void) +static void venus634_rate(void) { m_rate_t rate; @@ -263,7 +263,7 @@ void venus634_rate(void) /* Wide Area Augmentation System: use ground stations to increase the precision * of gps position */ -void venus634_waas(void) +static void venus634_waas(void) { m_waas_t waas; @@ -278,7 +278,7 @@ void venus634_waas(void) /* Configure position pinning – Enable or disable position pinning of GNSS * receiver */ -void venus634_pinning(void) +static void venus634_pinning(void) { m_pinning_t pinning; @@ -290,7 +290,7 @@ void venus634_pinning(void) } /* Configure position pinning parameters */ -void venus634_pinning_params(void) +static void venus634_pinning_params(void) { m_pinning_params_t pinning_params; @@ -304,7 +304,8 @@ void venus634_pinning_params(void) /* Tell we are a car instead of a pedestrian */ -void venus634_navmode(void) +__attribute__((unused)) +static void venus634_navmode(void) { m_navmode_t navmode; @@ -318,7 +319,8 @@ void venus634_navmode(void) } /* frequency of NMEA messages */ -void venus634_nmea_interval(void) +__attribute__((unused)) +static void venus634_nmea_interval(void) { m_nmeainterval_t nmeainterval; @@ -341,7 +343,7 @@ void venus634_nmea_interval(void) return; } -int8_t recv_cb(uint8_t byte) +static int8_t recv_cb(uint8_t byte) { uint16_t i; @@ -412,7 +414,7 @@ int8_t recv_cb(uint8_t byte) return 1; } -int recv_msg(void) +static int recv_msg(void) { int ret; uint8_t irq_flags; @@ -446,7 +448,7 @@ int recv_msg(void) } } -int wait_ack(int msg_type) +static int wait_ack(int msg_type) { uint8_t irq_flags; int ret;