mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-29 00:36:22 -04:00
iPod Classic: fix typos / cosmetic
Change-Id: Ic6552dea4b300032875097ef0b885a4ae059f4bc
This commit is contained in:
parent
9e284c11b1
commit
28920ec5cc
6 changed files with 21 additions and 19 deletions
|
|
@ -87,7 +87,7 @@ void usb_init_device(void)
|
||||||
usb_drv_exit();
|
usb_drv_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* !HAVE_STACK */
|
#else /* !HAVE_USBSTACK */
|
||||||
void usb_enable(bool on)
|
void usb_enable(bool on)
|
||||||
{
|
{
|
||||||
(void)on;
|
(void)on;
|
||||||
|
|
|
||||||
|
|
@ -133,9 +133,9 @@ bool dbg_hw_info(void)
|
||||||
_DEBUG_PRINTF("accessory present: %s",
|
_DEBUG_PRINTF("accessory present: %s",
|
||||||
pmu_accessory_present() ? "true" : "false");
|
pmu_accessory_present() ? "true" : "false");
|
||||||
#endif
|
#endif
|
||||||
extern unsigned long i2c_rd_err, i2c_wr_err;
|
|
||||||
line++;
|
line++;
|
||||||
_DEBUG_PRINTF("i2c rd/wr errors:: %lu/%lu", i2c_rd_err, i2c_wr_err);
|
extern unsigned long i2c_rd_err, i2c_wr_err;
|
||||||
|
_DEBUG_PRINTF("i2c rd/wr errors: %lu/%lu", i2c_rd_err, i2c_wr_err);
|
||||||
}
|
}
|
||||||
#ifdef UC870X_DEBUG
|
#ifdef UC870X_DEBUG
|
||||||
else if(state==2)
|
else if(state==2)
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ void eint_unregister(struct eint_handler *h)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ISR */
|
/* ISR */
|
||||||
void ICODE_ATTR eint_handler(int group)
|
static void ICODE_ATTR eint_handler(int group)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32_t ints;
|
uint32_t ints;
|
||||||
|
|
@ -195,7 +195,7 @@ void ICODE_ATTR eint_handler(int group)
|
||||||
EIC_INTLEVEL(group) ^= bit; /* swap level */
|
EIC_INTLEVEL(group) ^= bit; /* swap level */
|
||||||
|
|
||||||
if (h->isr)
|
if (h->isr)
|
||||||
h->isr(h); /* exec GPIO handler */
|
h->isr(h); /* exec app handler */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,13 +39,13 @@
|
||||||
* bit 2: if unmasked, EINT6 is generated when USB cable
|
* bit 2: if unmasked, EINT6 is generated when USB cable
|
||||||
* is plugged and/or(TBC) unplugged.
|
* is plugged and/or(TBC) unplugged.
|
||||||
*
|
*
|
||||||
* IC_GROUP0..6 are connected to EINT6..0 of the VIC.
|
* EIC_GROUP0..6 are connected to EINT6..0 of the VIC.
|
||||||
*/
|
*/
|
||||||
#define EIC_N_GROUPS 7
|
#define EIC_N_GROUPS 7
|
||||||
|
|
||||||
/* get EIC group and bit for a given GPIO port */
|
/* get EIC group and bit for a given GPIO port */
|
||||||
#define EIC_GROUP(n) (6 - (n >> 5))
|
#define EIC_GROUP(n) (6 - ((n) >> 5))
|
||||||
#define EIC_INDEX(n) ((0x18 - (n & 0x18)) | (n & 0x7))
|
#define EIC_INDEX(n) ((0x18 - ((n) & 0x18)) | ((n) & 0x7))
|
||||||
|
|
||||||
/* SoC EINTs uses these 'gpio' numbers */
|
/* SoC EINTs uses these 'gpio' numbers */
|
||||||
#define GPIO_EINT_USB 0xd8
|
#define GPIO_EINT_USB 0xd8
|
||||||
|
|
@ -74,19 +74,19 @@ struct eint_handler {
|
||||||
void (*isr)(struct eint_handler*);
|
void (*isr)(struct eint_handler*);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void eint_init(void);
|
||||||
void eint_register(struct eint_handler *h);
|
void eint_register(struct eint_handler *h);
|
||||||
void eint_unregister(struct eint_handler *h);
|
void eint_unregister(struct eint_handler *h);
|
||||||
void eint_init(void);
|
|
||||||
|
|
||||||
|
void gpio_preinit(void);
|
||||||
void gpio_init(void);
|
void gpio_init(void);
|
||||||
/* get/set configuration for GPIO groups (0..15) */
|
/* get/set configuration for GPIO groups (0..15) */
|
||||||
uint32_t gpio_group_get(int group);
|
uint32_t gpio_group_get(int group);
|
||||||
void gpio_group_set(int group, uint32_t mask, uint32_t cfg);
|
void gpio_group_set(int group, uint32_t mask, uint32_t cfg);
|
||||||
|
|
||||||
void gpio_preinit(void);
|
|
||||||
|
|
||||||
|
/*
|
||||||
/* This is very preliminary work in progress, ATM this region is called
|
* This is very preliminary work in progress, ATM this region is called
|
||||||
* system 'alive' because it seems there are similiarities when mixing
|
* system 'alive' because it seems there are similiarities when mixing
|
||||||
* concepts from:
|
* concepts from:
|
||||||
* - s3c2440 datasheet (figure 7-12, Sleep mode) and
|
* - s3c2440 datasheet (figure 7-12, Sleep mode) and
|
||||||
|
|
@ -145,8 +145,8 @@ void gpio_preinit(void);
|
||||||
* ALVCOM_RUN_BIT starts/stops count on ALVTCNT, counter frequency
|
* ALVCOM_RUN_BIT starts/stops count on ALVTCNT, counter frequency
|
||||||
* is SClk / ALVTDIV. When count reachs ALVTEND then ALVTSTAT[0]
|
* is SClk / ALVTDIV. When count reachs ALVTEND then ALVTSTAT[0]
|
||||||
* and ALVUNK4[0] are set, optionally an interrupt is generated (see
|
* and ALVUNK4[0] are set, optionally an interrupt is generated (see
|
||||||
* GPIO_IC below). Writing 1 to ALVTCOM_RST_BIT clears ALVSTAT[0]
|
* GPIO_EINT_ALIVE). Writing 1 to ALVTCOM_RST_BIT clears ALVSTAT[0]
|
||||||
* and ALVUNK4[0] and initializes ALVTCNT to zero.
|
* and ALVUNK4[0], and initializes ALVTCNT to zero.
|
||||||
*/
|
*/
|
||||||
#define ALVTCOM (*((REG32_PTR_T)(SYSALV_BASE + 0x6c)))
|
#define ALVTCOM (*((REG32_PTR_T)(SYSALV_BASE + 0x6c)))
|
||||||
#define ALVTCOM_RUN_BIT (1 << 0) /* 0 -> Stop, 1 -> Start */
|
#define ALVTCOM_RUN_BIT (1 << 0) /* 0 -> Stop, 1 -> Start */
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ bool piezo_busy(void);
|
||||||
void piezo_button_beep(bool beep, bool force);
|
void piezo_button_beep(bool beep, bool force);
|
||||||
|
|
||||||
#ifdef BOOTLOADER
|
#ifdef BOOTLOADER
|
||||||
|
#include <inttypes.h>
|
||||||
|
void piezo_tone(uint32_t period, int32_t duration);
|
||||||
void piezo_seq(uint16_t *seq);
|
void piezo_seq(uint16_t *seq);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue