similarity index 97%
rename from lib/system/generic/bm_env.c
rename to lib/system/generic/env.c
index fff9bb5176fdbb3bc6bb6e4e149814256f8fcdc7..20e0897882c7898d90f7421372aada3ea2942630 100755 (executable)
rename from lib/system/generic/bm_env.c
rename to lib/system/generic/env.c
index fff9bb5176fdbb3bc6bb6e4e149814256f8fcdc7..20e0897882c7898d90f7421372aada3ea2942630 100755 (executable)
+++ b/lib/system/generic/env.c
/**************************************************************************
* FILE NAME
*
- * bm_env.c
+ * env.c
*
*
* DESCRIPTION
*/
int env_create_mutex(void **lock, int count)
{
+ (void)lock;
+ (void)count;
+
return 0;
}
*/
void env_delete_mutex(void *lock)
{
+ (void)lock;
}
/**
*/
void env_lock_mutex(void *lock)
{
+ (void)lock;
+
env_disable_interrupts();
}
void env_unlock_mutex(void *lock)
{
+ (void)lock;
env_restore_interrupts();
}
void env_sleep_msec(int num_msec)
{
+ (void)num_msec; /* TODO: implement sleep_msec*/
}
env_disable_interrupts();
for (idx = 0; idx < ISR_COUNT; idx++) {
- if (isr_table[idx].vector == vector) {
+ if (isr_table[idx].vector == (int)vector) {
isr_table[idx].priority = priority;
isr_table[idx].type = polarity;
platform_interrupt_enable(vector, polarity, priority);
*
*/
-void env_disable_cache()
+void env_disable_cache(void)
{
platform_cache_all_flush_invalidate();
platform_cache_disable();
*/
static void acquire_spin_lock(void *plock)
{
- const int lockVal = 0;
+ const unsigned int lockVal = 0;
volatile unsigned int retVal;
do {