]> www.fi.muni.cz Git - bike-lights.git/commitdiff
ambient light: consistent init function naming
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 10:09:11 +0000 (11:09 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 10:09:11 +0000 (11:09 +0100)
firmware/ambient.c
firmware/lights.h
firmware/main.c

index ffe7740f7c1b4d4644d6c45763d910fffb5752bb..f6f52202f35a5738a60e7a70d1308539618cf399 100644 (file)
@@ -11,7 +11,7 @@ static uint16_t ambient_zones[] = {
 };
 #define N_AMBIENT_ZONES (sizeof(ambient_zones)/sizeof(ambient_zones[0]))
 
-void ambient_init()
+void init_ambient()
 {
        ambient_val = 0;
        ambient_zone = 0;
index 939bb193d8d6b7252b6df3ccfd3b80eaa9a4be6c..826c2c6faf33fe5e010408811505e9477e695e4e 100644 (file)
@@ -55,7 +55,7 @@ void susp_gpio();
 void gpio_set(unsigned char n, unsigned char on);
 
 /* ambient.c */
-void ambient_init();
+void init_ambient();
 extern volatile unsigned char ambient_zone;
 void ambient_adc(uint16_t adc_val);
 
index c8d1dd2aef5f60cac7c16cd80a3bce4960286d90..f8ae5c14b93291454993fb4d7e184313008fe98c 100644 (file)
@@ -19,7 +19,7 @@ static void hw_setup()
 
        init_pwmled();
        init_gpio();
-       ambient_init();
+       init_ambient();
        pattern_init();
 
        set_sleep_mode(SLEEP_MODE_IDLE);