mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Move common shmem parameter declarations to shmem.h.
This commit is contained in:
committed by
Daniel Agar
parent
d1a1a1b9fe
commit
c1d50d35d3
@@ -119,8 +119,6 @@ void __cxa_pure_virtual()
|
||||
block_indefinite();
|
||||
}
|
||||
|
||||
#ifdef __PX4_QURT_EAGLE_APQ8074
|
||||
|
||||
float _Stof(const char *p0, char **p1, long p2)
|
||||
{
|
||||
PX4_WARN("Error: Calling unresolved symbol stub[%s]", __FUNCTION__);
|
||||
@@ -155,5 +153,3 @@ void *bsearch(const void *key, const void *ptr, size_t count, size_t size, int (
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,19 +51,12 @@
|
||||
|
||||
static atomic_word_t mem_lock;
|
||||
|
||||
int mem_fd;
|
||||
unsigned char *map_base, *virt_addr;
|
||||
struct shmem_info *shmem_info_p;
|
||||
int get_shmem_lock(const char *caller_file_name, int caller_line_number);
|
||||
void release_shmem_lock(const char *caller_file_name, int caller_line_number);
|
||||
void init_shared_memory();
|
||||
void copy_params_to_shmem(param_info_s *);
|
||||
void update_to_shmem(param_t param, union param_value_u value);
|
||||
int update_from_shmem(param_t param, union param_value_u *value);
|
||||
void update_index_from_shmem();
|
||||
uint64_t update_from_shmem_prev_time = 0, update_from_shmem_current_time = 0;
|
||||
static unsigned char *map_base, *virt_addr;
|
||||
static uint64_t update_from_shmem_prev_time = 0, update_from_shmem_current_time = 0;
|
||||
static unsigned char krait_changed_index[MAX_SHMEM_PARAMS / 8 + 1];
|
||||
|
||||
struct shmem_info *shmem_info_p;
|
||||
|
||||
// Small helper to get log2 for ints
|
||||
static unsigned log2_for_int(unsigned v)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user