mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Onda VX747: clean up SD GPIO initialization
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21288 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
39691c9cd0
commit
733bab0886
1 changed files with 0 additions and 8 deletions
|
|
@ -39,19 +39,11 @@ int _sd_write_sectors(unsigned long start, int count, const void* buf);
|
||||||
int _sd_init(void);
|
int _sd_init(void);
|
||||||
|
|
||||||
#define MMC_CD_PIN (32*1 + 29) /* Pin to check card insertion */
|
#define MMC_CD_PIN (32*1 + 29) /* Pin to check card insertion */
|
||||||
#define MSC_D0 (32*3 + 10)
|
|
||||||
#define MSC_D1 (32*3 + 11)
|
|
||||||
#define MSC_D2 (32*3 + 12)
|
|
||||||
#define MSC_CLK (32*3 + 9 )
|
|
||||||
|
|
||||||
static inline void mmc_init_gpio(void)
|
static inline void mmc_init_gpio(void)
|
||||||
{
|
{
|
||||||
__gpio_as_msc();
|
__gpio_as_msc();
|
||||||
__gpio_as_input(MMC_CD_PIN);
|
__gpio_as_input(MMC_CD_PIN);
|
||||||
__gpio_enable_pull(MSC_CLK);
|
|
||||||
__gpio_enable_pull(MSC_D0);
|
|
||||||
__gpio_enable_pull(MSC_D1);
|
|
||||||
__gpio_enable_pull(MSC_D2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue