mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 21:52:28 -05:00
ypr0: Enable headphone detection
Author: Lorenzo Miori Flyspray: FS#12348 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31544 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e9cb9538c7
commit
c08ce1b829
8 changed files with 303 additions and 3 deletions
|
|
@ -31,11 +31,13 @@
|
|||
#endif
|
||||
|
||||
#include "ascodec-target.h"
|
||||
#include "gpio_ypr0.h"
|
||||
|
||||
void power_off(void)
|
||||
{
|
||||
/* Something that we need to do before exit on our platform YPR0 */
|
||||
ascodec_close();
|
||||
gpio_close();
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
@ -52,6 +54,7 @@ void system_init(void)
|
|||
#endif
|
||||
/* Here begins our platform specific initilization for various things */
|
||||
ascodec_init();
|
||||
gpio_init();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue