summaryrefslogtreecommitdiff
path: root/firmware/target/sh
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh')
-rw-r--r--firmware/target/sh/archos/fm_v2/backlight-target.h6
-rw-r--r--firmware/target/sh/archos/ondio/backlight-target.h6
-rw-r--r--firmware/target/sh/archos/player/backlight-target.h6
-rw-r--r--firmware/target/sh/archos/recorder/backlight-target.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/firmware/target/sh/archos/fm_v2/backlight-target.h b/firmware/target/sh/archos/fm_v2/backlight-target.h
index 834d10bdc6..693e2c8200 100644
--- a/firmware/target/sh/archos/fm_v2/backlight-target.h
+++ b/firmware/target/sh/archos/fm_v2/backlight-target.h
@@ -22,15 +22,15 @@
22#include "config.h" 22#include "config.h"
23#include "rtc.h" 23#include "rtc.h"
24 24
25#define __backlight_init() true 25#define _backlight_init() true
26 26
27static inline void __backlight_on(void) 27static inline void _backlight_on(void)
28{ 28{
29 /* Enable square wave */ 29 /* Enable square wave */
30 rtc_write(0x0a, rtc_read(0x0a) | 0x40); 30 rtc_write(0x0a, rtc_read(0x0a) | 0x40);
31} 31}
32 32
33static inline void __backlight_off(void) 33static inline void _backlight_off(void)
34{ 34{
35 /* Disable square wave */ 35 /* Disable square wave */
36 rtc_write(0x0a, rtc_read(0x0a) & ~0x40); 36 rtc_write(0x0a, rtc_read(0x0a) & ~0x40);
diff --git a/firmware/target/sh/archos/ondio/backlight-target.h b/firmware/target/sh/archos/ondio/backlight-target.h
index 9be66bd6a0..94d5eb6f2f 100644
--- a/firmware/target/sh/archos/ondio/backlight-target.h
+++ b/firmware/target/sh/archos/ondio/backlight-target.h
@@ -25,7 +25,7 @@
25#ifdef HAVE_BACKLIGHT 25#ifdef HAVE_BACKLIGHT
26/* A stock Ondio has no backlight, it needs a hardware mod. */ 26/* A stock Ondio has no backlight, it needs a hardware mod. */
27 27
28static inline bool __backlight_init(void) 28static inline bool _backlight_init(void)
29{ 29{
30 PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */ 30 PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */
31 or_b(0x40, &PADRH); /* drive it high */ 31 or_b(0x40, &PADRH); /* drive it high */
@@ -33,12 +33,12 @@ static inline bool __backlight_init(void)
33 return true; 33 return true;
34} 34}
35 35
36static inline void __backlight_on(void) 36static inline void _backlight_on(void)
37{ 37{
38 or_b(0x40, &PADRH); /* drive it high */ 38 or_b(0x40, &PADRH); /* drive it high */
39} 39}
40 40
41static inline void __backlight_off(void) 41static inline void _backlight_off(void)
42{ 42{
43 and_b(~0x40, &PADRH); /* drive it low */ 43 and_b(~0x40, &PADRH); /* drive it low */
44} 44}
diff --git a/firmware/target/sh/archos/player/backlight-target.h b/firmware/target/sh/archos/player/backlight-target.h
index d3bb7f39ed..ede3c86635 100644
--- a/firmware/target/sh/archos/player/backlight-target.h
+++ b/firmware/target/sh/archos/player/backlight-target.h
@@ -22,7 +22,7 @@
22#include "config.h" 22#include "config.h"
23#include "cpu.h" 23#include "cpu.h"
24 24
25static inline bool __backlight_init(void) 25static inline bool _backlight_init(void)
26{ 26{
27 PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */ 27 PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */
28 and_b(~0x40, &PADRH); /* drive and set low */ 28 and_b(~0x40, &PADRH); /* drive and set low */
@@ -30,13 +30,13 @@ static inline bool __backlight_init(void)
30 return true; 30 return true;
31} 31}
32 32
33static inline void __backlight_on(void) 33static inline void _backlight_on(void)
34{ 34{
35 and_b(~0x40, &PADRH); /* drive and set low */ 35 and_b(~0x40, &PADRH); /* drive and set low */
36 or_b(0x40, &PAIORH); 36 or_b(0x40, &PAIORH);
37} 37}
38 38
39static inline void __backlight_off(void) 39static inline void _backlight_off(void)
40{ 40{
41 and_b(~0x40, &PAIORH); /* let it float (up) */ 41 and_b(~0x40, &PAIORH); /* let it float (up) */
42} 42}
diff --git a/firmware/target/sh/archos/recorder/backlight-target.h b/firmware/target/sh/archos/recorder/backlight-target.h
index 834d10bdc6..693e2c8200 100644
--- a/firmware/target/sh/archos/recorder/backlight-target.h
+++ b/firmware/target/sh/archos/recorder/backlight-target.h
@@ -22,15 +22,15 @@
22#include "config.h" 22#include "config.h"
23#include "rtc.h" 23#include "rtc.h"
24 24
25#define __backlight_init() true 25#define _backlight_init() true
26 26
27static inline void __backlight_on(void) 27static inline void _backlight_on(void)
28{ 28{
29 /* Enable square wave */ 29 /* Enable square wave */
30 rtc_write(0x0a, rtc_read(0x0a) | 0x40); 30 rtc_write(0x0a, rtc_read(0x0a) | 0x40);
31} 31}
32 32
33static inline void __backlight_off(void) 33static inline void _backlight_off(void)
34{ 34{
35 /* Disable square wave */ 35 /* Disable square wave */
36 rtc_write(0x0a, rtc_read(0x0a) & ~0x40); 36 rtc_write(0x0a, rtc_read(0x0a) & ~0x40);