summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.c
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 /pressure_control/firmware/main.c
parent10d9cf810fb316d6795b1668eee8af5102b878b2 (diff)
downloadcnc-f6bf6e1072f566c5b57ae1bf4a65c4390e0896f3.tar.xz
cnc-f6bf6e1072f566c5b57ae1bf4a65c4390e0896f3.zip
pressure_control: Fix sparse warnings
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.c')
-rw-r--r--pressure_control/firmware/main.c8
1 files changed, 4 insertions, 4 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 */
bues.ch cgit interface