summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-11-25 12:05:19 +0100
committerMichael Buesch <mb@bu3sch.de>2009-11-25 12:05:19 +0100
commitf6bf6e1072f566c5b57ae1bf4a65c4390e0896f3 (patch)
tree86939856a059b8e7ea57d8e5fb23f8547675c13e
parent10d9cf810fb316d6795b1668eee8af5102b878b2 (diff)
downloadcnc-f6bf6e1072f566c5b57ae1bf4a65c4390e0896f3.tar.xz
cnc-f6bf6e1072f566c5b57ae1bf4a65c4390e0896f3.zip
pressure_control: Fix sparse warnings
Signed-off-by: Michael Buesch <mb@bu3sch.de>
-rw-r--r--pressure_control/firmware/main.c8
-rw-r--r--pressure_control/firmware/remote.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c
index 4794434..f0671b4 100644
--- a/pressure_control/firmware/main.c
+++ b/pressure_control/firmware/main.c
@@ -38,10 +38,10 @@ struct eeprom_data {
};
/* The pressure configuration data. */
-struct pressure_config cfg_xy;
-struct pressure_config cfg_z;
+static struct pressure_config cfg_xy;
+static struct pressure_config cfg_z;
/* The pressure state data. */
-struct pressure_state state;
+static struct pressure_state state;
/* The 1000Hz jiffies counter */
static jiffies_t jiffies_counter;
/* The sensor that we're currently handling. */
@@ -182,7 +182,7 @@ ISR(TIMER1_COMPA_vect)
jiffies_counter++;
}
-void system_timer_init(void)
+static void system_timer_init(void)
{
TCCR1B = (1 << WGM12) | (1 << CS10) | (1 << CS11); /* prescaler 64 */
OCR1A = 250; /* 1kHz timer at 16MHz crystal */
diff --git a/pressure_control/firmware/remote.c b/pressure_control/firmware/remote.c
index 1911b8b..dac8d30 100644
--- a/pressure_control/firmware/remote.c
+++ b/pressure_control/firmware/remote.c
@@ -363,7 +363,7 @@ ISR(USART_RXC_vect)
}
/* Called with IRQs disabled. */
-static void usart_rx_timeout_check()
+static void usart_rx_timeout_check(void)
{
if (rx_msg_count > 0)
rx_timeout++;
bues.ch cgit interface