mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
M:Robe 500: Add support for more audio frequencies, initialize and set the touchscreen PWD pin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23089 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
14079c39f0
commit
173d854e7f
3 changed files with 29 additions and 2 deletions
|
|
@ -28,6 +28,15 @@
|
|||
|
||||
void adc_init(void)
|
||||
{
|
||||
/* Pin 15 appears to be the nPWD pin - make sure it is high otherwise the
|
||||
* touchscreen does not work, audio has not been tested, but it is
|
||||
* expected that is will also not work when low.
|
||||
*/
|
||||
IO_GIO_DIR0 &= ~(1<<15); /* output */
|
||||
IO_GIO_INV0 &= ~(1<<15); /* non-inverted */
|
||||
IO_GIO_FSEL0 &= ~(0x03<<12); /* normal pin */
|
||||
IO_GIO_BITSET0 = (1<<15);
|
||||
|
||||
/* Initialize the touchscreen and the battery readout */
|
||||
tsc2100_adc_init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue