Commit Graph
9 Commits
Author SHA1 Message Date
Beat Küng df8f0da70c param & param_shmem: enable locking
We need to protect access to the param_values array. This is dynamically
allocated and resized (utarray_reserve() calls realloc). If some thread
was iterating the array while another was resizing the array, the first one
would iterate on a freed array, thus accessing invalid memory.

On NuttX this could lead to hardfaults in rare conditions.

Unfortunately we need to initialize the semaphore on startup, by calling
sem_init(). This adds a param_init() method called by every board/config
that uses the params (at least I think I've found all of them)
2017-02-17 11:27:08 +01:00
David Sidrane 23ecb78552 px4cannode-v1 bootloader uses mfguid for hw_version unique_id 2017-02-04 22:27:04 +01:00
Daniel Agar ac06d665a3 astyle src/drivers/boards 2017-01-29 01:18:32 +01:00
David Sidrane d7fc536f06 px4cannode-v1 using board common mcu version api 2017-01-26 08:39:12 +01:00
David Sidrane ead65eb581 px4cannode-v1 using board common identity api 2017-01-25 07:43:11 +01:00
David Sidrane 796a7a1a69 px4cannode-v1 bootloader uses common board api for UUID 2017-01-25 07:43:11 +01:00
David Sidrane 1aad48c869 px4cannode-v1 use board common reset interface 2017-01-24 21:17:06 +01:00
Beat Küng 8d1f35bff6 board cmake: remove board_name.c from all boards
leftover after rebase
2016-12-21 11:35:10 +01:00
David Sidrane bba8371b0f Adding px4cannode-v1 board and bootloader 2016-12-21 08:34:21 +01:00