mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Fix Xduoo X3 bootloader build, and silence all warnings.
Also enable USB bootloader mode Change-Id: I73224c2e694b9941993c89a114b48d2a907e0dfb
This commit is contained in:
parent
35930ddb8d
commit
7e7ca0c858
4 changed files with 136 additions and 6 deletions
|
|
@ -18,7 +18,7 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include "config.h"
|
||||
#include "system.h"
|
||||
#include "cpu.h"
|
||||
|
|
@ -86,11 +86,13 @@ bool button_hold(void)
|
|||
|
||||
int button_read_device(void)
|
||||
{
|
||||
#ifndef BOOTLOADER
|
||||
static bool hold_button = false;
|
||||
bool hold_button_old;
|
||||
|
||||
hold_button_old = hold_button;
|
||||
hold_button = (__gpio_get_pin(PIN_BTN_HOLD) ? true : false);
|
||||
#endif
|
||||
|
||||
int btn = BUTTON_NONE;
|
||||
bool gpio_btn = (__gpio_get_pin(PIN_BTN_POWER) ? false : true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue