Benjamin Cabé
014666bf05
MAINTAINERS: add some missing (mainly doc-related) entries
...
Added several documentation pages/folders (including boards and samples)
to relevant areas.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-11-04 07:39:08 -04:00
Alexander Razinkov
5725585112
tests: kernel: common: added test on atomic_t overflow
...
Added test to verify that the value of atomic_t will be the same
in case of overflow if incremented in atomic and non-atomic manner
Signed-off-by: Alexander Razinkov <alexander.razinkov@syntacore.com>
2023-11-04 07:38:39 -04:00
Alexander Razinkov
8fe8f34169
tests: kernel: spinlock: acquisition fairness test
...
Added test to verify the spinlock acquisition fairness
in relation to the CPUs contending for the spinlock.
This test is only enabled for Ticket Spinlocks which
required to provide such kind of fairness.
Signed-off-by: Alexander Razinkov <alexander.razinkov@syntacore.com>
2023-11-04 07:38:39 -04:00
Alexander Razinkov
4664813a12
kernel: spinlock: Ticket spinlocks
...
Basic spinlock implementation is based on single
atomic variable and doesn't guarantee locking fairness
across multiple CPUs. It's even possible that single CPU
will win the contention every time which will result
in a live-lock.
Ticket spinlocks provide a FIFO order of lock aquisition
which resolves such unfairness issue at the cost of slightly
increased memory footprint.
Signed-off-by: Alexander Razinkov <alexander.razinkov@syntacore.com>
2023-11-04 07:38:39 -04:00
Ederson de Souza
049b67aca9
subsys/shell/backends: Fix shell_telnet.c build with clang
...
It declares a variable inside a switch statement without brackets to
properly delimit the scope, making clang barf. This patch adds them.
Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2023-11-03 20:04:08 -04:00
Declan Snyder
6c25136e60
drivers: can: Fix Z_SYSCALL_OBJ->K_SYSCALL_OBJ
...
Fix can handler calling removed Z_SYSCALL_OBJ instead
of K_SYSCALL_OBJ
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2023-11-03 16:05:01 -05:00
Declan Snyder
5b8a2f910e
drivers: can: Fix handler syscalls Z_OOPS->K_OOPS
...
Fix can handlers calling removed Z_OOPS instead of K_OOPS
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2023-11-03 19:10:08 +01:00
Andy Sinclair
a4446b1c5a
drivers: sensor: npm1300_charger: Added die temp measurement
...
Support for die temperature reading added
Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
2023-11-03 15:36:26 +00:00
Andy Sinclair
8fd676295e
drivers: sensor: npm1300_charger: die temp threshold configuration
...
Added configuration of die temperature stop/resume thresholds
Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
2023-11-03 15:36:26 +00:00
Andy Sinclair
93a8ec4b5d
drivers: sensor: npm1300_charger: Updating of USB current limit
...
Added attributes for reading USB current capability,
and setting of USB current limit
Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
2023-11-03 15:36:26 +00:00
Torsten Rasmussen
0b0f2f1912
cmake: safeguard path of SOC_LINKER_SCRIPT
...
Issue reported on Discord.
Safeguard cmake_path() for SOC_LINKER_SCRIPT so that the path is only
processed when SOC_LINKER_SCRIPT is defined.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2023-11-03 14:47:34 +00:00
cyliang tw
8ba8c188a0
drivers: ethernet: support for Nuvoton numaker series
...
Add Nuvoton numaker series EMAC controller feature.
Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2023-11-03 12:11:33 +00:00
Dmitrii Golovanov
97fab83716
scripts: coverage: gcovr to ignore negative counters
...
Apply a workaround for an issue introduced with bc8b7dd
for code coverage collection at qemu_x86 when gcov data
was broken because of optimized out memcpy() in write_u64()
static inline function, so gcovr parser fails with
"gcovr.gcov_parser.NegativeHits: Got negative hit value
in gcov line 'branch 1 taken -1'".
Add gcovr command line option to ignore such errors (since v.6.0):
"--gcov-ignore-parse-errors=negative_hits.warn_once_per_file"
Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2023-11-03 07:57:10 -04:00
Francois Ramu
6b87eedee0
samples: drivers: jesd216 reading jedec IDs from stm32 boards
...
Add the stm32-ospi-nor or stm32-qspi-nor compatible to run the sample
on stm32 boards without jedec,spi-nor compatible.
No more config file needed to get the jedec ID and SFDP info from the
external quad- or octo-SPI flash of the stm32 disco boards.
Signed-off-by: Francois Ramu <francois.ramu@st.com>
2023-11-03 11:46:58 +01:00
Francois Ramu
ce82348ccf
boards: arm: stm32h7b3 disco reads the SFDP table from NOR
...
The sfdp table property is no more required in the DTS of the
stm32h7b3i_dk as it is correctly read from the external
NOR octoflash with the read-sfdp command.
(since PR https://github.com/zephyrproject-rtos/zephyr/pull/62521 )
Signed-off-by: Francois Ramu <francois.ramu@st.com>
2023-11-03 11:46:58 +01:00
Francois Ramu
ba9ebb7dbd
drivers: flash: stm32 qspi driver reads sfdp table
...
Fix the SFDP command to be sent by the qspi driver
to get the SFDP table from the NOR quad flash.
Note that CONFIG_FLASH_STM32_QSPI=y and CONFIG_SPI_NOR=n
HAL_DMA_Abort declared as weak to fix compilation error with stm32f7x
Signed-off-by: Francois Ramu <francois.ramu@st.com>
2023-11-03 11:46:58 +01:00
Anas Nashif
58ec905c0e
objects: add doxygen group for internal APIs
...
Add objects to the internal doxygen group.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
6ada378690
syscall: document K_OOPS
...
Document K_OOPs using doxygen.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
9028f137e5
syscall: doc: fix doxygen
...
Doxygen fixes for syscall APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
6358e2780b
arch: doc: move arch interface to internal api group
...
Also move architecture interface to the internal group.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
b5a069db50
syscall: doc: add a note about the API being internal
...
Add a note to all internal APIs signifying they are internal and should
not be used outside of the zephyr code base.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
864ebfec21
syscall/userspace: doc: include in doxygen
...
Include syscall handler API as internal APIs in doxygen.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
7cacfe8403
doc: define internal API group
...
Group all internal APIs under this doxygen group.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
a08bfeb49c
syscall: rename Z_OOPS -> K_OOPS
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
ee9f278323
syscall: rename Z_SYSCALL_VERIFY -> K_SYSCALL_VERIFY
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
1a9de05767
syscall: rename Z_SYSCALL_DRIVER_ -> K_SYSCALL_DRIVER_
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
9c4d881183
syscall: rename Z_SYSCALL_ to K_SYSCALL_
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
9c1aeb5fd3
syscall: rename z_user_ to k_usermode_
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
56fddd805a
syscall: rename z_user_from_copy -> k_usermode_from_copy
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
6ba8176e33
syscall: rename z_user_alloc_from_copy -> k_usermode_alloc_from_copy
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
70e791905d
syscall: rename z_user_string_nlen -> k_usermode_string_nlen
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
3ab356604d
syscall: rename z_dump_object_error -> k_object_dump_error
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
21254b2f40
syscall: rename z_object_validate -> k_object_validate
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
c25d0804f0
syscall: rename z_object_find -> k_object_find
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
27d74e95c9
syscall: rename z_object_wordlist_foreach -> k_object_wordlist_foreach
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
a5b49458eb
syscall: rename z_thread_perms_inherit -> k_thread_perms_inherit
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
993f903830
syscall: rename z_thread_perms_set -> k_thread_perms_set
...
Rename z_thread_perms_set and do not use z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
e2a9d013e5
kernel: userspace: rename z_thread_perms_clear -> k_thread_perms_clear
...
Rename z_thread_perms_clear -> k_thread_perms_clear.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
70cf96b5e1
syscall: z_thread_perms_all_clear -> k_thread_perms_all_clear
...
Rename internal function z_thread_perms_all_clear.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
7a18c2b150
syscall: rename z_object_uninit -> k_object_uninit
...
Rename internal function z_object_uninit.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
43a7402baf
syscall: rename z_object_recycle -> k_object_recycle
...
Rename z_object_recycle and do not use z_ for internal APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
d178b6a0e7
syscall: z_obj_validation_check -> k_object_validation_check
...
Rename z_obj_validation_check and do not use z_ for internal APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
df9428991a
syscall: Z_SYSCALL_MEMORY_ARRAY -> K_SYSCALL_MEMORY_ARRAY
...
Rename macros and do not use Z_ for internal APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
412561b62a
syscall: Z_SYSCALL_IS_OBJ -> K_SYSCALL_IS_OBJ
...
Rename macros and do not use Z_ for internal APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
684b8fcdd0
syscall: Z_SYSCALL_VERIFY_MSG -> K_SYSCALL_VERIFY_MSG
...
Rename macros and do not use Z_ for internal APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
4d5d04169d
syscall: rename z_is_in_user_syscall
...
Rename z_is_in_user_syscall -> k_is_in_user_syscall
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
4e396174ce
kernel: move syscall_handler.h to internal include directory
...
Move the syscall_handler.h header, used internally only to a dedicated
internal folder that should not be used outside of Zephyr.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
a6b490073e
kernel: object: rename z_object -> k_object
...
Do not use z_ for internal structures and rename to k_object instead.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
c91cad735a
kernel: object: rename z_object_init to k_object_init
...
Do not use z_ for internal API and rename to k_object_init.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
c54fb959e3
kernel: objects: rename z_dynamic_object_aligned_create
...
Do not use z_ for internal APIs and rename function.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00