mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
samsungypr0: Support or mounting the microsd
A thread polls the appropriate GPIO pin for sd card presence and mounts using the mount system call. Change-Id: I31ab41c4120f4af64eb6998b7e7b6f9051585efb
This commit is contained in:
parent
46137ebd4d
commit
f6c26d33a4
6 changed files with 272 additions and 36 deletions
|
@ -43,6 +43,7 @@
|
|||
# define creat(x,m) app_creat(x, m)
|
||||
# define remove(x) app_remove(x)
|
||||
# define rename(x,y) app_rename(x,y)
|
||||
# define readlink(x,y,z) app_readlink(x,y,z)
|
||||
# if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA))
|
||||
/* SDL overrides a few more */
|
||||
# define read(x,y,z) sim_read(x,y,z)
|
||||
|
@ -59,6 +60,7 @@
|
|||
# define read(x,y,z) sim_read(x,y,z)
|
||||
# define write(x,y,z) sim_write(x,y,z)
|
||||
# define close(x) sim_close(x)
|
||||
/* readlink() not used in the sim yet */
|
||||
extern int sim_open(const char *name, int o, ...);
|
||||
extern int sim_creat(const char *name, mode_t mode);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue