/Zephyr-latest/lib/libc/minimal/include/ |
D | ctype.h | 6 * SPDX-License-Identifier: Apache-2.0 16 static inline int isupper(int a) in isupper() argument 18 return (int)(((unsigned)(a)-(unsigned)'A') < 26U); in isupper() 21 static inline int isalpha(int c) in isalpha() 23 return (int)((((unsigned)c|32u)-(unsigned)'a') < 26U); in isalpha() 26 static inline int isspace(int c) in isspace() 28 return (int)(c == (int)' ' || ((unsigned)c-(unsigned)'\t') < 5U); in isspace() 31 static inline int isgraph(int c) in isgraph() 33 return (int)((((unsigned)c) > ' ') && in isgraph() 37 static inline int isprint(int c) in isprint() [all …]
|
/Zephyr-latest/tests/benchmarks/thread_metric/ |
D | thread_metric_readme.txt | 1 Thread-Metric RTOS Test Suite 4 1. Thread-Metric Test Suite 6 The Thread-Metric test suite consists of 8 distinct RTOS 9 that can be processed during a specific timer interval. A 30 14 This is the baseline test consisting of a single thread. This 22 voluntarily release control to each other in a round-robin fashion. 31 This test consists of 5 threads that each have a unique priority. 33 left in a suspended state. The lowest priority thread will resume 41 highest priority thread - starting the whole process over once again. 45 This test consists of a single thread. The thread will cause an [all …]
|
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/ |
D | sam0_eic.h | 4 * SPDX-License-Identifier: Apache-2.0 35 * This acquires the EIC interrupt for a specific port and pin combination, 36 * or returns an error if the required line is not available. Only a single 37 * callback per port is supported and supplying a different one will 40 * @param port port index (A=0, etc) 47 int sam0_eic_acquire(int port, int pin, enum sam0_eic_trigger trigger, 51 * @brief Release the EIC interrupt for a specific port and pin combination 53 * Release the EIC configuration for a specific port and pin combination. 57 * @param port port index (A=0, etc) 60 int sam0_eic_release(int port, int pin); [all …]
|
D | intc_esp32.h | 4 * SPDX-License-Identifier: Apache-2.0 17 * Interrupt allocation flags - These flags can be used to specify 23 #define ESP_INTR_FLAG_LEVEL1 (1<<1) /* Accept a Level 1 int vector, lowest priority */ 24 #define ESP_INTR_FLAG_LEVEL2 (1<<2) /* Accept a Level 2 int vector */ 25 #define ESP_INTR_FLAG_LEVEL3 (1<<3) /* Accept a Level 3 int vector */ 26 #define ESP_INTR_FLAG_LEVEL4 (1<<4) /* Accept a Level 4 int vector */ 27 #define ESP_INTR_FLAG_LEVEL5 (1<<5) /* Accept a Level 5 int vector */ 28 #define ESP_INTR_FLAG_LEVEL6 (1<<6) /* Accept a Level 6 int vector */ 29 #define ESP_INTR_FLAG_NMI (1<<7) /* Accept a Level 7 int vector, highest priority */ 31 #define ESP_INTR_FLAG_EDGE (1<<9) /* Edge-triggered interrupt */ [all …]
|
D | intc_mchp_xec_ecia.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * Reference Manuals for MEC152x and MEC172x ARM(r) 32-bit MCUs 26 * @param girq_id is the GIRQ number (8 - 26) 27 * @param src is the interrupt source in the GIRQ (0 - 31) 29 int mchp_xec_ecia_enable(int girq_id, int src); 37 int mchp_xec_ecia_info_enable(int ecia_info); 42 * @param girq_id is the GIRQ number (8 - 26) 43 * @param src is the interrupt source in the GIRQ (0 - 31) 45 int mchp_xec_ecia_disable(int girq_id, int src); 53 int mchp_xec_ecia_info_disable(int ecia_info); [all …]
|
D | intc_esp32c3.h | 4 * SPDX-License-Identifier: Apache-2.0 14 * Interrupt allocation flags - These flags can be used to specify 19 #define ESP_INTR_FLAG_LEVEL1 (1<<1) /* Accept a Level 1 int vector, lowest priority */ 20 #define ESP_INTR_FLAG_LEVEL2 (1<<2) /* Accept a Level 2 int vector */ 21 #define ESP_INTR_FLAG_LEVEL3 (1<<3) /* Accept a Level 3 int vector */ 22 #define ESP_INTR_FLAG_LEVEL4 (1<<4) /* Accept a Level 4 int vector */ 23 #define ESP_INTR_FLAG_LEVEL5 (1<<5) /* Accept a Level 5 int vector */ 24 #define ESP_INTR_FLAG_LEVEL6 (1<<6) /* Accept a Level 6 int vector */ 25 #define ESP_INTR_FLAG_NMI (1<<7) /* Accept a Level 7 int vector, highest priority */ 27 #define ESP_INTR_FLAG_EDGE (1<<9) /* Edge-triggered interrupt */ [all …]
|
/Zephyr-latest/lib/libc/minimal/source/stdlib/ |
D | qsort.c | 4 * SPDX-License-Identifier: Apache-2.0 14 * Normally parent is defined parent(k) = floor((k-1) / 2) but we can avoid a 15 * divide by noticing that floor((k-1) / 2) = ((k - 1) >> 1). 18 #define parent(k) (((k) - 1) >> 1) 20 * Normally left is defined left(k) = (2 * k + 1) but we can avoid a 27 * Normally right is defined right(k) = (2 * k + 2) but we can avoid a 32 #define A(k) ((uint8_t *)base + size * (k)) macro 38 int (*comp2)(const void *a, const void *b); 39 int (*comp3)(const void *a, const void *b, void *arg); 43 static inline int compare(struct qsort_comp *cmp, void *a, void *b) in compare() argument [all …]
|
/Zephyr-latest/tests/arch/common/stack_unwind/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 12 static void func1(int a); 13 static void func2(int a); 15 static void func2(int a) in func2() argument 17 printf("%d: %s\n", a, __func__); in func2() 19 if (a >= 5) { in func2() 23 func1(a + 1); in func2() 26 static void func1(int a) in func1() argument 28 printf("%d: %s\n", a, __func__); in func1() 29 func2(a + 1); in func1() [all …]
|
/Zephyr-latest/subsys/fs/ |
D | Kconfig.littlefs | 4 # SPDX-License-Identifier: Apache-2.0 19 int "Maximum number of opened files" 22 This is a global maximum across all mounted littlefs filesystems. 25 int "Maximum number of opened directories" 28 This is a global maximum across all mounted littlefs filesystems. 31 int "Minimum size of a block read" 34 All read operations will be a multiple of this value. 37 int "Minimum size of a block program" 40 All program operations will be a multiple of this value. 43 int "Size of block caches in bytes" [all …]
|
/Zephyr-latest/dts/bindings/fs/ |
D | zephyr,fstab,littlefs.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Description of pre-defined file systems. 9 include: "zephyr,fstab-common.yaml" 12 # num-files and num-dirs are not filesystem-specific. 14 read-size: 15 type: int 20 All read operations will be a multiple of this value. A 25 prog-size: 26 type: int 31 All program operations will be a multiple of this value. A [all …]
|
/Zephyr-latest/include/zephyr/toolchain/ |
D | zephyr_stdint.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * (questionably) define __INT32_TYPE__ and derivatives as a long int 13 * which makes the printf format checker to complain about long vs int 14 * mismatch when %u is given a uint32_t argument, and uint32_t pointers not 15 * being compatible with int pointers. Let's redefine them to follow 20 #error "unexpected int width" 36 #define __INT32_TYPE__ int 37 #define __UINT32_TYPE__ unsigned int 42 #define __INT64_TYPE__ long long int 43 #define __UINT64_TYPE__ unsigned long long int [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | Kconfig.lan865x | 2 # SPDX-License-Identifier: Apache-2.0 5 bool "LAN865X 10BASE-T1S Controller" 11 The LAN865X is a low power, 10BASE-T1S transceiver compliant with 12 the IEEE® 802.3cg-2019™ Ethernet standard for long reach, 10 15 Featuring an integrated media access control (MAC) and a PHY, 16 the LAN865X enables direct connectivity with a variety of controllers 17 via a serial peripheral inter-face (SPI). 22 int "LAN865X driver init priority" 30 int "Stack size for a thread that processes IRQ" 34 process raised INT IRQ. [all …]
|
D | Kconfig.nxp_imx_netc | 2 # SPDX-License-Identifier: Apache-2.0 16 int "Message Interrupt module select" 22 int "RX thread priority" 25 RX thread priority. RX thread is a cooperative thread. 28 int "RX thread stack size" 34 int "RX thread budget" 38 The budget parameter places a limit on the amount of work the driver may 44 int "TX ring number" 51 int "TX ring length" 55 Length of the TX ring. The value must be a multiple of 8. [all …]
|
D | Kconfig.nxp_s32_netc | 1 # Copyright 2022-2023 NXP 2 # SPDX-License-Identifier: Apache-2.0 18 int "RX thread priority" 21 RX thread priority. RX thread is a cooperative thread. 24 int "RX thread stack size" 30 int "RX thread budget" 34 The budget parameter places a limit on the amount of work the driver may 40 int "TX ring length" 44 Length of the TX ring. The value must be a multiple of 8. 47 int "TX ring data buffer size" [all …]
|
/Zephyr-latest/dts/bindings/display/ |
D | solomon,ssd1327fb.yaml | 1 # Copyright (c) 2024, Savoir-faire Linux 2 # SPDX-License-Identifier: Apache-2.0 4 description: SSD1327 128x128 dot-matrix display controller on MIPI_DBI bus 6 include: [mipi-dbi-spi-device.yaml, display-controller.yaml] 11 oscillator-freq: 12 type: int 16 display-offset: 17 type: int 21 start-line: 22 type: int [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | regulator.yaml | 1 # Copyright 2019-2020, Peter Bigot Consulting, LLC 3 # SPDX-License-Identifier: Apache-2.0 14 regulator-name: 16 description: A string used as a descriptive name for regulator outputs 18 regulator-init-microvolt: 19 type: int 22 regulator-min-microvolt: 23 type: int 26 regulator-max-microvolt: 27 type: int [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | ipm.h | 4 * @brief Generic low-level inter-processor mailbox communication API. 10 * SPDX-License-Identifier: Apache-2.0 37 * interrupt-safe APIS. Registration of callbacks is done via 38 * @a ipm_register_callback 54 * See @a ipm_send() for argument definitions. 56 typedef int (*ipm_send_t)(const struct device *ipmdev, int wait, uint32_t id, 57 const void *data, int size); 62 * See @a ipm_max_data_size_get() for argument definitions. 64 typedef int (*ipm_max_data_size_get_t)(const struct device *ipmdev); 70 * See @a ipm_max_id_val_get() for argument definitions. [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | mutex.c | 5 * SPDX-License-Identifier: Apache-2.0 37 * We reserve the MSB to mark a pthread_mutex_t as initialized (from the 38 * perspective of the application). With a linear space, this means that 46 return m - posix_mutex_pool; in posix_mutex_to_offset() 56 int actually_initialized; in get_posix_mutex() 82 int err; in to_posix_mutex() 90 /* Try and automatically associate a posix_mutex */ in to_posix_mutex() 108 static int acquire_mutex(pthread_mutex_t *mu, k_timeout_t timeout) in acquire_mutex() 110 int type = -1; in acquire_mutex() 111 size_t bit = -1; in acquire_mutex() [all …]
|
/Zephyr-latest/boards/native/native_sim/ |
D | irq_handler.c | 3 * Copyright (c) 2017 Oticon A/S 6 * SPDX-License-Identifier: Apache-2.0 26 typedef int (*direct_irq_f_ptr)(void); 30 static int currently_running_irq = -1; 32 static inline void vector_to_irq(int irq_nbr, int *may_swap) in vector_to_irq() 38 posix_print_error_and_exit("Received irq %i without a " in vector_to_irq() 61 * needed, swap to a re-enabled thread 63 * Note that even that this function is executing in a Zephyr thread, it is 70 int irq_nbr; in posix_irq_handler() 71 static int may_swap; in posix_irq_handler() [all …]
|
/Zephyr-latest/samples/subsys/zbus/priority_boost/src/ |
D | main.c | 3 * SPDX-License-Identifier: Apache-2.0 11 ZBUS_CHAN_DEFINE(chan_a, int, NULL, NULL, ZBUS_OBSERVERS(l1, ms1, ms2, s1, l2), 0); 23 int err; in s1_thread() 24 int a = 0; in s1_thread() local 38 LOG_INF("N -> S1: T1 prio %d", k_thread_priority_get(t1_id)); in s1_thread() 40 err = zbus_chan_read(chan, &a, K_FOREVER); in s1_thread() 44 LOG_INF("%d -> S1: T1 prio %d", a, k_thread_priority_get(t1_id)); in s1_thread() 56 int err; in ms1_thread() 58 int a = 0; in ms1_thread() local 63 err = zbus_sub_wait_msg(&ms1, &chan, &a, K_FOREVER); in ms1_thread() [all …]
|
/Zephyr-latest/lib/posix/options/getopt/ |
D | getopt.h | 4 * SPDX-License-Identifier: Apache-2.0 17 int opterr; /* if error message should be printed */ 18 int optind; /* index into parent argv vector */ 19 int optopt; /* character checked for validity */ 20 int optreset; /* reset getopt */ 26 int nonopt_start; 27 int nonopt_end; 31 extern int optreset; /* reset getopt */ 33 extern int opterr; 34 extern int optind; [all …]
|
/Zephyr-latest/boards/native/nrf_bsim/ |
D | irq_handler.c | 2 * Copyright (c) 2017 Oticon A/S 4 * SPDX-License-Identifier: Apache-2.0 26 typedef int (*direct_irq_f_ptr)(void); 30 static int currently_running_irq = -1; 32 static inline void vector_to_irq(int irq_nbr, int *may_swap) in vector_to_irq() 52 posix_print_error_and_exit("Received irq %i without a " in vector_to_irq() 78 * needed, swap to a re-enabled thread 80 * Note that even that this function is executing in a Zephyr thread, it is 87 int irq_nbr; in posix_irq_handler() 88 static int may_swap; in posix_irq_handler() [all …]
|
/Zephyr-latest/tests/kernel/timer/timer_behavior/ |
D | Kconfig | 1 # SPDX-License-Identifier: Apache-2.0 12 int "The number of timer samples to gather for statistics" 21 int "The number of microseconds to for the timer period" 25 int "Maximum standard deviation in microseconds allowed" 31 int "Maximum drift in microseconds allowed (should be about 1 period allowance)" 35 int "Maximum drift percentage for the timer period" 39 # example if a new tick elapses right after the kernel gets the number 40 # of elapsed ticks when scheduling a new timeout but before the timer 45 A value of 10 means 10%. 50 Toggles a GPIO pin, on every period, that can be used by an external [all …]
|
/Zephyr-latest/tests/subsys/debug/gdbstub/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 12 static int test(void) in test() 14 int a; in test() local 15 int b; in test() 17 a = 10; in test() 18 b = a * 2; in test() 20 return a + b; in test() 23 int main(void) in main() 25 int ret; in main()
|
/Zephyr-latest/drivers/console/ |
D | xtensa_sim_console.c | 3 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/sys/printk-hooks.h> 10 #include <zephyr/sys/libc-hooks.h> 18 int arch_printk_char_out(int c) in arch_printk_char_out() 22 register int a2 __asm__ ("a2") = SYS_write; in arch_printk_char_out() 23 register int a3 __asm__ ("a3") = 1; in arch_printk_char_out() 25 register int a5 __asm__ ("a5") = 1; in arch_printk_char_out() 26 register int ret_val __asm__ ("a2"); in arch_printk_char_out() 27 register int ret_err __asm__ ("a3"); in arch_printk_char_out() 31 : "=a" (ret_val), "=a" (ret_err) in arch_printk_char_out() [all …]
|