User`s guide
Firmware Configuration
AT85C51SND3Bx Firmware User’s Guide 6-57
7691A–MP3–08/07
Table 6-30. Power type
6.2.12 Scheduler module
The “conf_scheduler.h” file is used to configure the system scheduler.
The firmware system holds 6 tasks:
MMI manager, power management, USB, player, explorer and update.
The scheduler module of the firmware is in charge of executing each of these tasks in a
token ring manner. Tasks could be added or removed with the help of this file that maps
or not their functions.
Task functions mapping:
The scheduler can manage up to 8 tasks. Each task should have both:
– one initialization function
– one task function
The scheduler controls the tasks by referring to them with the help of existing definition
labels implemented in the scheduler module:
– scheduler_task_?_init: definition label to associate the init function of a task to
implement
– scheduler_task_?: definition label to associate the main fuction of a task to
implement
Default task implementation:
// ***** Task init *****
#define Scheduler_task_1_init mmgr_task_init //Init MMI manager task
#define Scheduler_task_2_init power_task_init //Init Power task
#define Scheduler_task_3_init usb_task_sch_init //Init USB task
#define Scheduler_task_4_init player_task_init //Init Player task
#define Scheduler_task_5_init explorer_task_init //Init Explorer task
#define Scheduler_task_6_init update_task_init //Init Update task
// ***** Task definition *****
#define Scheduler_task_1 mmgr_task // MMI manager task
#define Scheduler_task_2 power_task // Power task
#define Scheduler_task_3 usb_sch_task // Mass storage task
#define Scheduler_task_4 player_task // Player task
#define Scheduler_task_5 explorer_task // Explorer task
#define Scheduler_task_6 update_task // Update task
Definition Label Description Values
POWER_SOURCE The power level under
which the system has to
run: very low (1.8V) or low
(3.3V)
INTERNAL_VLV_DC_DC
EXTERNAL_VLV_REGULATOR
[EXTERNAL_LV_DC_DC]
EXTERNAL_LV_REGULATOR
POWER_EXT_DC_ON External DC-DC control pin [P3_4]
I/O pins mnemonics are defined
in mcu.h file (See Section 3.1.5).
POWER_TYPE Type of power use [POWER_LOW_VOLTAGE]
POWER_VERY_LOW_VOLTAG
E
POWER_OFF_AUTO Automatic power-off [ENABLE]
DISABLE
POWER_BATTERY_SCAN_PERIOD Battery level scan period Value in seconds
POWER_BATTERY_LEVEL_ALERT Battery alert level 0 to 16