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 /* * */ #define DT_DRV_COMPAT espressif_esp32_flash_controller #define SOC_NV_FLASH_NODE DT_INST(0, soc_nv_flash) #define FLASH_WRITE_BLK_SZ DT_PROP(SOC_NV_FLASH_NODE, write_block_size) #define FLASH_ERASE_BLK_SZ DT_PROP(SOC_NV_FLASH_NODE, erase_block_size) /* * HAL includes go first to * avoid BIT macro re...
/content/code_sandbox/drivers/flash/flash_esp32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,178
```unknown menu "MSPI flash device driver" config FLASH_MSPI bool select FLASH_HAS_DRIVER_ENABLED select MSPI help MSPI flash drivers are enabled. config FLASH_MSPI_EMUL_DEVICE bool "MSPI flash device emulator" default y depends on DT_HAS_ZEPHYR_MSPI_EMUL_FLASH_ENABLED select FLASH_MSPI select FLASH_HAS_...
/content/code_sandbox/drivers/flash/Kconfig.mspi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
170
```unknown # FLASH configuration options config SOC_FLASH_ITE_IT8XXX2 bool "ITE IT8XXX2 flash driver" default y depends on DT_HAS_ITE_IT8XXX2_FLASH_CONTROLLER_ENABLED select SOC_IT8XXX2_USE_ILM select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE select HAS_FLASH_LOAD_O...
/content/code_sandbox/drivers/flash/Kconfig.it8xxx2
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
118
```objective-c /* * */ #ifndef DRIVERS_FLASH_FLASH_SIMULATOR_NATIVE_H #define DRIVERS_FLASH_FLASH_SIMULATOR_NATIVE_H #ifdef __cplusplus extern "C" { #endif int flash_mock_init_native(bool flash_in_ram, uint8_t **mock_flash, unsigned int size, int *flash_fd, const char *flash_file_path, unsigned int era...
/content/code_sandbox/drivers/flash/flash_simulator_native.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
139
```c /* * */ #define DT_DRV_COMPAT nuvoton_npcx_fiu_qspi #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/flash/npcx_flash_api_ex.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/spi.h> #include <zephyr/dt-bindings/flash_controller/npcx_fiu_qspi.h> #include <soc.h> #include "flash_...
/content/code_sandbox/drivers/flash/flash_npcx_fiu_qspi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,579
```c /* * */ #define DT_DRV_COMPAT st_stm32_qspi_nor #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/toolchain.h> #include <zephyr/arch/common/ffs.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/util.h> #include <soc.h> #include <string.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr...
/content/code_sandbox/drivers/flash/flash_stm32_qspi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12,638
```c /* * */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(flash_stm32generic, CONFIG_FLASH_LOG_LEVEL); #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <zephyr/sys/barrier.h> #include <soc.h> #include "flash_stm32.h...
/content/code_sandbox/drivers/flash/flash_stm32f1x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,482
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_FLASH_XSPI_STM32_H_ #define ZEPHYR_DRIVERS_FLASH_XSPI_STM32_H_ /* Macro to check if any xspi device has a domain clock or more */ #define STM32_XSPI_DOMAIN_CLOCK_INST_SUPPORT(inst) \ DT_CLOCKS_HAS_IDX(DT_INST_PARENT(inst), 1) || #define STM32_XSPI_INST_DEV_DOMAIN_CLOCK...
/content/code_sandbox/drivers/flash/flash_stm32_xspi.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
880
```unknown # # # menuconfig SOC_FLASH_NRF_RRAM bool "Nordic Semiconductor flash driver for nRF RRAM" default y depends on DT_HAS_NORDIC_RRAM_CONTROLLER_ENABLED select NRFX_RRAMC if !BUILD_WITH_TFM select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_NO_EXPLICIT_ERASE select FLASH_NRF_F...
/content/code_sandbox/drivers/flash/Kconfig.nrf_rram
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
573
```unknown config SOC_FLASH_LPC bool "LPC flash shim driver" default y depends on DT_HAS_NXP_IAP_FMC11_ENABLED || \ DT_HAS_NXP_IAP_FMC54_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE help Enables the LPC IAP flash shim driver. WARNING: This driver w...
/content/code_sandbox/drivers/flash/Kconfig.lpc
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
129
```c /* * Emulate a memory device on MSPI emulator bus */ #define DT_DRV_COMPAT zephyr_mspi_emul_flash #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/mspi.h> #include <zephyr/drivers/ms...
/content/code_sandbox/drivers/flash/flash_mspi_emul_device.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,543
```c /* * */ #define DT_DRV_COMPAT andestech_qspi_nor #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <string.h> #include <zephyr/logging/log.h> #include "flash_andes_qspi.h" #include "spi_nor.h" #include "jesd216.h" #incl...
/content/code_sandbox/drivers/flash/flash_andes_qspi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,430
```c /* * */ #include "flash_gd32.h" #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include <gd32_fmc.h> LOG_MODULE_DECLARE(flash_gd32); #define GD32_NV_FLASH_V2_NODE DT_INST(0, gd_gd32_nv_flash_v2) #define GD32_NV_FLASH_V2_TIMEOUT DT_PROP(GD32_NV_FLASH_V2_NODE, max_erase_time_ms) #if !defined(CONF...
/content/code_sandbox/drivers/flash/flash_gd32_v2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,201
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_FLASH_FLASH_STM32_H_ #define ZEPHYR_DRIVERS_FLASH_FLASH_STM32_H_ #include <zephyr/drivers/flash.h> #if DT_NODE_HAS_PROP(DT_INST(0, st_stm32_flash_controller), clocks) || \ DT_NODE_HAS_PROP(DT_INST(0, st_stm32h7_flash_controller), clocks) #include <zephyr/drivers/clock...
/content/code_sandbox/drivers/flash/flash_stm32.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,099
```c /* * an affiliate of Cypress Semiconductor Corporation * */ #define DT_DRV_COMPAT infineon_cat1_qspi_flash #define SOC_NV_FLASH_NODE DT_PARENT(DT_INST(0, fixed_partitions)) #define PAGE_LEN DT_PROP(SOC_NV_FLASH_NODE, erase_block_size) #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <ze...
/content/code_sandbox/drivers/flash/flash_ifx_cat1_qspi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,296
```unknown menuconfig NORDIC_QSPI_NOR bool "QSPI NOR Flash" default y depends on DT_HAS_NORDIC_QSPI_NOR_ENABLED select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_EXPLICIT_ERASE select NRFX_QSPI select FLASH_JESD216 select PINCTRL help Enable support for nrfx QSPI driver with Ea...
/content/code_sandbox/drivers/flash/Kconfig.nordic_qspi_nor
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
544
```unknown config SOC_FLASH_SMARTBOND bool "Renesas SmartBond(tm) flash driver" default y depends on DT_HAS_RENESAS_SMARTBOND_FLASH_CONTROLLER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE select MPU_ALLOW_FLASH_WRITE if ARM_MPU help Enable flash driver...
/content/code_sandbox/drivers/flash/Kconfig.smartbond
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
88
```unknown config SOC_FLASH_GD32 bool "GigaDevice GD32 flash driver" default y depends on (GD32_NV_FLASH_V1 || GD32_NV_FLASH_V2 || GD32_NV_FLASH_V3) select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_EXPLICIT_ERASE select MPU_ALLOW_FLASH_WRITE if ARM_MPU help Enable the GigaDevice...
/content/code_sandbox/drivers/flash/Kconfig.gd32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
228
```c /* * */ #include <sys/types.h> #include <zephyr/kernel.h> #include "jesd216.h" #include "spi_nor.h" static bool extract_instr(uint16_t packed, struct jesd216_instr *res) { bool rv = (res != NULL); if (rv) { res->instr = packed >> 8; res->mode_clocks = (packed >> 5) & 0x07; res->wait_states = pac...
/content/code_sandbox/drivers/flash/jesd216.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,734
```c /* * */ /* * This driver is written based on the Altera's * Nios-II QSPI Controller HAL driver. */ #define DT_DRV_COMPAT altr_nios2_qspi_nor #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <errno.h> #include <zephyr/init.h> #include <soc....
/content/code_sandbox/drivers/flash/soc_flash_nios2_qspi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,224
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_FLASH_FLASH_PRIV_H_ #define ZEPHYR_DRIVERS_FLASH_FLASH_PRIV_H_ #if defined(CONFIG_FLASH_PAGE_LAYOUT) static inline void flash_page_layout_not_implemented(void) { k_panic(); } #endif #endif ```
/content/code_sandbox/drivers/flash/flash_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
56
```objective-c /* * */ /* Flash opcodes */ #define FLASH_ANDES_CMD_WRSR 0x01 /* Write status register */ #define FLASH_ANDES_CMD_RDSR 0x05 /* Read status register */ #define FLASH_ANDES_CMD_READ 0x03 /* Read data */ #define FLASH_ANDES_CMD_4READ 0xEB /* Quad mode Read data*/ #define FLASH_ANDES_CMD_WREN ...
/content/code_sandbox/drivers/flash/flash_andes_qspi.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,312
```c /* * an affiliate of Cypress Semiconductor Corporation * */ #define DT_DRV_COMPAT infineon_cat1_flash_controller #define SOC_NV_FLASH_NODE DT_PARENT(DT_INST(0, fixed_partitions)) #define PAGE_LEN DT_PROP(SOC_NV_FLASH_NODE, erase_block_size) #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include...
/content/code_sandbox/drivers/flash/flash_ifx_cat1.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,486
```unknown config SOC_FLASH_RV32M1 bool "RV32M1 flash shim driver" default y depends on DT_HAS_OPENISA_RV32M1_FTFE_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE help Enables the RV32M1 flash shim driver. WARNING: This driver will disable the system in...
/content/code_sandbox/drivers/flash/Kconfig.rv32m1
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
124
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <errno.h> #include <zephyr/init.h> #include <soc.h> #include "flash_priv.h" #include "fsl_common.h" #include "fsl_flashiap.h" #if DT_NODE_HAS_STATUS(DT_INST(0, nxp_iap_fmc11), okay) #d...
/content/code_sandbox/drivers/flash/soc_flash_lpc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,127
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_FLASH_FLASH_GD32_H_ #define ZEPHYR_DRIVERS_FLASH_FLASH_GD32_H_ #include <stdint.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/flash.h> #define SOC_NV_FLASH_NODE DT_INST(0, soc_nv_flash) #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) #define SOC_N...
/content/code_sandbox/drivers/flash/flash_gd32.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
338
```unknown # STM32 Octo SPI flash driver configuration options DT_STM32_OCTOSPI_1_HAS_DMA := $(dt_nodelabel_has_prop,octospi1,dmas) DT_STM32_OCTOSPI_2_HAS_DMA := $(dt_nodelabel_has_prop,octospi2,dmas) config FLASH_STM32_OSPI bool "STM32 Octo SPI Flash driver" default y depends on DT_HAS_ST_STM32_OSPI_NOR_ENABLED ...
/content/code_sandbox/drivers/flash/Kconfig.stm32_ospi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
362
```c /* * */ #define DT_DRV_COMPAT nxp_imx_flexspi_nor #include <zephyr/kernel.h> #include <zephyr/drivers/flash.h> #include <zephyr/irq.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> #include "spi_nor.h" #include "jesd216.h" #include "memc_mcux_flexspi.h" #ifdef CONFIG_HAS_MCUX_CACHE #include <fs...
/content/code_sandbox/drivers/flash/flash_mcux_flexspi_nor.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,537
```c /* * */ #include "flash_gd32.h" #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include <gd32_fmc.h> LOG_MODULE_DECLARE(flash_gd32); #define GD32_NV_FLASH_V1_NODE DT_INST(0, gd_gd32_nv_flash_v1) #define GD32_NV_FLASH_V1_TIMEOUT DT_PROP(GD32_NV_FLASH_V1_NODE, max_erase_time_ms) #define GD32_NV_FL...
/content/code_sandbox/drivers/flash/flash_gd32_v1.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,271
```c /* * */ #include "flash_cadence_qspi_nor_ll.h" #include <string.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> LOG_MODULE_REGISTER(flash_cadence_ll, CONFIG_FLASH_LOG_LEVEL); int cad_qspi_idle(struct cad_qspi_params *cad_params) { if (cad_params == NULL) { LOG_ERR("Wrong parameter\n"); re...
/content/code_sandbox/drivers/flash/flash_cadence_qspi_nor_ll.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,527
```c /* * */ #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> #include <zephyr/sys/barrier.h> LOG_MODULE_REGISTER(flash_nrf_mram, CONFIG_FLASH_LOG_LEVEL); #define DT_DRV_COMPAT nordic_mram #define MRAM_START DT_INST_REG_ADDR(0) #define MRAM_SIZE DT_INST_REG_SIZE(0) #define ...
/content/code_sandbox/drivers/flash/soc_flash_nrf_mram.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,223
```c /* * */ #define LOG_DOMAIN flash_stm32l5 #define LOG_LEVEL CONFIG_FLASH_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_DOMAIN); #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <soc.h> #include <stm3...
/content/code_sandbox/drivers/flash/flash_stm32l5x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,525
```objective-c /* * */ #ifndef CAD_QSPI_NOR_LL_H #define CAD_QSPI_NOR_LL_H #include <zephyr/device.h> #define CAD_QSPI_MICRON_N25Q_SUPPORT CONFIG_CAD_QSPI_MICRON_N25Q_SUPPORT #define CAD_INVALID -1 #define CAD_QSPI_ERROR -2 #define CAD_QSPI_ADDR_FASTREAD 0 #define CAD_QSPI_ADDR_FASTREAD_DUAL_IO 1 #defi...
/content/code_sandbox/drivers/flash/flash_cadence_qspi_nor_ll.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,484
```unknown menuconfig SPI_FLASH_AT45 bool "AT45 family flash driver" default y depends on DT_HAS_ATMEL_AT45_ENABLED select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_EXPLICIT_ERASE select SPI help This driver can handle several instances of AT45 family chips that are enabled b...
/content/code_sandbox/drivers/flash/Kconfig.at45
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
295
```unknown # # # config SOC_FLASH_NRF_MRAM bool "Nordic Semiconductor flash driver for MRAM" default y depends on DT_HAS_NORDIC_MRAM_ENABLED select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_NO_EXPLICIT_ERASE imply MPU_ALLOW_FLASH_WRITE if ARM_MPU help Enables Nordic Semiconducto...
/content/code_sandbox/drivers/flash/Kconfig.nrf_mram
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
142
```c /* * */ /* * ************************************************************************** * xSPI flash controller driver for stm32 serie with xSPI periherals * This driver is based on the stm32Cube HAL XSPI driver * with one xspi DTS NODE * ********************************************************************...
/content/code_sandbox/drivers/flash/flash_stm32_xspi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22,423
```c /* * */ #define DT_DRV_COMPAT nordic_qspi_nor #include <errno.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <zephyr/pm/device.h> #include <zephyr/pm/device_runtime.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/sys/atomic.h> #include <soc.h> #include <string.h> #include <zephy...
/content/code_sandbox/drivers/flash/nrf_qspi_nor.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,929
```c /* * */ #define DT_DRV_COMPAT nuvoton_numaker_fmc #include <string.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> #include "flash_priv.h" #include <NuMicro.h> LOG_MODULE_REGISTER(flash_numaker, CONFIG_FLASH_LOG_LEVE...
/content/code_sandbox/drivers/flash/soc_flash_numaker.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,838
```c /* * */ #define DT_DRV_COMPAT atmel_sam0_nvmctrl #define SOC_NV_FLASH_NODE DT_INST(0, soc_nv_flash) #define LOG_LEVEL CONFIG_FLASH_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(flash_sam0); #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <zephyr/k...
/content/code_sandbox/drivers/flash/flash_sam0.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,321
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/shell/shell.h> #include <zephyr/sys/util.h> #include <stdlib.h> #include <string.h> #include <zephyr/drivers/flash.h> /* Buffer is only needed for bytes that follow command and offset */ #define BUF_ARRAY_CNT (CONFIG_SHELL_ARG...
/content/code_sandbox/drivers/flash/flash_shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,259
```c /* * */ #define DT_DRV_COMPAT nxp_imx_flexspi_mx25um51345g #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> #include <zephyr/irq.h> #include <zephyr/sys/util.h> #include "spi_nor.h" #include "memc_mcux_flexspi.h" #ifdef CONFIG_HAS_MCUX_CACHE #include <fsl_cache.h> #endif #define NOR_ERASE_VA...
/content/code_sandbox/drivers/flash/flash_mcux_flexspi_mx25um51345g.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,545
```objective-c /* * */ #ifndef CDNS_NAND_LL_H #define CDNS_NAND_LL_H #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #define NAND_INT_SEM_TAKE(param_ptr) \ COND_CODE_1(IS_ENABLED(CONFIG_CDNS_NAND_INTERRUPT_SUPPORT), \ (k_sem_take(&(param_ptr->interrupt_sem_t), K_F...
/content/code_sandbox/drivers/flash/flash_cadence_nand_ll.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,348
```unknown # menuconfig SPI_NOR bool "SPI NOR Flash" default y depends on DT_HAS_JEDEC_SPI_NOR_ENABLED select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE select FLASH_HAS_PAGE_LAYOUT select FLASH_JESD216 select FLASH_HAS_EX_OP select SPI if SPI_NOR choice SPI_NOR_SFDP prompt "Source for Serial...
/content/code_sandbox/drivers/flash/Kconfig.nor
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
709
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/drivers/flash.h> #define DT_DRV_COMPAT st_stm32wba_flash_controller #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(flash_stm32wba, CONFIG_FLASH_LOG_LEVEL); #include "flash_stm32.h" #include "flash_man...
/content/code_sandbox/drivers/flash/flash_stm32wba_fm.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,550
```c /* * */ #define DT_DRV_COMPAT ambiq_flash_controller #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> #include <am_mcu_apollo.h> LOG_MODULE_REGISTER(flash_ambiq, CONFIG_FLASH_LOG_LEVEL); #define SOC_NV_FLASH_NODE DT_INST(0, soc_nv_fl...
/content/code_sandbox/drivers/flash/flash_ambiq.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,689
```c /* * */ #include <string.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/sys/barrier.h> #include <soc.h> #include "flash_stm32.h" LOG_MODULE_REGISTER(flash_stm32f4x, CONFIG_FLASH_LOG_LEVEL); ...
/content/code_sandbox/drivers/flash/flash_stm32f4x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,176
```c /* * */ #define DT_DRV_COMPAT infineon_xmc4xxx_flash_controller #define FLASH_WRITE_BLK_SZ DT_PROP(DT_INST(0, infineon_xmc4xxx_nv_flash), write_block_size) #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/kernel.h> #include <xmc_flash.h> struct flash_xmc4xxx_...
/content/code_sandbox/drivers/flash/soc_flash_xmc4xxx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,539
```c /* * */ #define DT_DRV_COMPAT telink_b91_flash_controller #define FLASH_SIZE DT_REG_SIZE(DT_INST(0, soc_nv_flash)) #define FLASH_ORIGIN DT_REG_ADDR(DT_INST(0, soc_nv_flash)) #include "flash.h" #include <string.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/kernel.h> /* driv...
/content/code_sandbox/drivers/flash/soc_flash_b91.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,503
```unknown # Flash simulator config menuconfig FLASH_SIMULATOR bool "Flash simulator" default y depends on DT_HAS_ZEPHYR_SIM_FLASH_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED help Enable the flash simulator. if FLASH_SIMULATOR config FLASH_SIMULATOR_UNALIGNED_READ bool "Allow read...
/content/code_sandbox/drivers/flash/Kconfig.simulator
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
627
```c /* * */ #define LOG_DOMAIN flash_stm32g0 #define LOG_LEVEL CONFIG_FLASH_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_DOMAIN); #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <soc.h> #include "fla...
/content/code_sandbox/drivers/flash/flash_stm32g0x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,772
```unknown # Flash driver configuration options # # Flash driver # config FLASH_HAS_DRIVER_ENABLED bool help This option is enabled when any flash driver is enabled. config FLASH_HAS_EX_OP bool help This option is selected by drivers that support flash extended operations. config FLASH_HAS_EXPLICIT_ERA...
/content/code_sandbox/drivers/flash/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,648
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_FLASH_JESD216_H_ #define ZEPHYR_DRIVERS_FLASH_JESD216_H_ #include <errno.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #include <zephyr/types.h> /* JEDEC Read identification */ #define JESD216_CMD_READ_ID SPI_NOR_CMD_RDID #define JESD216_OCMD_READ...
/content/code_sandbox/drivers/flash/jesd216.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,918
```unknown # STM32 Quad SPI flash driver configuration options DT_STM32_QUADSPI_HAS_DMA := $(dt_nodelabel_has_prop,quadspi,dmas) config FLASH_STM32_QSPI bool "STM32 Quad SPI Flash driver" default y depends on DT_HAS_ST_STM32_QSPI_NOR_ENABLED select USE_STM32_HAL_QSPI select USE_STM32_HAL_MDMA if SOC_SERIES_STM3...
/content/code_sandbox/drivers/flash/Kconfig.stm32_qspi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
174
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #define DT_DRV_COMPAT st_stm32_flash_controller #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/drivers/flash/stm32_flash_api_extensions.h> #include <zephyr/init.h> #include <soc.h> #include <stm32_ll_bus.h> #include <stm32_l...
/content/code_sandbox/drivers/flash/flash_stm32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,450
```c /* * */ #define DT_DRV_COMPAT gd_gd32_flash_controller #include "flash_gd32.h" #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> #include <gd32_fmc.h> LOG_MODULE_REGISTER(flash_gd32, CONFIG_FLASH_LOG_LEVEL); struct flash_gd32_data { ...
/content/code_sandbox/drivers/flash/flash_gd32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
667
```c /* * */ #define DT_DRV_COMPAT cdns_qspi_nor #include "flash_cadence_qspi_nor_ll.h" #include <string.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(flash_cadence, CONFIG_FLASH_LOG_LEVEL); struct flash_cad_priv { ...
/content/code_sandbox/drivers/flash/flash_cadence_qspi_nor.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,166
```c /* * */ #include "flash_cadence_nand_ll.h" LOG_MODULE_REGISTER(flash_cdns_nand_ll, CONFIG_FLASH_LOG_LEVEL); /** * Wait for the Cadence NAND controller to become idle. * * @param base_address The base address of the Cadence NAND controller. * @retval 0 on success or -ETIMEDOUT error value on failure. */ s...
/content/code_sandbox/drivers/flash/flash_cadence_nand_ll.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12,860
```c /* * */ #define DT_DRV_COMPAT nuvoton_npcx_fiu_nor #include <zephyr/kernel.h> #include <zephyr/drivers/flash.h> #include <zephyr/drivers/flash/npcx_flash_api_ex.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/dt-bindings/flash_controller/npcx_fiu_qspi.h> #include <soc.h> #ifdef CONFIG_USERSPACE #includ...
/content/code_sandbox/drivers/flash/flash_npcx_fiu_nor.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,046
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <errno.h> #include <zephyr/init.h> #include <soc.h> #include <zephyr/sys/barrier.h> #include "flash_priv.h" #include "fsl_common.h" #define LOG_LEVEL CONFIG_FLASH_LOG_LEVEL #include <ze...
/content/code_sandbox/drivers/flash/soc_flash_mcux.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,301
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <soc.h> #include "flash_stm32.h" bool flash_stm32_valid_range(const struct device *dev, off_t offset, uint32_t len, bool write) { ARG_UNUSED(wr...
/content/code_sandbox/drivers/flash/flash_stm32f2x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,322
```c /* * */ #include <errno.h> #include <zephyr/drivers/flash.h> static int flash_get_page_info(const struct device *dev, off_t offs, uint32_t index, struct flash_pages_info *info) { const struct flash_driver_api *api = dev->api; const struct flash_pages_layout *layout; size_t layout_size; uint32_t ...
/content/code_sandbox/drivers/flash/flash_page_layout.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
616
```unknown # NPCX Flash driver configuration options config FLASH_NPCX_FIU_QSPI bool "Nuvoton NPCX QSPI Bus Flash driver" default y depends on DT_HAS_NUVOTON_NPCX_FIU_QSPI_ENABLED help This option enables the QSPI Bus Flash driver for NPCX family of processors. config FLASH_NPCX_FIU_NOR bool "Nuvoton NPCX...
/content/code_sandbox/drivers/flash/Kconfig.npcx_fiu
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
524
```c /* * */ #define DT_DRV_COMPAT mspi_atxp032 #include <zephyr/kernel.h> #include <zephyr/pm/device.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/mspi.h> #if CONFIG_SOC_FAMILY_AMBIQ #include "mspi_ambiq.h" typedef struct mspi_ambiq_timing...
/content/code_sandbox/drivers/flash/flash_mspi_atxp032.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,800
```objective-c /* * */ #ifndef __SOC_FLASH_NRF_H__ #define __SOC_FLASH_NRF_H__ #include <zephyr/kernel.h> #include <soc.h> #define FLASH_OP_DONE (0) /* 0 for compliance with the driver API. */ #define FLASH_OP_ONGOING 1 struct flash_context { uint32_t data_addr; /* Address of data to write. */ uint32_t fla...
/content/code_sandbox/drivers/flash/soc_flash_nrf.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,347
```c /* * */ #define LOG_DOMAIN flash_stm32wb #define LOG_LEVEL CONFIG_FLASH_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_DOMAIN); #include <zephyr/kernel.h> #include <zephyr/device.h> #include <string.h> #include <zephyr/drivers/flash.h> #include <zephyr/init.h> #include <soc.h> #include <zeph...
/content/code_sandbox/drivers/flash/flash_stm32wbx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,249
```c /* * */ #include <errno.h> #include <zephyr/drivers/flash.h> #include <zephyr/logging/log.h> #include <string.h> LOG_MODULE_REGISTER(flash, CONFIG_FLASH_LOG_LEVEL); int z_impl_flash_fill(const struct device *dev, uint8_t val, off_t offset, size_t size) { uint8_t filler[CONFIG_FLASH_FILL_BUFFER_SIZE...
/content/code_sandbox/drivers/flash/flash_util.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
591
```c /* * */ #define DT_DRV_COMPAT nxp_s32_qspi_nor #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(nxp_s32_qspi_nor, CONFIG_FLASH_LOG_LEVEL); #include <zephyr/kernel.h> #include <zephyr/drivers/flash.h> #include <zephyr/sys/util.h> #include <Qspi_Ip.h> #include "spi_nor.h" #include "jesd216.h" #include "me...
/content/code_sandbox/drivers/flash/flash_nxp_s32_qspi_nor.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,540
```unknown # Infineon CAT1 Flash configuration options # an affiliate of Cypress Semiconductor Corporation # config FLASH_INFINEON_CAT1 bool "Infineon CAT1 FLASH driver" default y depends on DT_HAS_INFINEON_CAT1_FLASH_CONTROLLER_ENABLED && DT_HAS_FIXED_PARTITIONS_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH...
/content/code_sandbox/drivers/flash/Kconfig.ifx_cat1
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
234
```unknown config SOC_FLASH_XMC4XXX bool "XMC4XXX flash driver" default y depends on DT_HAS_INFINEON_XMC4XXX_FLASH_CONTROLLER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE help Enables XMC4XXX flash driver. ```
/content/code_sandbox/drivers/flash/Kconfig.xmc4xxx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```c /* * */ #include <zephyr/internal/syscall_handler.h> #include <zephyr/drivers/flash.h> static inline int z_vrfy_flash_read(const struct device *dev, off_t offset, void *data, size_t len) { K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, read)); K_OOPS(K_SYSCALL_MEMORY_WRITE(data, len)); return z_impl_flash_read(...
/content/code_sandbox/drivers/flash/flash_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,170
```unknown # Atmel SAM0 flash driver config menuconfig SOC_FLASH_SAM0 bool "Atmel SAM0 flash driver" default y depends on DT_HAS_ATMEL_SAM0_NVMCTRL_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE select MPU_ALLOW_FLASH_WRITE if ARM_MPU help Enable the At...
/content/code_sandbox/drivers/flash/Kconfig.sam0
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
162
```c /* * */ #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <soc.h> #include <zephyr/drivers/flash.h> #include <string.h> #include <nrfx_nvmc.h> #include <nrf_erratas.h> #include "soc_flash_nrf.h" #define LOG_LEVEL CONFIG_FLASH_LOG_LEVEL #include <zephyr...
/content/code_sandbox/drivers/flash/soc_flash_nrf.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,994
```unknown config SOC_FLASH_TELINK_B91 bool "Telink Semiconductor B91 flash driver" default y depends on DT_HAS_TELINK_B91_FLASH_CONTROLLER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_EXPLICIT_ERASE help Enables Telink B91 flash driver. ```
/content/code_sandbox/drivers/flash/Kconfig.b91
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```unknown # config FLASH_RPI_PICO bool "Raspberry Pi Pico flash driver" default y depends on DT_HAS_RASPBERRYPI_PICO_FLASH_CONTROLLER_ENABLED select FLASH_HAS_DRIVER_ENABLED select FLASH_HAS_PAGE_LAYOUT select FLASH_HAS_EXPLICIT_ERASE select PICOSDK_USE_FLASH help Enable Raspberry Pi Pico flash driver. ``...
/content/code_sandbox/drivers/flash/Kconfig.rpi_pico
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```c /* * */ #include <zephyr/drivers/kscan.h> #include <zephyr/internal/syscall_handler.h> static inline int z_vrfy_kscan_config(const struct device *dev, kscan_callback_t callback_isr) { K_OOPS(K_SYSCALL_DRIVER_KSCAN(dev, config)); K_OOPS(K_SYSCALL_VERIFY_MSG(callback_isr == 0, "callback canno...
/content/code_sandbox/drivers/kscan/kscan_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
241
```unknown config KSCAN_INPUT bool "Input subsystem to kscan adapter driver" default y depends on INPUT depends on DT_HAS_ZEPHYR_KSCAN_INPUT_ENABLED ```
/content/code_sandbox/drivers/kscan/Kconfig.input
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```c /* * */ #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/irq.h> #include <zephyr/kernel.h> #include <string.h> #include <driverlib/flash.h> #include <driverlib/vims.h> #define DT_DRV_COMPAT ti_cc13xx_cc26xx_flash_controller #define SOC_NV_FLASH_NODE DT_INST(0, soc_nv_fla...
/content/code_sandbox/drivers/flash/soc_flash_cc13xx_cc26xx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,700
```c /* * */ #define DT_DRV_COMPAT zephyr_kscan_input #include <zephyr/drivers/kscan.h> #include <zephyr/input/input.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(kscan_input, CONFIG_KSCAN_LOG_LEVEL); struct kscan_input_config { const struct device *input_dev; }; struct kscan_input_data { bool enabled;...
/content/code_sandbox/drivers/kscan/kscan_input.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
667
```unknown # Keyboard scan configuration options menuconfig KSCAN bool "Keyboard scan drivers" help Include Keyboard scan drivers in system config. if KSCAN source "drivers/kscan/Kconfig.input" module = KSCAN module-str = kscan source "subsys/logging/Kconfig.template.log_config" config KSCAN_INIT_PRIORITY i...
/content/code_sandbox/drivers/kscan/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
97
```objective-c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #if defined(CONFIG_SOC_SERIES_NRF52X) #define CPU_CLOCK 64000000U #else #define CPU_CLOCK CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC #endif #if defined(CONFIG_SOC_SERIES_NRF52X) || defined(CONFIG_SOC_SERIES_NRF53X) #define FAST_BITBANG_HW...
/content/code_sandbox/drivers/dp/swdp_ll_pin.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
553
```unknown # menuconfig DP_DRIVER bool "Debug Port interface driver [EXPERIMENTAL]" select EXPERIMENTAL help Enable Debug Port interface driver if DP_DRIVER module = DP_DRIVER module-str = dp drv source "subsys/logging/Kconfig.template.log_config" config DP_DRIVER_INIT_PRIO int "Debug Port driver initializat...
/content/code_sandbox/drivers/dp/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
145
```c /* * */ /* * This file is based on SW_DP.c from CMSIS-DAP Source (Revision: V2.0.0) * path_to_url */ /* Serial Wire Debug Port interface bit-bang driver */ #define DT_DRV_COMPAT zephyr_swdp_gpio #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/swdp.h> #include "swd...
/content/code_sandbox/drivers/dp/swdp_bitbang.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,232
```c /* * */ #define DT_DRV_COMPAT ti_bq24190 #include <errno.h> #include "bq24190.h" #include "zephyr/device.h" #include "zephyr/drivers/charger.h" #include "zephyr/drivers/i2c.h" #include "zephyr/kernel.h" #include "zephyr/sys/util.h" #include "zephyr/logging/log.h" #include <zephyr/drivers/gpio.h> LOG_MODULE_...
/content/code_sandbox/drivers/charger/charger_bq24190.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,963
```unknown config SBS_CHARGER bool "Smart Battery Charger" default y depends on DT_HAS_SBS_SBS_CHARGER_ENABLED select I2C help Enable I2C-based/SMBus-based driver for a Smart Battery Charger. config EMUL_SBS_CHARGER bool "Emulate an SBS 1.1 compliant smart battery charger" default y depends on EMUL depend...
/content/code_sandbox/drivers/charger/Kconfig.sbs_charger
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
122
```unknown config CHARGER_MAX20335 bool "MAX20335 battery charger driver" default y depends on DT_HAS_MAXIM_MAX20335_CHARGER_ENABLED select GPIO select I2C select MFD help Enable the MAX20335 battery charger driver. ```
/content/code_sandbox/drivers/charger/Kconfig.max20335
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
59
```c /* * * * BQ25180 Datasheet: path_to_url */ #define DT_DRV_COMPAT ti_bq25180 #include <zephyr/device.h> #include <zephyr/drivers/charger.h> #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> LOG_MODULE_REGISTER(bq25180, CONFIG_CHARGER_LOG_L...
/content/code_sandbox/drivers/charger/charger_bq25180.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,262
```c /* * */ #include <zephyr/internal/syscall_handler.h> #include <zephyr/drivers/charger.h> static inline int z_vrfy_charger_get_prop(const struct device *dev, const charger_prop_t prop, union charger_propval *val) { union charger_propval k_val; K_OOPS(K_SYSCALL_DRIVER_CHARGER(dev, get_property)); int...
/content/code_sandbox/drivers/charger/charger_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
304
```c /* * * * Emulator for SBS 1.1 compliant smart battery charger. */ #define DT_DRV_COMPAT sbs_sbs_charger #include <zephyr/device.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/i2c_emul.h> #include <zephyr/logging/log.h> #include <zephyr/sys/byteorder.h> #include ...
/content/code_sandbox/drivers/charger/emul_sbs_charger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,099
```objective-c /* * */ #define SBS_CHARGER_REG_SPEC_INFO 0x11 #define SBS_CHARGER_REG_CHARGER_MODE 0x12 #define SBS_CHARGER_REG_STATUS 0x13 #define SBS_CHARGER_REG_ALARM_WARNING 0x16 #define SBS_CHARGER_MODE_INHIBIT_CHARGE BIT(0) #define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(0) #define SBS_CHARGER_ST...
/content/code_sandbox/drivers/charger/sbs_charger.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
155
```unknown # config CHARGER_BQ25180 bool "BQ25180 Battery Charger" default y depends on DT_HAS_TI_BQ25180_ENABLED select I2C help Enable BQ25180 battery charger driver. ```
/content/code_sandbox/drivers/charger/Kconfig.bq25180
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_CHARGER_BQ24190_H_ #define ZEPHYR_DRIVERS_CHARGER_BQ24190_H_ /* Input Source Control */ #define BQ24190_REG_ISC 0x00 #define BQ24190_REG_ISC_EN_HIZ_MASK BIT(7) #define BQ24190_REG_ISC_EN_HIZ_SHIFT 7 #define BQ24190_REG_ISC_VINDPM_MASK GENMASK(6, 3) #defin...
/content/code_sandbox/drivers/charger/bq24190.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,487
```c /* * */ #define DT_DRV_COMPAT maxim_max20335_charger #include <zephyr/device.h> #include <zephyr/drivers/charger.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <zephyr/sys/linear_range.h> #include "zephyr/logging/log.h" LOG_...
/content/code_sandbox/drivers/charger/charger_max20335.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,200
```unknown # menuconfig CHARGER bool "Battery charger drivers" help Enable battery charger driver configuration. if CHARGER module = CHARGER module-str = charger source "subsys/logging/Kconfig.template.log_config" config CHARGER_INIT_PRIORITY int "Battery charger init priority" default 90 help Battery ch...
/content/code_sandbox/drivers/charger/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
280
```unknown config CHARGER_BQ24190 bool "BQ24190 Battery Charger" default y depends on DT_HAS_TI_BQ24190_ENABLED select I2C help Enable I2C-based driver for the TI BQ24190 Battery Charger. ```
/content/code_sandbox/drivers/charger/Kconfig.bq24190
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```unknown menu "Firmware drivers" config ARM_SCMI bool "Support for ARM's SCMI" depends on ARM || ARM64 help Enable support for ARM's System Configuration and Management Interface (SCMI). source "drivers/firmware/scmi/Kconfig" endmenu ```
/content/code_sandbox/drivers/firmware/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```c /* * */ #define DT_DRV_COMPAT sbs_sbs_charger #include <zephyr/drivers/charger.h> #include <zephyr/drivers/i2c.h> #include <zephyr/logging/log.h> #include <zephyr/sys/byteorder.h> #include "sbs_charger.h" struct sbs_charger_config { struct i2c_dt_spec i2c; }; LOG_MODULE_REGISTER(sbs_charger); static int s...
/content/code_sandbox/drivers/charger/sbs_charger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,182
```c /* * */ #include <zephyr/drivers/firmware/scmi/shmem.h> #include <zephyr/drivers/firmware/scmi/protocol.h> #include <zephyr/logging/log.h> #include <string.h> LOG_MODULE_REGISTER(arm_scmi_shmem); #define DT_DRV_COMPAT arm_scmi_shmem #ifndef DEVICE_MMIO_IS_IN_RAM #define device_map(virt, phys, size, flags) *(...
/content/code_sandbox/drivers/firmware/scmi/shmem.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,300
```c /* * */ #include <zephyr/drivers/firmware/scmi/clk.h> #include <string.h> /* TODO: if extended attributes are supported this should be moved * to the header file so that users will have access to it. */ #define SCMI_CLK_CONFIG_EA_MASK GENMASK(23, 16) struct scmi_clock_attributes_reply { int32_t status; ui...
/content/code_sandbox/drivers/firmware/scmi/clk.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
834
```c /* * */ #include <zephyr/drivers/firmware/scmi/protocol.h> #include <zephyr/drivers/firmware/scmi/transport.h> #include <zephyr/logging/log.h> #include <zephyr/device.h> LOG_MODULE_REGISTER(scmi_core); #define SCMI_CHAN_LOCK_TIMEOUT_USEC 500 #define SCMI_CHAN_SEM_TIMEOUT_USEC 500 int scmi_status_to_errno(int...
/content/code_sandbox/drivers/firmware/scmi/core.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,219
```unknown if ARM_SCMI config ARM_SCMI_CLK_HELPERS bool "Helper functions for SCMI clock protocol" default y depends on DT_HAS_ARM_SCMI_CLOCK_ENABLED help Enable support for SCMI clock protocol helper functions. config ARM_SCMI_MAILBOX_TRANSPORT bool "SCMI transport based on shared memory and doorbells" def...
/content/code_sandbox/drivers/firmware/scmi/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
397