summaryrefslogtreecommitdiff
path: root/src/stmf0
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/stmf0
parent119a829e58aff5dd7801fe7ef8cae886bf31fec1 (diff)
altos: Mark local functions 'static'
Working towards supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stmf0')
-rw-r--r--src/stmf0/ao_interrupt.c4
-rw-r--r--src/stmf0/ao_usb_stm.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/stmf0/ao_interrupt.c b/src/stmf0/ao_interrupt.c
index 81878d89..ab835bac 100644
--- a/src/stmf0/ao_interrupt.c
+++ b/src/stmf0/ao_interrupt.c
@@ -43,12 +43,12 @@ extern char __interrupt_rom__, __interrupt_start__, __interrupt_end__;
/* Interrupt functions */
-void stm_halt_isr(void)
+static void stm_halt_isr(void)
{
ao_panic(AO_PANIC_CRASH);
}
-void stm_ignore_isr(void)
+static void stm_ignore_isr(void)
{
}
diff --git a/src/stmf0/ao_usb_stm.c b/src/stmf0/ao_usb_stm.c
index ff294849..b736d389 100644
--- a/src/stmf0/ao_usb_stm.c
+++ b/src/stmf0/ao_usb_stm.c
@@ -245,7 +245,7 @@ static inline uint32_t ao_usb_epr_sw_buf_rx(uint32_t epr) {
* Set current device address and mark the
* interface as active
*/
-void
+static void
ao_usb_set_address(uint8_t address)
{
debug("ao_usb_set_address %02x\n", address);
@@ -957,7 +957,7 @@ ao_usb_ep0_handle(uint8_t receive)
}
#if AO_POWER_MANAGEMENT
-void
+static void
ao_usb_suspend(void)
{
stm_usb.cntr |= (1 << STM_USB_CNTR_FSUSP);
@@ -966,7 +966,7 @@ ao_usb_suspend(void)
ao_clock_suspend();
}
-void
+static void
ao_usb_wakeup(void)
{
ao_clock_resume();
@@ -1371,7 +1371,7 @@ _ao_usb_out_recv(void)
_rx_dbg1("out_recv count", ao_usb_rx_count);
}
-int
+static int
_ao_usb_pollchar(void)
{
uint8_t c;