Home
last modified time | relevance | path

Searched +full:- +full:- +full:exit +full:- +full:code (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/Zephyr-latest/scripts/native_simulator/common/src/include/
Dnsi_main.h4 * SPDX-License-Identifier: Apache-2.0
19 * return to the caller what would have been passed to exit()
21 * @param[in] exit_code: Requested exit code to the shell
23 * exit code which may have precedence if it was !=0
25 * @returns Code which would have been passed to exit()
32 * @param[in] exit_code: Requested exit code to the shell
34 * exit code which may have precedence if it was !=0
/Zephyr-latest/samples/boards/st/power_mgmt/standby_shutdown/
DREADME.rst1 .. zephyr:code-sample:: stm32_pm_shutdown
3 :relevant-api: sys_poweroff subsys_pm_sys
5 Enter and exit Standby/Shutdown mode on STM32.
16 release the user button to exit from shutdown mode or from shutdown mode.
18 .. _stm32-pm-standby_shutdown-sample-requirements:
25 in core sleep states, as LPTIM (:dtcompatible:`st,stm32-lptim`).
33 .. zephyr-app-commands::
34 :zephyr-app: samples/boards/st/power_mgmt/standby_shutdown
43 release the user button to exit from shutdown mode or from shutdown mode.
/Zephyr-latest/tests/bsim/bluetooth/ll/
D_compile_permutate_kconfigs.sh3 # SPDX-License-Identifier: Apache-2.0
9 #set -x #uncomment this line for debugging
17 BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
20 mkdir -p ${WORK_DIR}
22 declare -a list=(
35 local -a results=()
36 # We set a unique exe-name, so that we don't overwrite the executables
44 rm -f ${executable_name}
67 if [ ! -f ${executable_name} ]; then
72 temp_conf_file=$(mktemp -p ${WORK_DIR})
[all …]
/Zephyr-latest/.github/workflows/
Dlicense_check.yml7 runs-on: ubuntu-22.04
8 name: Scan code for licenses
10 - name: Checkout the code
13 fetch-depth: 0
14 - name: Scan the code
16 uses: zephyrproject-rtos/action_scancode@v4
18 directory-to-scan: 'scan/'
19 - name: Artifact Upload
20 uses: actions/upload-artifact@v4
25 - name: Verify
[all …]
Dcompliance.yml6 - edited
7 - opened
8 - reopened
9 - synchronize
13 runs-on: ubuntu-22.04
16 - name: Update PATH for west
20 - name: Checkout the code
24 fetch-depth: 0
26 - name: Rebase onto the target branch
30 git config --global user.email "you@example.com"
[all …]
/Zephyr-latest/include/zephyr/pm/
Dstate.h4 * SPDX-License-Identifier: Apache-2.0
52 * peripherals into low-power states. No operating state is lost (ie.
62 * In addition to putting peripherals into low-power states all
63 * non-boot CPUs are powered off. It should allow more energy to be
76 * self-refresh mode to retain its contents. The state of devices and
77 * CPUs is saved and held in memory, and it may require some boot-
78 * strapping code in ROM to resume the system from it.
88 * memory are written to disk or other non-volatile storage, and on
89 * resume it's read back into memory with the help of boot-strapping
90 * code, restores the system to the same point of execution where it
[all …]
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c4 * SPDX-License-Identifier: Apache-2.0
28 #define FAILED (-1)
34 #define OBJ_TO_SD(obj) (((int)obj) - 1)
50 * code to BSD ones. The #ifdef in each case are made in order to in getErrno()
51 * reduce code footprint: These cases are compiled if and only if in getErrno()
53 * code returned by the NWP. in getErrno()
180 * code and the code returned by the NWP are either identical, in getErrno()
199 return -EAFNOSUPPORT; in simplelink_socket_family_from_posix()
218 return -ESOCKTNOSUPPORT; in simplelink_socket_type_from_posix()
230 return -EPROTONOSUPPORT; in simplelink_socket_proto_from_zephyr()
[all …]
/Zephyr-latest/samples/hello_world/
DREADME.rst1 .. zephyr:code-sample:: hello_world
17 .. zephyr-app-commands::
18 :zephyr-app: samples/hello_world
19 :host-os: unix
29 .. code-block:: console
33 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/samples/cpp/hello_world/
DREADME.rst1 .. zephyr:code-sample:: hello_cpp_world
17 .. zephyr-app-commands::
18 :zephyr-app: samples/cpp/hello_world
19 :host-os: unix
29 .. code-block:: console
33 Exit QEMU by pressing :kbd:`CTRL+C`
/Zephyr-latest/scripts/coredump/
Dcoredump_gdbserver.py5 # SPDX-License-Identifier: Apache-2.0
25 def __init__(self) -> None:
46 parser.add_argument("--debug", action="store_true",
48 parser.add_argument("--port", type=int, default=1234,
50 parser.add_argument("--pipe", action="store_true",
52 parser.add_argument("-v", "--verbose", action="store_true",
73 # Setup logging for follow code
93 sys.exit(1)
97 sys.exit(1)
108 sys.exit(1)
[all …]
/Zephyr-latest/doc/services/smf/
Dindex.rst21 function implements the Exit actions. The prototype for these functions is as
99 if an initial transition to a child state is defined. A well-formed
104 :c:func:`smf_set_state` from Exit functions will generate a warning in the
112 smf_run_state if it returns a non-zero value.
125 should be called. It can be called from the entry, run, or exit actions. The
126 function takes a non-zero user defined value that will be returned by the
133 entry and exit actions of the least common ancestor are not executed on
142 of the source state, rather than after the exit actions are performed.
143 2. Only allowing external transitions to self, not to sub-states. A transition
145 3. Prohibiting transitions using :c:func:`smf_set_state` in exit actions.
[all …]
/Zephyr-latest/samples/userspace/hello_world_user/
DREADME.rst1 .. zephyr:code-sample:: helloworld_user
24 .. zephyr-app-commands::
25 :zephyr-app: samples/userspace/hello_world_user
26 :host-os: unix
34 .. code-block:: console
38 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/samples/subsys/demand_paging/
DREADME.rst1 .. zephyr:code-sample:: demand-paging
3 :relevant-api: mem-demand-paging
5 Leverage demand paging to deal with code bigger than available RAM.
11 firmware bigger than the available RAM if XIP is not possible. Select code
13 evicted for more code to be executed when memory is exhausted.
28 .. zephyr-app-commands::
29 :zephyr-app: samples/subsys/demand_paging
30 :host-os: unix
38 .. code-block:: console
40 *** Booting Zephyr OS build v3.7.0-2108-g5975c3785356 ***
[all …]
/Zephyr-latest/samples/posix/philosophers/
DREADME.rst1 .. zephyr:code-sample:: posix-philosophers
9 This sample implements Zephyr's :zephyr:code-sample:`dining-philosophers` sample using the
10 :ref:`POSIX API <posix_support>`. The source code for this sample can be found under
18 .. zephyr-app-commands::
19 :zephyr-app: samples/posix/philosophers
20 :host-os: unix
28 .. code-block:: console
34 Philosopher 4 [C:-1] THINKING [ 2200 ms ]
35 Philosopher 5 [C:-2] THINKING [ 1700 ms ]
37 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
[all …]
/Zephyr-latest/arch/x86/
Dgen_gdt.py5 # SPDX-License-Identifier: Apache-2.0
13 which is a link of the Zephyr kernel without various build-time
22 - Memory addresses of the Main and Double Fault TSS structures
24 - Memory addresses of where the GDT lives in memory, so that this
26 - whether userspace or HW stack protection are enabled in Kconfig
30 we generate flat 32-bit code and data segments. If hardware-
32 we additionally create descriptors for the main and double-
34 double-fault handling. If userspace is enabled, we also create
35 flat code/data segments for ring 3 execution.
51 sys.exit("pyelftools is out of date, need version 0.24 or later")
[all …]
/Zephyr-latest/samples/synchronization/
DREADME.rst1 .. zephyr:code-sample:: synchronization
3 :relevant-api: thread_apis semaphore_apis
22 .. zephyr-app-commands::
23 :zephyr-app: samples/synchronization
24 :host-os: unix
32 .. code-block:: console
47 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/samples/subsys/console/getline/
DREADME.rst1 .. zephyr:code-sample:: console_getline
10 Similar to the well-known ANSI C gets() and fgets() functions,
18 :zephyr:code-sample:`console_getchar`.
32 .. zephyr-app-commands::
33 :zephyr-app: samples/subsys/console/getline
34 :host-os: unix
40 will be printed back, with a hex code of the last character, to show that
43 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/samples/cpp/cpp_synchronization/
DREADME.rst1 .. zephyr:code-sample:: cpp_synchronization
4 Use Zephyr synchronization primitives from C++ code.
24 .. zephyr-app-commands::
25 :zephyr-app: samples/cpp/cpp_synchronization
26 :host-os: unix
34 .. code-block:: console
60 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/samples/subsys/zbus/remote_mock/
DREADME.rst1 .. zephyr:code-sample:: zbus-remote-mock
3 :relevant-api: zbus_apis
21 .. zephyr-app-commands::
22 :zephyr-app: samples/subsys/zbus/remote_mock
23 :host-os: unix
30 .. code-block:: console
32 -- west build: running target run
36 *** Booting Zephyr OS build zephyr-v3.1.0 ***
57 Exit execution by pressing :kbd:`CTRL+C`.
61 .. code-block:: bash
[all …]
/Zephyr-latest/samples/subsys/zbus/uart_bridge/
DREADME.rst1 .. zephyr:code-sample:: zbus-uart-bridge
3 :relevant-api: zbus_apis
19 .. zephyr-app-commands::
20 :zephyr-app: samples/subsys/zbus/uart_bridge
21 :host-os: unix
28 .. code-block:: console
33 *** Booting Zephyr OS build zephyr-v3.1.0 ***
62 Exit execution by pressing :kbd:`CTRL+C`.
66 .. code-block:: bash
79 .. code-block:: shell
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dmock_script.py4 # SPDX-License-Identifier: Apache-2.0
17 def main() -> int:
19 parser.add_argument('--sleep', action='store', default=0, type=float)
20 parser.add_argument('--long-sleep', action='store_true')
21 parser.add_argument('--return-code', action='store', default=0, type=int)
22 parser.add_argument('--exception', action='store_true')
42 print('Returns with code', args.return_code, flush=True)
48 sys.exit(main())
/Zephyr-latest/samples/drivers/crypto/
DREADME.rst1 .. zephyr:code-sample:: crypto
3 :relevant-api: crypto
17 .. zephyr-app-commands::
18 :zephyr-app: samples/drivers/crypto
19 :host-os: unix
27 .. code-block:: console
33 [general] [INF] cbc_mode: cbc mode ENCRYPT - Match
35 [general] [INF] cbc_mode: cbc mode DECRYPT - Match
39 [general] [INF] ctr_mode: ctr mode ENCRYPT - Match
41 [general] [INF] ctr_mode: ctr mode DECRYPT - Match
[all …]
/Zephyr-latest/samples/subsys/console/getchar/
DREADME.rst1 .. zephyr:code-sample:: console_getchar
10 Similar to the well-known ANSI C getchar() function,
18 :zephyr:code-sample:`console_getline`.
32 .. zephyr-app-commands::
33 :zephyr-app: samples/subsys/console/getchar
34 :host-os: unix
42 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/boards/qemu/xtensa/doc/
Dindex.rst13 emulated environment, for example, with the :zephyr:code-sample:`synchronization` sample:
15 .. zephyr-app-commands::
16 :zephyr-app: samples/synchronization
17 :host-os: unix
24 .. code-block:: console
26 ***** BOOTING ZEPHYR OS v1.8.99 - BUILD: Jun 27 2017 13:09:26 *****
38 Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/
Ddocker-test.sh2 # SPDX-License-Identifier: Apache-2.0
4 if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then
6 echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead."
7 exit 1
10 # First the non-tls version
12 start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_SERVE_LARGE_FILE=y" || return $?
13 start_docker "/usr/local/bin/http-get-file-test.sh 5" || return $?
17 # curl timeout is return code 28. If we get that, zephyr will never
19 if [ $docker_result -eq 28 ]; then
31 if [ $result -ne 0 ] || [ $docker_result -ne 0 ]; then
[all …]

12345678910>>...14