summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-02-04 22:24:37 -0800
committerKeith Packard <keithp@keithp.com>2019-02-18 13:08:23 -0800
commitc11427819ca24bb77523496309b5b6f699d126c5 (patch)
tree29cab045cde088881d971b175708245b17d09ce6 /src/drivers
parent119a829e58aff5dd7801fe7ef8cae886bf31fec1 (diff)
altos: Mark local functions 'static'
Working towards supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/ao_btm.c26
-rw-r--r--src/drivers/ao_cc115l.c2
-rw-r--r--src/drivers/ao_companion.c4
-rw-r--r--src/drivers/ao_gps_skytraq.c4
-rw-r--r--src/drivers/ao_hmc5883.c2
-rw-r--r--src/drivers/ao_lco.c4
-rw-r--r--src/drivers/ao_lco_two.c2
-rw-r--r--src/drivers/ao_packet_master.c2
-rw-r--r--src/drivers/ao_packet_slave.c2
-rw-r--r--src/drivers/ao_pad.c8
-rw-r--r--src/drivers/ao_rn4678.c4
11 files changed, 30 insertions, 30 deletions
diff --git a/src/drivers/ao_btm.c b/src/drivers/ao_btm.c
index 04bf4138..71599fbd 100644
--- a/src/drivers/ao_btm.c
+++ b/src/drivers/ao_btm.c
@@ -187,7 +187,7 @@ ao_btm_getchar(void)
* it after a few characters.
*/
-uint8_t
+static uint8_t
ao_btm_get_line(void)
{
uint8_t ao_btm_reply_len = 0;
@@ -209,8 +209,8 @@ ao_btm_get_line(void)
/*
* Drain the serial port completely
*/
-void
-ao_btm_drain()
+static void
+ao_btm_drain(void)
{
while (ao_btm_get_line())
;
@@ -219,7 +219,7 @@ ao_btm_drain()
/*
* Set the stdio echo for the bluetooth link
*/
-void
+static void
ao_btm_echo(uint8_t echo)
{
ao_stdios[ao_btm_stdio].echo = echo;
@@ -230,7 +230,7 @@ ao_btm_echo(uint8_t echo)
* can't keep up with 57600 baud
*/
-void
+static void
ao_btm_putchar(char c)
{
ao_btm_log_out_char(c);
@@ -242,7 +242,7 @@ ao_btm_putchar(char c)
* Wait for the bluetooth device to return
* status from the previously executed command
*/
-uint8_t
+static uint8_t
ao_btm_wait_reply(void)
{
for (;;) {
@@ -256,7 +256,7 @@ ao_btm_wait_reply(void)
}
}
-void
+static void
ao_btm_string(const char *cmd)
{
char c;
@@ -265,7 +265,7 @@ ao_btm_string(const char *cmd)
ao_btm_putchar(c);
}
-uint8_t
+static uint8_t
ao_btm_cmd(const char *cmd)
{
ao_btm_drain();
@@ -282,7 +282,7 @@ ao_btm_cmd(const char *cmd)
return ao_btm_wait_reply();
}
-uint8_t
+static uint8_t
ao_btm_set_name(void)
{
char sn[8];
@@ -301,7 +301,7 @@ ao_btm_set_name(void)
return ao_btm_wait_reply();
}
-uint8_t
+static uint8_t
ao_btm_try_speed(uint8_t speed)
{
ao_serial_btm_set_speed(speed);
@@ -329,8 +329,8 @@ ao_btm_try_speed(uint8_t speed)
#define BT_CC1111 1
#endif
-void
-ao_btm_check_link()
+static void
+ao_btm_check_link(void)
{
#if BT_CC1111
ao_arch_critical(
@@ -362,7 +362,7 @@ struct ao_task ao_btm_task;
* A thread to initialize the bluetooth device and
* hang around to blink the LED when connected
*/
-void
+static void
ao_btm(void)
{
#ifdef AO_BTM_INT_PORT
diff --git a/src/drivers/ao_cc115l.c b/src/drivers/ao_cc115l.c
index a8f2c4f5..2b5fd3fd 100644
--- a/src/drivers/ao_cc115l.c
+++ b/src/drivers/ao_cc115l.c
@@ -596,7 +596,7 @@ uint8_t ao_radio_tone_count;
uint8_t ao_radio_tone_current;
uint8_t ao_radio_tone_offset;
-int16_t
+static int16_t
ao_radio_tone_fill(uint8_t *buf, int16_t len)
{
int16_t ret = 0;
diff --git a/src/drivers/ao_companion.c b/src/drivers/ao_companion.c
index 44868fb6..d6fbb6b7 100644
--- a/src/drivers/ao_companion.c
+++ b/src/drivers/ao_companion.c
@@ -93,7 +93,7 @@ ao_companion_notify(void)
COMPANION_DESELECT();
}
-void
+static void
ao_companion(void)
{
uint8_t i;
@@ -113,7 +113,7 @@ ao_companion(void)
ao_exit();
}
-void
+static void
ao_companion_status(void)
{
uint8_t i;
diff --git a/src/drivers/ao_gps_skytraq.c b/src/drivers/ao_gps_skytraq.c
index 193f20dc..f767118a 100644
--- a/src/drivers/ao_gps_skytraq.c
+++ b/src/drivers/ao_gps_skytraq.c
@@ -88,7 +88,7 @@ ao_gps_lexchar(void)
ao_gps_char = c;
}
-void
+static void
ao_gps_skip_field(void)
{
for (;;) {
@@ -99,7 +99,7 @@ ao_gps_skip_field(void)
}
}
-void
+static void
ao_gps_skip_sep(void)
{
char c = ao_gps_char;
diff --git a/src/drivers/ao_hmc5883.c b/src/drivers/ao_hmc5883.c
index f4705708..55a193ac 100644
--- a/src/drivers/ao_hmc5883.c
+++ b/src/drivers/ao_hmc5883.c
@@ -66,7 +66,7 @@ ao_hmc5883_isr(void)
static uint32_t ao_hmc5883_missed_irq;
-void
+static void
ao_hmc5883_sample(struct ao_hmc5883_sample *sample)
{
uint16_t *d = (uint16_t *) sample;
diff --git a/src/drivers/ao_lco.c b/src/drivers/ao_lco.c
index 5f5db572..b314ef7c 100644
--- a/src/drivers/ao_lco.c
+++ b/src/drivers/ao_lco.c
@@ -269,7 +269,7 @@ ao_lco_input(void)
* visually inspect the system for correct operation
*/
static void
-ao_lco_display_test()
+ao_lco_display_test(void)
{
ao_mutex_get(&ao_lco_display_mutex);
ao_seven_segment_set(AO_LCO_PAD_DIGIT, 8 | 0x10);
@@ -316,7 +316,7 @@ ao_lco_main(void)
}
#if DEBUG
-void
+static void
ao_lco_set_debug(void)
{
uint16_t r = ao_cmd_decimal();
diff --git a/src/drivers/ao_lco_two.c b/src/drivers/ao_lco_two.c
index 49ea1236..cfef2a63 100644
--- a/src/drivers/ao_lco_two.c
+++ b/src/drivers/ao_lco_two.c
@@ -121,7 +121,7 @@ ao_lco_main(void)
}
#if DEBUG
-void
+static void
ao_lco_set_debug(void)
{
uint16_t r = ao_cmd_decimal();
diff --git a/src/drivers/ao_packet_master.c b/src/drivers/ao_packet_master.c
index 68a5efef..e67dd27f 100644
--- a/src/drivers/ao_packet_master.c
+++ b/src/drivers/ao_packet_master.c
@@ -83,7 +83,7 @@ ao_packet_master_check_busy(void)
ao_packet_master_delay = AO_PACKET_MASTER_DELAY_LONG;
}
-void
+static void
ao_packet_master(void)
{
ao_config_get();
diff --git a/src/drivers/ao_packet_slave.c b/src/drivers/ao_packet_slave.c
index 3ae1138c..a5834799 100644
--- a/src/drivers/ao_packet_slave.c
+++ b/src/drivers/ao_packet_slave.c
@@ -18,7 +18,7 @@
#include "ao.h"
-void
+static void
ao_packet_slave(void)
{
ao_tx_packet.addr = ao_serial_number;
diff --git a/src/drivers/ao_pad.c b/src/drivers/ao_pad.c
index 85691f5c..eeb9b505 100644
--- a/src/drivers/ao_pad.c
+++ b/src/drivers/ao_pad.c
@@ -176,7 +176,7 @@ ao_pad_run(void)
* AO_PAD_R_IGNITER_SENSE_GND Resistors from igniter sense ADC inputs to ground
*/
-int16_t
+static int16_t
ao_pad_decivolt(int16_t adc, int16_t r_plus, int16_t r_minus)
{
int32_t mul = (int32_t) AO_ADC_REFERENCE_DV * (r_plus + r_minus);
@@ -472,7 +472,7 @@ ao_pad(void)
}
}
-void
+static void
ao_pad_test(void)
{
uint8_t c;
@@ -501,7 +501,7 @@ ao_pad_test(void)
}
}
-void
+static void
ao_pad_manual(void)
{
uint8_t ignite;
@@ -529,7 +529,7 @@ static struct ao_task ao_pad_ignite_task;
static struct ao_task ao_pad_monitor_task;
#if DEBUG
-void
+static void
ao_pad_set_debug(void)
{
uint16_t r = ao_cmd_decimal();
diff --git a/src/drivers/ao_rn4678.c b/src/drivers/ao_rn4678.c
index 4ace4b78..4d13decc 100644
--- a/src/drivers/ao_rn4678.c
+++ b/src/drivers/ao_rn4678.c
@@ -116,7 +116,7 @@ static AO_TICK_TYPE ao_rn_buf_time;
* disabled due to a firmware bug. So, this code finds those in the
* input and strips them out.
*/
-int
+static int
_ao_wrap_rn_pollchar(void)
{
int c = AO_READ_AGAIN;
@@ -368,7 +368,7 @@ static uint8_t ao_rn_stdio;
/*
* Set the stdio echo for the bluetooth link
*/
-void
+static void
ao_rn_echo(uint8_t echo)
{
ao_stdios[ao_rn_stdio].echo = echo;