Skip to content

Commit

Permalink
ports/zephyr: Switch back to enabling I2C in board-specific configs.
Browse files Browse the repository at this point in the history
I2C can't be enabled in prj_base.conf, because it's board-specific feature.
For example, if a board doesn't have I2C, while CONFIG_I2C, the build will
fail (on Zephyr build system side). For example, this broke the build for
qemu_cortex_m3.

Change-Id: I730dc27bfaa61f1070a9aed24204de2fdaa62241
  • Loading branch information
pfalcon committed Apr 15, 2019
1 parent afce86c commit d67df0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ports/zephyr/prj_base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ CONFIG_NEWLIB_LIBC=y
CONFIG_FLOAT=y
CONFIG_MAIN_STACK_SIZE=4736

# Drivers
CONFIG_I2C=y

# Enable sensor subsystem (doesn't add code if not used).
# Specific sensors should be enabled per-board.
CONFIG_SENSOR=y
Expand Down
3 changes: 3 additions & 0 deletions ports/zephyr/prj_frdm_k64f.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Networking drivers
CONFIG_NET_L2_ETHERNET=y

# Hardware features
CONFIG_I2C=y

# Sensor drivers
CONFIG_FXOS8700=y
CONFIG_FXOS8700_MODE_HYBRID=y
Expand Down
3 changes: 3 additions & 0 deletions ports/zephyr/prj_frdm_kw41z.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Hardware features
CONFIG_I2C=y

# Sensor drivers
CONFIG_FXOS8700=y
CONFIG_FXOS8700_MODE_HYBRID=y
Expand Down

0 comments on commit d67df0f

Please sign in to comment.