summaryrefslogtreecommitdiff
path: root/src/stm
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm')
-rw-r--r--src/stm/ao_arch.h2
-rw-r--r--src/stm/ao_arch_funcs.h2
-rw-r--r--src/stm/ao_exti.h4
-rw-r--r--src/stm/ao_exti_stm.c2
-rw-r--r--src/stm/ao_profile.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/stm/ao_arch.h b/src/stm/ao_arch.h
index e56375ca..52576b47 100644
--- a/src/stm/ao_arch.h
+++ b/src/stm/ao_arch.h
@@ -119,7 +119,7 @@ void ao_lcd_font_string(char *s);
extern const uint32_t ao_radio_cal;
void
-ao_adc_init();
+ao_adc_init(void);
/* ADC maximum reported value */
#define AO_ADC_MAX 4095
diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h
index 41f1bf91..e55ecb74 100644
--- a/src/stm/ao_arch_funcs.h
+++ b/src/stm/ao_arch_funcs.h
@@ -452,7 +452,7 @@ ao_arch_irqrestore(uint32_t basepri) {
}
static inline void
-ao_arch_memory_barrier() {
+ao_arch_memory_barrier(void) {
asm volatile("" ::: "memory");
}
diff --git a/src/stm/ao_exti.h b/src/stm/ao_exti.h
index 8aa2bdca..1d19a48f 100644
--- a/src/stm/ao_exti.h
+++ b/src/stm/ao_exti.h
@@ -30,13 +30,13 @@
#define AO_EXTI_PIN_NOCONFIGURE 64
void
-ao_exti_setup(struct stm_gpio *gpio, uint8_t pin, uint8_t mode, void (*callback)());
+ao_exti_setup(struct stm_gpio *gpio, uint8_t pin, uint8_t mode, void (*callback)(void));
void
ao_exti_set_mode(struct stm_gpio *gpio, uint8_t pin, uint8_t mode);
void
-ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)());
+ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)(void));
void
ao_exti_enable(struct stm_gpio *gpio, uint8_t pin);
diff --git a/src/stm/ao_exti_stm.c b/src/stm/ao_exti_stm.c
index 2491b609..3a2748a9 100644
--- a/src/stm/ao_exti_stm.c
+++ b/src/stm/ao_exti_stm.c
@@ -135,7 +135,7 @@ ao_exti_set_mode(struct stm_gpio *gpio, uint8_t pin, uint8_t mode) {
}
void
-ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)()) {
+ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)(void)) {
(void) gpio;
ao_exti_callback[pin] = callback;
}
diff --git a/src/stm/ao_profile.h b/src/stm/ao_profile.h
index 3bf8c0b0..68aac001 100644
--- a/src/stm/ao_profile.h
+++ b/src/stm/ao_profile.h
@@ -19,7 +19,7 @@
#ifndef _AO_PROFILE_H_
#define _AO_PROFILE_H_
-void ao_profile_init();
+void ao_profile_init(void);
static inline uint32_t ao_profile_tick(void) {
uint16_t hi, lo, second_hi;