1
0
Fork 0
forked from len0rd/rockbox

Final removal of tabs in firmware path

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24158 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2010-01-03 11:31:14 +00:00
parent 5cebdcd06b
commit 508bf2b45a
8 changed files with 17 additions and 17 deletions

View file

@ -52,7 +52,7 @@ void memset16(void *dst, int val, size_t len)
{ {
buffer = 0; buffer = 0;
for (i = 0; i < LBLOCKSIZE; i++) for (i = 0; i < LBLOCKSIZE; i++)
buffer = (buffer << 16) | val; buffer = (buffer << 16) | val;
} }
while (len >= LBLOCKSIZE*4) while (len >= LBLOCKSIZE*4)

View file

@ -26,12 +26,12 @@
#ifdef HAVE_DAC3550A #ifdef HAVE_DAC3550A
/* /*
DAC I2C defs DAC I2C defs
*/ */
#define DAC_ADR 0x9a #define DAC_ADR 0x9a
#define DAC_DEV_WRITE (DAC_ADR | 0x00) #define DAC_DEV_WRITE (DAC_ADR | 0x00)
#define DAC_REG_WRITE 0xc0 #define DAC_REG_WRITE 0xc0
/* registers..*/ /* registers..*/
#define DAC_SR_REG 1 #define DAC_SR_REG 1

View file

@ -733,7 +733,7 @@ const struct xchar_info xchar_info_oldlcd[] = {
{ 0xa7, 0, 0, 0x63 }, /* § (paragraph sign) */ { 0xa7, 0, 0, 0x63 }, /* § (paragraph sign) */
{ 0xab, XF_LEFTDBLANGLEQUOT, 1, 0x40 }, /* « (left double-angle quotation mark) */ { 0xab, XF_LEFTDBLANGLEQUOT, 1, 0x40 }, /* « (left double-angle quotation mark) */
{ 0xad, 0, 0, 0x31 }, /* ­ (soft hyphen) */ { 0xad, 0, 0, 0x31 }, /* ­ (soft hyphen) */

View file

@ -555,9 +555,9 @@ void USB_DEVICE(void) {
case CTRL_WTDS: case CTRL_WTDS:
case CTRL_WTND: case CTRL_WTND:
/* If data is not valid stop */ /* If data is not valid stop */
if(!(M66591_INTSTAT_MAIN & (1<<3)) ) { if(!(M66591_INTSTAT_MAIN & (1<<3)) ) {
logf("mxx: CTRT interrupt but VALID is false"); logf("mxx: CTRT interrupt but VALID is false");
break; break;
} }
control_received(); control_received();
break; break;
@ -777,7 +777,7 @@ void usb_attach(void) {
#endif #endif
/* Enable oscillation buffer XCKE */ /* Enable oscillation buffer XCKE */
M66591_TRN_CTRL |= (1<<13); M66591_TRN_CTRL |= (1<<13);
udelay(1500); udelay(1500);

View file

@ -26,8 +26,8 @@
#include <stdbool.h> #include <stdbool.h>
#define RTC_ADR 0xd0 #define RTC_ADR 0xd0
#define RTC_DEV_WRITE (RTC_ADR | 0x00) #define RTC_DEV_WRITE (RTC_ADR | 0x00)
#define RTC_DEV_READ (RTC_ADR | 0x01) #define RTC_DEV_READ (RTC_ADR | 0x01)
void rtc_init(void) void rtc_init(void)
{ {
@ -159,8 +159,8 @@ bool rtc_enable_alarm(bool enable)
{ {
data &= 0x5f; /* turn bit d7=AFE and d5=ABE off */ data &= 0x5f; /* turn bit d7=AFE and d5=ABE off */
rtc_write(0x0a, data); rtc_write(0x0a, data);
sleep(HZ / 10); sleep(HZ / 10);
rtc_check_alarm_flag(); rtc_check_alarm_flag();
data |= 0xa0; /* turn bit d7=AFE and d5=ABE on */ data |= 0xa0; /* turn bit d7=AFE and d5=ABE on */
rtc_write(0x0a, data); rtc_write(0x0a, data);
} }

View file

@ -119,7 +119,7 @@
#define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */ #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */
#define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */ #define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */
#define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */
#define BATTERY_CAPACITY_INC 20 /* capacity increment */ #define BATTERY_CAPACITY_INC 20 /* capacity increment */
#define BATTERY_TYPES_COUNT 1 /* only one type */ #define BATTERY_TYPES_COUNT 1 /* only one type */
/* Hardware controlled charging? FIXME */ /* Hardware controlled charging? FIXME */

View file

@ -33,7 +33,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...)
/* */ /* */
#if defined(SIMULATOR) && !defined(__PCTOOL__) #if defined(SIMULATOR) && !defined(__PCTOOL__)
#define DEBUGF debugf #define DEBUGF debugf
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
#else #else
#if defined(DEBUG) #if defined(DEBUG)
@ -42,7 +42,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...)
void breakpoint(void); void breakpoint(void);
#endif #endif
#define DEBUGF debugf #define DEBUGF debugf
#define LDEBUGF debugf #define LDEBUGF debugf
#else #else
#define DEBUGF(...) #define DEBUGF(...)