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
|
@ -60,7 +60,6 @@
|
|||
#else /* APPLICATION */
|
||||
|
||||
#define HOME_DIR "<HOME>" /* replaced at runtime */
|
||||
#define HOME_DIR_LEN (sizeof(HOME_DIR)-1)
|
||||
|
||||
#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
|
||||
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
|
||||
|
@ -73,10 +72,13 @@ extern void paths_init(void);
|
|||
|
||||
#endif /* !APPLICATION || SAMSUNG_YPR0 */
|
||||
|
||||
#define HOME_DIR_LEN (sizeof(HOME_DIR)-1)
|
||||
|
||||
#ifdef APPLICATION
|
||||
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int app_open(const char *name, int o, ...);
|
||||
int app_creat(const char* name, mode_t mode);
|
||||
|
@ -87,6 +89,7 @@ int app_closedir(DIR *dir);
|
|||
struct dirent* app_readdir(DIR* dir);
|
||||
int app_mkdir(const char* name);
|
||||
int app_rmdir(const char* name);
|
||||
ssize_t app_readlink(const char *path, char *buf, size_t bufsiz);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue