mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
raspberrypi-4b/i2c: Added I2C configuration
Includes a new I2C configuration (and documentation for it) to use the I2C1 bus on the Raspberry Pi 4B. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
ff509c1dca
commit
14b02bd6dc
2 changed files with 68 additions and 0 deletions
|
|
@ -221,6 +221,15 @@ This configuration boots directly into the :doc:`coremark
|
|||
</applications/benchmarks/coremark/index>` benchmark and displays the results of
|
||||
the test over the serial console.
|
||||
|
||||
i2c1
|
||||
----
|
||||
|
||||
This configuration enables the I2C1 bus on GPIO 2 and 3 (the standard I2C bus
|
||||
for the Raspberry Pi 4B). It includes the :doc:`i2ctool
|
||||
</applications/system/i2c/index>` application for playing with the bus. Note
|
||||
that you will want to pass the `-b 1` flag to the tool the first time you use
|
||||
it, as the default bus is 0.
|
||||
|
||||
ostest
|
||||
------
|
||||
|
||||
|
|
|
|||
59
boards/arm64/bcm2711/raspberrypi-4b/configs/i2c1/defconfig
Normal file
59
boards/arm64/bcm2711/raspberrypi-4b/configs/i2c1/defconfig
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
#
|
||||
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||
#
|
||||
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||
# modifications.
|
||||
#
|
||||
# CONFIG_NDEBUG is not set
|
||||
CONFIG_ARCH="arm64"
|
||||
CONFIG_ARCH_ARM64=y
|
||||
CONFIG_ARCH_BOARD="raspberrypi-4b"
|
||||
CONFIG_ARCH_BOARD_RASPBERRYPI_4B=y
|
||||
CONFIG_ARCH_CHIP="bcm2711"
|
||||
CONFIG_ARCH_CHIP_BCM2711=y
|
||||
CONFIG_ARCH_EARLY_PRINT=y
|
||||
CONFIG_ARCH_INTERRUPTSTACK=4096
|
||||
CONFIG_ARCH_IRQPRIO=y
|
||||
CONFIG_BCM2711_I2C1=y
|
||||
CONFIG_BCM2711_I2C=y
|
||||
CONFIG_BCM2711_I2C_DRIVER=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=132954
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEBUG_FULLOPT=y
|
||||
CONFIG_DEBUG_SYMBOLS=y
|
||||
CONFIG_DEFAULT_TASK_STACKSIZE=8192
|
||||
CONFIG_EXAMPLES_HELLO=y
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_FS_PROCFS=y
|
||||
CONFIG_FS_ROMFS=y
|
||||
CONFIG_HAVE_CXX=y
|
||||
CONFIG_HAVE_CXXINITIALIZE=y
|
||||
CONFIG_IDLETHREAD_STACKSIZE=8192
|
||||
CONFIG_INIT_ENTRYPOINT="nsh_main"
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_FILEIOSIZE=512
|
||||
CONFIG_NSH_READLINE=y
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
CONFIG_PTHREAD_STACK_MIN=8192
|
||||
CONFIG_RAMLOG=y
|
||||
CONFIG_RAM_SIZE=4227858432
|
||||
CONFIG_RAM_START=0x00000000
|
||||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_READLINE_CMD_HISTORY=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_SCHED_HPWORK=y
|
||||
CONFIG_SCHED_HPWORKPRIORITY=192
|
||||
CONFIG_SPINLOCK=y
|
||||
CONFIG_STACK_COLORATION=y
|
||||
CONFIG_START_MONTH=11
|
||||
CONFIG_START_YEAR=2022
|
||||
CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||
CONFIG_SYSTEM_I2CTOOL=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_SYSTEM_SYSTEM=y
|
||||
CONFIG_TESTING_GETPRIME=y
|
||||
CONFIG_TESTING_OSTEST=y
|
||||
CONFIG_USEC_PER_TICK=1000
|
||||
CONFIG_USERLED=y
|
||||
Loading…
Add table
Add a link
Reference in a new issue