text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ #include <zephyr/kernel.h> int main(void) { printk("Should not be printed, expected TF-M's NS application to be run instead.\n"); k_panic(); for (;;) { } } ```
/content/code_sandbox/samples/tfm_integration/tfm_regression_test/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```restructuredtext .. _tfm_regression_test: TF-M Regression Test Sample ########################### Overview ******** Run both the Secure and Non-secure TF-M Regression tests using the Zephyr build system. The build system will replace the Zephyr application with the Non-Secure TF-M test application, while the Sec...
/content/code_sandbox/samples/tfm_integration/tfm_regression_test/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,186
```unknown /* * */ /* This partition table could be used along with TFM configuration: * - TEST_S=ON (REGRESSION) * - TFM_PSA_API=ON (IPC) * */ / { chosen { zephyr,code-partition = &slot0_ns_partition; }; }; /delete-node/ &slot1_partition; /delete-node/ &slot1_ns_partition; &flash0 { partitions {...
/content/code_sandbox/samples/tfm_integration/tfm_regression_test/boards/nucleo_l552ze_q_stm32l552xx_ns.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
328
```unknown # # # CONFIG_BUILD_WITH_TFM=y CONFIG_TFM_PROFILE_TYPE_NOT_SET=y CONFIG_TFM_CONNECTION_BASED_SERVICE_API=y ```
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
30
```yaml common: tags: - trusted-firmware-m platform_allow: - mps2/an521/cpu0/ns - v2m_musca_s1/musca_s1/ns - nrf5340dk/nrf5340/cpuapp/ns - nrf9160dk/nrf9160/ns - lpcxpresso55s69/lpc55s69/cpu0/ns integration_platforms: - mps2/an521/cpu0/ns harness: console harness_config: type: ...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
227
```restructuredtext .. _tfm_secure_partition: TF-M Secure Partition Sample ############################ Overview ******** A Secure Partition is an isolated module that resides in TF-M. It exposes a number of functions or "secure services" to other partitions and/or to the non-secure firmware. TF-M already contains s...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
471
```objective-c /* * */ psa_status_t dp_secret_digest(uint32_t secret_index, void *p_digest, size_t digest_size); ```
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/src/dummy_partition.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
29
```c /* * */ #include <tfm_ns_interface.h> #include "dummy_partition.h" #if defined(CONFIG_TFM_IPC) #include "psa/client.h" #include "psa_manifest/sid.h" psa_status_t dp_secret_digest(uint32_t secret_index, void *p_digest, size_t digest_size) { psa_status_t status; psa_handle_t handle; psa_invec in_vec[...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/src/dummy_partition.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
381
```c /* * */ #include <zephyr/kernel.h> #include <tfm_ns_interface.h> #include "dummy_partition.h" int main(void) { uint8_t digest[32]; for (int key = 0; key < 6; key++) { psa_status_t status = dp_secret_digest(key, digest, sizeof(digest)); if (status == PSA_ERROR_INVALID_ARGUMENT && key == 5) { printk(...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
181
```yaml # your_sha256_hash--------------- # # # your_sha256_hash--------------- { "psa_framework_version": 1.1, "name": "TFM_SP_DP", "type": "APPLICATION-ROT", "priority": "NORMAL", "model": "IPC", "entry_point": "tfm_dp_req_mngr_init", "stack_size": "0x800", # Service definitions for IPC model. "se...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/dummy_partition/tfm_dummy_partition.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
230
```unknown #your_sha256_hash--------------- # # #your_sha256_hash--------------- { "description": "TF-M secure partition manifests", "type": "manifest_list", "version_major": 0, "version_minor": 1, "pid": 1000, "manifest_list": [ { "description": "Dummy Partition", "short_name": "TFM_DP", ...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/dummy_partition/tfm_manifest_list.yaml.in
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
173
```c /* * */ #include <psa/crypto.h> #include <stdbool.h> #include <stdint.h> #include "psa/service.h" #include "psa_manifest/tfm_dummy_partition.h" #define NUM_SECRETS 5 struct dp_secret { uint8_t secret[16]; }; struct dp_secret secrets[NUM_SECRETS] = { { {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}...
/content/code_sandbox/samples/tfm_integration/tfm_secure_partition/dummy_partition/dummy_partition.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
987
```unknown # # # CONFIG_BUILD_WITH_TFM=y CONFIG_TFM_PROFILE_TYPE_NOT_SET=y ```
/content/code_sandbox/samples/tfm_integration/psa_protected_storage/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20
```yaml sample: description: Protected Storage API sample name: PSA Protected Storage common: tags: psa platform_allow: - mps2/an521/cpu0/ns - v2m_musca_s1/musca_s1/ns - nrf5340dk/nrf5340/cpuapp/ns - nrf9160dk/nrf9160/ns - bl5340_dvk/nrf5340/cpuapp/ns - lpcxpresso55s69/lpc55s69/cpu0/ns ...
/content/code_sandbox/samples/tfm_integration/psa_protected_storage/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
304
```restructuredtext .. psa_protected_storage: PSA Protected Storage ##################### Overview ******** This sample demonstrates how the Protected Storage (PS) API can be used for storing data. Protected storage provides a key/value storage interface where data is (by default) encrypted, with optional authentic...
/content/code_sandbox/samples/tfm_integration/psa_protected_storage/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
645
```unknown -----BEGIN EC PARAMETERS----- BggqhkjOPQMBBw== -----END EC PARAMETERS----- -----BEGIN EC PRIVATE KEY----- MHcCAQEEIBS8uVOk7u1QCTaSBx3bJCzv+VeSQE9JqtB8Wz8mp4BIoAoGCCqGSM49 AwEHoUQDQgAER+qu2dZtLh1lBfUE/swhmb5eWlZrTx4MQ+Jbzht9BtezceIKPEft hJ9lDtv5PdIHu4Gmc+Y7FpUZrAECyxz1NQ== -----END EC PRIVATE KEY----- ```
/content/code_sandbox/samples/tfm_integration/psa_crypto/user.pem
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
157
```c /* * */ #include <zephyr/kernel.h> #include <string.h> #include <zephyr/sys/printk.h> #include <psa/storage_common.h> #include <psa/protected_storage.h> #define TEST_STRING_1 "The quick brown fox jumps over the lazy dog" #define TEST_STRING_2 "Lorem ipsum dolor sit amet" int main(void) { psa_status_t status ...
/content/code_sandbox/samples/tfm_integration/psa_protected_storage/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
770
```unknown # Private config options for PSA Crypto application mainmenu "PSA Crypto sample application" menu "Application configuration" module = PSA module-str = psa source "subsys/logging/Kconfig.template.log_config" endmenu config PSA_SHELL bool "The 'psa' shell command" depends on SHELL help Enabling th...
/content/code_sandbox/samples/tfm_integration/psa_crypto/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
241
```unknown -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAER+qu2dZtLh1lBfUE/swhmb5eWlZr Tx4MQ+Jbzht9BtezceIKPEfthJ9lDtv5PdIHu4Gmc+Y7FpUZrAECyxz1NQ== -----END PUBLIC KEY----- ```
/content/code_sandbox/samples/tfm_integration/psa_crypto/user_pub.pem
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
107
```unknown CONFIG_LOG=y CONFIG_LOG_RUNTIME_FILTERING=y CONFIG_LOG_BUFFER_SIZE=2048 CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=0 CONFIG_LOG_DEFAULT_LEVEL=3 #CONFIG_SHELL=n #CONFIG_SHELL_HISTORY=y #CONFIG_SHELL_VT100_COLORS=y #CONFIG_SHELL_CMDS=n #CONFIG_PSA_SHELL=y CONFIG_BUILD_WITH_TFM=y CONFIG_TFM_PROFILE_TYPE_NOT_SET=y C...
/content/code_sandbox/samples/tfm_integration/psa_crypto/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
381
```yaml sample: description: This app provides an example of using PSA crypto APIs to generate device certificate signing request in Zephyr using IPC mode. name: PSA crypto example tests: sample.psa_crypto: # Sample disabled due to TF-M downloading qcbor which is not apache licensed skip: true...
/content/code_sandbox/samples/tfm_integration/psa_crypto/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
310
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/logging/log_ctrl.h> #include <zephyr/logging/log.h> #include "psa/crypto.h" #include "util_app_log.h" LOG_MODULE_REGISTER(app, CONFIG_LOG_DEFAULT_LEVEL); psa_status_t al_psa_status(psa_status_t status, const char *func_name) { switch (status) { case PSA_SU...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/util_app_log.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
583
```c /* * */ #include <stdlib.h> #include <ctype.h> #include <zephyr/shell/shell.h> #if CONFIG_PSA_SHELL static int psa_shell_invalid_arg(const struct shell *sh, char *arg_name) { shell_print(sh, "Error: invalid argument \"%s\"\n", arg_name); return -EINVAL; } static int psa_shell_cmd_version(const struct shel...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
218
```objective-c /* * */ #include <zephyr/kernel.h> #include "psa/error.h" #ifdef __cplusplus extern "C" { #endif /** * @brief The struct used to persist config data to secure storage. * * The first 6 bytes of this struct should remain consistent in any future * firmware updates, since they can be used to ident...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/util_app_cfg.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
359
```c /* * */ #include <string.h> #include <zephyr/logging/log.h> #include "psa/error.h" #include "psa/protected_storage.h" #include "util_app_cfg.h" #include "util_app_log.h" /** The 64-bit UID associated with the config record in secure storage. */ static psa_storage_uid_t cfg_data_uid = 0x0000000055CFDA7A; LOG_...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/util_app_cfg.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
535
```objective-c /* * */ #include <zephyr/kernel.h> #include "psa/crypto.h" #include "psa/error.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Generates random values using the TF-M crypto service. */ void crp_test_rng(void); /** * @brief Runs a series of PSA Cryptography API test functions. */ void cr...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/psa_crypto.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
124
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/logging/log_ctrl.h> #include <zephyr/logging/log.h> #include "tfm_ns_interface.h" #include "psa_attestation.h" #include "psa_crypto.h" #include "util_app_cfg.h" #include "util_app_log.h" #include "util_sformat.h" /** Declare a reference to the application lo...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
259
```restructuredtext .. _tfm_psa_crypto: TF-M PSA crypto ################ Overview ******** This TF-M integration example demonstrates how to use the PSA crypto API in Zephyr for cryptography and device certificate signing request. In addition, this example also demonstrates certain TF-M features that are covered as p...
/content/code_sandbox/samples/tfm_integration/psa_crypto/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,349
```objective-c /* * */ #include <stdarg.h> #include "psa/error.h" #ifdef __cplusplus extern "C" { #endif /** Maximum buffer size for an initial attestation token instance. */ #define ATT_MAX_TOKEN_SIZE (0x240) /** * @brief Gets the public key portion of the attestation service's securely * stored key pa...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/psa_attestation.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
487
```objective-c /* * */ #include <stdarg.h> #include "psa/error.h" #include "psa/initial_attestation.h" #include "psa/protected_storage.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Logs PSA response messages other than PSA_SUCCESS for debugging * purposes. * * @param status The psa_stat...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/util_app_log.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
168
```objective-c /* * */ #ifndef _SFORMAT_H_ #define _SFORMAT_H_ #include <stdint.h> #include <zephyr/kernel.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Indicates how hex data should be rendered in tabular format. */ struct sf_hex_tbl_fmt { /** Whether or not to render ASCII equivalents. */ uint8_t a...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/util_sformat.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
248
```c /* * */ #include <zephyr/kernel.h> #include <stdio.h> #include <zephyr/logging/log.h> #include "psa/initial_attestation.h" #include "psa_attestation.h" #include "util_app_log.h" #include "util_sformat.h" LOG_MODULE_DECLARE(app, CONFIG_LOG_DEFAULT_LEVEL); psa_status_t att_get_pub_key(void) { psa_status_t err...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/psa_attestation.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,281
```c /* * */ #include <ctype.h> #include <stdio.h> #include "util_sformat.h" static void sf_hex_ascii(unsigned char *data, size_t len, unsigned char nonvis) { uint32_t idx; /* Render printable characters. */ idx = 0; while (len) { printf("%c", isprint(data[idx]) ? data[idx] : nonvis); idx++; len--; } } ...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/util_sformat.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
787
```objective-c /* * */ #define MBEDTLS_X509_CSR_WRITE_C #define MBEDTLS_X509_CREATE_C #define MBEDTLS_PEM_WRITE_C #define MBEDTLS_BASE64_C ```
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/configs/config_mbedtls.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
40
```objective-c /* * */ /* In TF-M the default value of CRYPTO_ENGINE_BUF_SIZE is 0x2080. * It causes insufficient memory failure while verifying signature. */ #define CRYPTO_ENGINE_BUF_SIZE 0x2400 ```
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/configs/config_tfm.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```unknown /* * */ /* Modify the SRAM partitioning to accommodate the requirements * for the Secure (TF-M) firmware for the configuration that is * used in this sample. */ /* Increase the size of the Secure Firmware (TF-M). * This modification is not required at the moment, * since TF-M region definitions are ...
/content/code_sandbox/samples/tfm_integration/psa_crypto/boards/nrf9160dk_nrf9160_ns.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
207
```c /* * */ #include <stdio.h> #include <zephyr/kernel.h> #include <zephyr/logging/log_ctrl.h> #include <zephyr/logging/log.h> #include <zephyr/data/json.h> #include "mbedtls/pk.h" #include "mbedtls/x509.h" #include "mbedtls/x509_csr.h" #include "psa_crypto.h" #include "util_app_log.h" #include "util_sformat.h" ...
/content/code_sandbox/samples/tfm_integration/psa_crypto/src/psa_crypto.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,668
```unknown CONFIG_BUILD_WITH_TFM=y CONFIG_TFM_PROFILE_TYPE_NOT_SET=y CONFIG_TFM_IPC=y CONFIG_REBOOT=y # The Zephyr CMSIS emulation assumes that ticks are ms, currently CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000 CONFIG_MAIN_STACK_SIZE=4096 CONFIG_HEAP_MEM_POOL_SIZE=4096 ```
/content/code_sandbox/samples/tfm_integration/tfm_ipc/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
73
```yaml sample: description: This app provides an example of using TF-M on the secure side, with Zephyr on the NS side, using IPC. name: TF-M IPC example tests: sample.tfm_ipc: tags: - introduction - trusted-firmware-m - mcuboot platform_allow: - mps2/an521/cpu0/ns - nrf5...
/content/code_sandbox/samples/tfm_integration/tfm_ipc/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
383
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include "tfm_ns_interface.h" #ifdef TFM_PSA_API #include "psa_manifest/sid.h" #include "psa/crypto.h" #endif /** * \brief Retrieve the version of the PSA Framework API. * * \note This is a functional test only and doesn't * mean to t...
/content/code_sandbox/samples/tfm_integration/tfm_ipc/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
463
```unknown /* * */ /* Modify the SRAM partitioning to accommodate the requirements * for the Secure (TF-M) firmware for the configuration that is * used in this sample. */ /* Increase the size of the Secure Firmware (TF-M). * This modification is not required at the moment, * since TF-M region definitions are ...
/content/code_sandbox/samples/tfm_integration/tfm_ipc/boards/nrf9160dk_nrf9160_ns.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
207
```unknown # nothing here ```
/content/code_sandbox/samples/tfm_integration/config_build/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5
```restructuredtext .. _tfm_ipc: TF-M IPC ######## Overview ******** This is a simple TF-M integration example that can be used with an ARMv8-M supported board. It uses **IPC Mode** for communication, where TF-M API calls are made to the secure image via an IPC mechanism, as opposed to **Library Mode**, where the I...
/content/code_sandbox/samples/tfm_integration/tfm_ipc/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,151
```yaml sample: description: Test TF-M builds in various configurations name: TF-M build configuration common: tags: - trusted-firmware-m platform_allow: - mps2/an521/cpu0/ns - v2m_musca_s1/musca_s1/ns - nrf5340dk/nrf5340/cpuapp/ns - nrf9160dk/nrf9160/ns - bl5340_dvk/nrf5340/cpuapp/ns ...
/content/code_sandbox/samples/tfm_integration/config_build/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
221
```c /* * */ #include <stdio.h> int main(void) { printf("Hello World! %s\n", CONFIG_BOARD_TARGET); return 0; } ```
/content/code_sandbox/samples/tfm_integration/config_build/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```unknown # # # CONFIG_BUILD_WITH_TFM=y CONFIG_TFM_PROFILE_TYPE_NOT_SET=y CONFIG_TFM_USE_NS_APP=y CONFIG_QEMU_ICOUNT_SHIFT=1 # Needed for CRYPTO and INITIAL_ATTESTATION CONFIG_MAIN_STACK_SIZE=4096 ```
/content/code_sandbox/samples/tfm_integration/tfm_psa_test/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
56
```yaml common: tags: - trusted-firmware-m - mcuboot platform_allow: - mps2/an521/cpu0/ns - nrf5340dk/nrf5340/cpuapp/ns - nrf9160dk/nrf9160/ns - nrf9161dk/nrf9161/ns - v2m_musca_s1/musca_s1/ns modules: - psa-arch-tests - tf-m-tests integration_platforms: - mps2/an521/cpu0...
/content/code_sandbox/samples/tfm_integration/tfm_psa_test/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
392
```c /* * */ #include <zephyr/kernel.h> int main(void) { printk("Should not be printed, expected TF-M's NS application to be run instead.\n"); k_panic(); for (;;) { } } ```
/content/code_sandbox/samples/tfm_integration/tfm_psa_test/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```restructuredtext .. _tfm_psa_test: TF-M Platform Security Architecture Test Sample ############################################### Overview ******** Run PSA test suites tests with Zephyr and TFM. The PSA tests are implemented in the psa-arch-tests repo: path_to_url This sample is supported for platforms that ha...
/content/code_sandbox/samples/tfm_integration/tfm_psa_test/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
941
```restructuredtext .. _sysbuild-samples: Sysbuild samples ################ .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/sysbuild/sysbuild.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # Sysbuild configuration file. # Enable MCUboot per default for this sample. SB_CONFIG_BOOTLOADER_MCUBOOT=y ```
/content/code_sandbox/samples/sysbuild/with_mcuboot/sysbuild.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
27
```unknown # Empty file ```
/content/code_sandbox/samples/sysbuild/with_mcuboot/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5
```restructuredtext .. _with_mcuboot: Sample with MCUboot ################### Overview ******** A simple example that demonstrates how building a sample using sysbuild can automatically include MCUboot as the bootloader. It showcases how the sample can adjust the configuration of extra image by creating a image speci...
/content/code_sandbox/samples/sysbuild/with_mcuboot/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
422
```yaml sample: description: Sample with MCUboot built through sysbuild name: with mcuboot tests: sample.sysbuild.with_mcuboot: sysbuild: true # Platform allowed is used as twister using sysbuild still lacks proper # filtering support, see discussion in #49552. platform_allow: - reel_board ...
/content/code_sandbox/samples/sysbuild/with_mcuboot/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
279
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/linker/linker-defs.h> int main(void) { printk("Address of sample %p\n", (void *)__rom_region_start); printk("Hello sysbuild with mcuboot! %s\n", CONFIG_BOARD); return 0; } ```
/content/code_sandbox/samples/sysbuild/with_mcuboot/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```unknown # Example of sample specific Kconfig changes when building sample with MCUboot # when using sysbuild. CONFIG_MCUBOOT_LOG_LEVEL_WRN=y CONFIG_BOOT_UPGRADE_ONLY=y CONFIG_MCUBOOT_DOWNGRADE_PREVENTION=y ```
/content/code_sandbox/samples/sysbuild/with_mcuboot/sysbuild/mcuboot.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
53
```cmake if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "") message(FATAL_ERROR "REMOTE_BOARD must be set to a valid board name") endif() ExternalZephyrProject_Add( APPLICATION remote SOURCE_DIR ${APP_DIR}/remote BOARD ${SB_CONFIG_REMOTE_BOARD} ) add_dependencies(${DEFAULT_IMAGE} remote) sysbuild_add_dependencies(F...
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```unknown source "${ZEPHYR_BASE}/share/sysbuild/Kconfig" config REMOTE_BOARD string "The board used for remote target" ```
/content/code_sandbox/samples/sysbuild/hello_world/Kconfig.sysbuild
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
30
```unknown # no additional configuration is required ```
/content/code_sandbox/samples/sysbuild/hello_world/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8
```restructuredtext .. zephyr:code-sample:: sysbuild_hello_world :name: Hello World for multiple board targets using Sysbuild Run a hello world sample on multiple board targets Overview ******** The sample demonstrates how to build a Hello World application for two board targets with :ref:`sysbuild`. This samp...
/content/code_sandbox/samples/sysbuild/hello_world/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
632
```unknown # no additional configuration is required ```
/content/code_sandbox/samples/sysbuild/hello_world/remote/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8
```c /* */ #include <zephyr/sys/printk.h> int main(void) { printk("Hello world from %s\n", CONFIG_BOARD_TARGET); return 0; } ```
/content/code_sandbox/samples/sysbuild/hello_world/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```unknown CONFIG_SOC_NRF53_CPUNET_ENABLE=y ```
/content/code_sandbox/samples/sysbuild/hello_world/boards/nrf5340dk_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```yaml sample: name: Hello World for multiple board targets using Sysbuild description: | Hello World application that builds for multiple targets. Both images print the board target they were run on. common: sysbuild: true harness: console harness_config: type: multi_line regex: - "He...
/content/code_sandbox/samples/sysbuild/hello_world/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
755
```unknown SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuflpr/xip" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf54h20dk_nrf54h20_cpuflpr_xip.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
23
```unknown SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuppr/xip" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf54h20dk_nrf54h20_cpuppr_xip.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
24
```unknown SB_CONFIG_REMOTE_BOARD="nrf5340dk/nrf5340/cpunet" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf5340dk_nrf5340_cpunet.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19
```unknown SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuflpr" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf54h20dk_nrf54h20_cpuflpr.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```unknown SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuppr" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf54h20dk_nrf54h20_cpuppr.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22
```unknown SB_CONFIG_REMOTE_BOARD="nrf54l15pdk/nrf54l15/cpuflpr" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf54l15pdk_nrf54l15_cpuflpr.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22
```unknown SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad" ```
/content/code_sandbox/samples/sysbuild/hello_world/sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```restructuredtext .. _kernel-samples: Various Kernel and Scheduler Samples #################################### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/kernel/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```unknown CONFIG_ASSERT=y CONFIG_NUM_METAIRQ_PRIORITIES=1 CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y # We're testing delivery latency to threads on a single CPU, MP # dispatch will mess up the statistics. CONFIG_MP_MAX_NUM_CPUS=1 ```
/content/code_sandbox/samples/kernel/metairq_dispatch/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
65
```yaml sample: description: Sample demonstrating dispatch of hardware events from a MetaIRQ thread name: MetaIRQ Dispatch common: tags: - kernel integration_platforms: - mps2/an385 - qemu_x86 harness: console harness_config: type: one_line regex: - "MetaIRQ Test Complete" # N...
/content/code_sandbox/samples/kernel/metairq_dispatch/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
159
```objective-c /* * */ #ifndef __MSGDEV_H__ #define __MSGDEV_H__ /* Define this to enable logging of every event as it is processed to * carefully inspect behavior. Note that at high event rates (see * MAX_EVENT_DELAY_TICKS) the log backend won't be able to keep up and * that the log processing will add CPU load...
/content/code_sandbox/samples/kernel/metairq_dispatch/src/msgdev.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
485
```restructuredtext .. _samples_scheduler_metairq_dispatch: MetaIRQ Thread Priority Demonstration ##################################### Overview ******** This sample demonstrates the use of a thread running at a MetaIRQ priority level to implement "bottom half" style processing synchronously with the end of a hardwa...
/content/code_sandbox/samples/kernel/metairq_dispatch/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,986
```c /* * */ #include <timeout_q.h> #include "msgdev.h" /* This file implements a fake device that creates and enqueues * "struct msg" messages for handling by the rest of the test. It's * based on Zephyr kernel timeouts only. */ /* Note: we use the internal timeout API to get tick precision, * k_timer limits ...
/content/code_sandbox/samples/kernel/metairq_dispatch/src/msgdev.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
739
```c /* * */ #include <zephyr/kernel.h> #include "msgdev.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(main, LOG_LEVEL_INF); #define STACK_SIZE 2048 /* How many messages can be queued for a single thread */ #define QUEUE_DEPTH MAX_EVENTS /* Array of worker threads, and their stacks */ static struct threa...
/content/code_sandbox/samples/kernel/metairq_dispatch/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,948
```unknown CONFIG_TEST=y ```
/content/code_sandbox/samples/kernel/condition_variables/condvar/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5
```yaml tests: sample.kernel.cond_var: integration_platforms: - native_sim tags: - kernel - condition_variables harness: console harness_config: type: one_line regex: - ".*Waited and joined with 3 threads" ```
/content/code_sandbox/samples/kernel/condition_variables/condvar/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```restructuredtext .. zephyr:code-sample:: kernel-condvar :name: Condition Variables :relevant-api: condvar_apis Manipulate condition variables in a multithreaded application. Overview ******** This sample demonstrates the usage of :ref:`condition variables <condvar>` in a multithreaded application. Condit...
/content/code_sandbox/samples/kernel/condition_variables/condvar/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
708
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #define NUM_THREADS 3 #define TCOUNT 10 #define COUNT_LIMIT 12 static int count; K_MUTEX_DEFINE(count_mutex); K_CONDVAR_DEFINE(count_threshold_cv); #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) K_THREAD_STACK_ARRAY_DEFINE(tstacks, NU...
/content/code_sandbox/samples/kernel/condition_variables/condvar/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
773
```unknown CONFIG_TEST=y ```
/content/code_sandbox/samples/kernel/condition_variables/simple/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5
```yaml tests: sample.kernel.cond_var.simple: integration_platforms: - native_sim tags: - kernel - condition_variables harness: console harness_config: type: one_line regex: - ".*done == 20 so everyone is done" ```
/content/code_sandbox/samples/kernel/condition_variables/simple/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
63
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #define NUM_THREADS 20 #define STACK_SIZE (1024) K_THREAD_STACK_ARRAY_DEFINE(tstacks, NUM_THREADS, STACK_SIZE); static struct k_thread t[NUM_THREADS]; K_MUTEX_DEFINE(mutex); K_CONDVAR_DEFINE(condvar); static int done; void worker_thread(void ...
/content/code_sandbox/samples/kernel/condition_variables/simple/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
544
```restructuredtext .. _bluetooth-samples: Bluetooth samples ################# To build any of the Bluetooth samples, follow the same steps as building any other Zephyr application. Refer to :ref:`bluetooth-dev` for more information. Many Bluetooth samples can be run on QEMU or :ref:`native_sim <native_sim>` with su...
/content/code_sandbox/samples/bluetooth/bluetooth.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
356
```restructuredtext .. _bluetooth-broadcaster-sample: Bluetooth: Broadcaster ########################### Overview ******** A simple application demonstrating Bluetooth Low Energy Broadcaster role functionality. The application will periodically send out advertising packets with a manufacturer data element. The conte...
/content/code_sandbox/samples/bluetooth/broadcaster/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
152
```unknown CONFIG_BT=y CONFIG_BT_BROADCASTER=y ```
/content/code_sandbox/samples/bluetooth/broadcaster/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```yaml sample: name: broadcaster tests: sample.bluetooth.broadcaster: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 - nrf51dk/nrf51822 - nrf52dk/nrf52832 tags: bluetooth integration_platforms: - qemu_cortex_m3 ```
/content/code_sandbox/samples/bluetooth/broadcaster/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```restructuredtext .. _samples_kernel_simple_condition_variables: Condition Variables ################### Overview ******** This sample demonstrates the usage of condition variables in a multithreaded application. Condition variables are used with a mutex to signal changing states (conditions) from worker thread to...
/content/code_sandbox/samples/kernel/condition_variables/simple/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,552
```c /* main.c - Application main entry point */ /* * */ #include <zephyr/types.h> #include <stddef.h> #include <zephyr/sys/printk.h> #include <zephyr/sys/util.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> static uint8_t mfg_data[] = { 0xff, 0xff, 0x00 }; static const struct bt_dat...
/content/code_sandbox/samples/bluetooth/broadcaster/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
339
```unknown /* * */ &lptmr1 { interrupt-parent = <&intmux0_ch2>; }; &intmux0_ch2 { status = "okay"; }; &intmux0_ch3 { status = "okay"; }; &generic_fsk { interrupt-parent = <&intmux0_ch3>; status = "okay"; }; ```
/content/code_sandbox/samples/bluetooth/broadcaster/boards/rv32m1_vega_openisa_rv32m1_ri5cy.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```unknown #CONFIG_INIT_STACKS=y CONFIG_ISR_STACK_SIZE=768 CONFIG_MAIN_STACK_SIZE=320 CONFIG_IDLE_STACK_SIZE=128 CONFIG_DISPLAY=y CONFIG_MICROBIT_DISPLAY=y CONFIG_GPIO=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_MESH_GATT_PROXY=y CONFIG_BT_MESH_PB_GATT=y CONFIG_BT_MESH_PB_ADV=n CONFIG_BT=y CONFIG_BT_DEVICE_NAME="Zephyr Mesh" ...
/content/code_sandbox/samples/bluetooth/mesh/microbit_gatt.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
411
```unknown CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_BT_SETTINGS=y CONFIG_FLASH=y CONFIG_FLASH_MAP=y CONFIG_NVS=y CONFIG_SETTINGS=y CONFIG_HWINFO=y CONFIG_BT=y CONFIG_BT_L2CAP_TX_BUF_COUNT=5 CONFIG_BT_PERIPHERAL=y CONFIG_BT_OBSERVER=y CONFIG_BT_BROADCASTER=y CONFIG_BT_CTLR_DUP_FILTER_LEN=0 CONFIG_BT_CTLR_LE_ENC...
/content/code_sandbox/samples/bluetooth/mesh/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
225
```yaml sample: name: Bluetooth Mesh tests: sample.bluetooth.mesh: harness: bluetooth platform_allow: - bbc_microbit - qemu_x86 - nrf52840dk/nrf52840 - nrf5340dk/nrf5340/cpuapp/ns integration_platforms: - qemu_x86 tags: bluetooth ```
/content/code_sandbox/samples/bluetooth/mesh/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```restructuredtext .. _ble_mesh: Bluetooth: Mesh ############### Overview ******** This sample demonstrates Bluetooth Mesh functionality. It has several standard mesh models, and supports provisioning over both the Advertising and the GATT Provisioning Bearers (i.e. PB-ADV and PB-GATT). The application also needs a...
/content/code_sandbox/samples/bluetooth/mesh/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
526
```c /* board.c - Generic HW interaction hooks */ /* * */ #include <zephyr/bluetooth/mesh.h> #include <zephyr/drivers/gpio.h> #include "board.h" /* Locate led0 as alias or label by that name */ #if DT_NODE_EXISTS(DT_ALIAS(led0)) #define LED0 DT_ALIAS(led0) #elif DT_NODE_EXISTS(DT_NODELABEL(led0)) #define LED0 DT_N...
/content/code_sandbox/samples/bluetooth/mesh/src/board.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
722
```c /* microbit.c - BBC micro:bit specific hooks */ /* * */ #include <zephyr/bluetooth/mesh.h> #include <zephyr/display/mb_display.h> #include <zephyr/drivers/gpio.h> #include "board.h" static uint32_t oob_number; static const struct gpio_dt_spec button = GPIO_DT_SPEC_GET(DT_NODELABEL(buttona), gpios); static c...
/content/code_sandbox/samples/bluetooth/mesh/src/microbit.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
865
```objective-c /* board.h - Board-specific hooks */ /* * */ void board_output_number(bt_mesh_output_action_t action, uint32_t number); void board_prov_complete(void); int board_init(struct k_work *button_work); void board_led_set(bool val); ```
/content/code_sandbox/samples/bluetooth/mesh/src/board.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```unknown # Enable PSA as a crypto backend in host CONFIG_BT_USE_PSA_API=y ```
/content/code_sandbox/samples/bluetooth/mesh/boards/nrf5340dk_nrf5340_cpuapp_ns.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19