mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add DeviceData to bootloaders
same vein as bootdata but for devices that need to pass info back to a running firmware Change-Id: I0cdcdc0475804dfbbee415ab487104ae8fc8ac69
This commit is contained in:
parent
c16dbbfd1f
commit
a2cc7546d8
11 changed files with 274 additions and 1 deletions
11
apps/main.c
11
apps/main.c
|
@ -78,6 +78,10 @@
|
|||
#include "bootchart.h"
|
||||
#include "logdiskf.h"
|
||||
#include "bootdata.h"
|
||||
#if defined(HAVE_DEVICEDATA)
|
||||
#include "devicedata.h"
|
||||
#endif
|
||||
|
||||
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
|
||||
#include "notification.h"
|
||||
#endif
|
||||
|
@ -176,6 +180,9 @@ int main(void)
|
|||
}
|
||||
list_init();
|
||||
tree_init();
|
||||
#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER) /* SIMULATOR */
|
||||
verify_device_data();
|
||||
#endif
|
||||
/* Keep the order of this 3
|
||||
* Must be done before any code uses the multi-screen API */
|
||||
#ifdef HAVE_USBSTACK
|
||||
|
@ -459,6 +466,10 @@ static void init(void)
|
|||
verify_boot_data();
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER)
|
||||
verify_device_data();
|
||||
#endif
|
||||
|
||||
/* early early early! */
|
||||
filesystem_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue