![]() |
ISF
2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
|
ISF bus management internal header file. More...
Go to the source code of this file.
Data Structures | |
struct | bm_cb_config_t |
struct | bm_t |
Macros | |
#define | BM_VOLATILE volatile |
#define | BM_STATIC static |
#define | BM_MINIMUM_CB_TIMELEFT_USEC (100) |
#define | BM_ALLOC_MEM_ZERO(x) OSA_MemAllocZero(x) |
#define | BM_FREE_MEM(x) OSA_MemFree(x) |
#define | BM_MIN_REMAINING_THRESHOLD_USEC (10) |
#define | BM_FULL_PERIOD 1 |
#define | BM_CURRENT_PERIOD 2 |
#define | BM_PIPELINE_STAGES 2 |
Functions | |
bool | bm_active_cb_query (void) |
Tells caller if there are active callbacks. . More... | |
uint32 | bm_powerdown (void) |
Prepare bm for powerdown state. Called by power manager. . More... | |
bool | bm_statechange_query (void) |
Tells caller if there a change in the state of the bus manager. Change could be: More... | |
bool | bm_cb_occurred_query (void) |
Tells caller if a callback was scheduled to be called since setting bus manager for powerdown mode. More... | |
void | bm_statechange_reset (void) |
Reset the state change. More... | |
Variables | |
bm_t | bm |
ISF bus management internal header file.
Definition in file bm_internal.h.
#define BM_ALLOC_MEM_ZERO | ( | x | ) | OSA_MemAllocZero(x) |
Definition at line 55 of file bm_internal.h.
Referenced by bm_register_periodic_callback().
#define BM_CURRENT_PERIOD 2 |
Definition at line 64 of file bm_internal.h.
Referenced by bm_update_cb_list().
#define BM_FREE_MEM | ( | x | ) | OSA_MemFree(x) |
Definition at line 56 of file bm_internal.h.
Referenced by bm_unregister_callback().
#define BM_FULL_PERIOD 1 |
Definition at line 63 of file bm_internal.h.
Referenced by bm_find_smallest_active_period().
#define BM_MIN_REMAINING_THRESHOLD_USEC (10) |
Definition at line 59 of file bm_internal.h.
#define BM_MINIMUM_CB_TIMELEFT_USEC (100) |
Definition at line 50 of file bm_internal.h.
Referenced by bm_update_cb_list().
#define BM_PIPELINE_STAGES 2 |
Definition at line 65 of file bm_internal.h.
Referenced by bm_init(), and isr_bm_callback_tmr().
#define BM_STATIC static |
Definition at line 31 of file bm_internal.h.
#define BM_VOLATILE volatile |
Definition at line 30 of file bm_internal.h.
bool bm_active_cb_query | ( | void | ) |
Tells caller if there are active callbacks.
.
Definition at line 1112 of file bus_management.c.
References bm_t::cb_token_active_mask, FALSE, sema_bm_access, and TRUE.
bool bm_cb_occurred_query | ( | void | ) |
Tells caller if a callback was scheduled to be called since setting bus manager for powerdown mode.
Definition at line 1088 of file bus_management.c.
References gBm_cb_occurred.
uint32 bm_powerdown | ( | void | ) |
Prepare bm for powerdown state. Called by power manager.
.
Definition at line 961 of file bus_management.c.
References bm_t::cb_token_active_mask, FALSE, gBm_cb_occurred, gBm_state_change, ISF_BM_PIT_CHANNEL_NO, ISF_BM_PIT_INSTANCE, and bm_t::time_keeper_usec.
bool bm_statechange_query | ( | void | ) |
Tells caller if there a change in the state of the
bus manager. Change could be:
Note that this function is typically called by the power manager (at lowest priority) in ilde mode and all other tasks are blocked. Which means we do not need to protect the read with semaphores and incur latency associated with it.
Definition at line 1022 of file bus_management.c.
References gBm_state_change.
void bm_statechange_reset | ( | void | ) |
Reset the state change.
Definition at line 1049 of file bus_management.c.
References FALSE, gBm_state_change, and sema_bm_access.
bm_t bm |
Definition at line 45 of file bus_management.c.