From 1d3c710eaf5cfb81dfda63354771b03ebe482a68 Mon Sep 17 00:00:00 2001 From: HaiLong Yang Date: Fri, 7 Jan 2022 15:56:17 +0800 Subject: [PATCH] samples: eeprom: add gd32f450i_eval board Add gd32f450i_eval board with AT2402C eeprom. Signed-off-by: HaiLong Yang --- samples/drivers/eeprom/README.rst | 9 +++++++++ samples/drivers/eeprom/boards/gd32f450i_eval.conf | 3 +++ samples/drivers/eeprom/sample.yaml | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 samples/drivers/eeprom/boards/gd32f450i_eval.conf diff --git a/samples/drivers/eeprom/README.rst b/samples/drivers/eeprom/README.rst index 10d74c47c94..0adfa13c503 100644 --- a/samples/drivers/eeprom/README.rst +++ b/samples/drivers/eeprom/README.rst @@ -34,6 +34,15 @@ as follows: :shield: x_nucleo_eeprma2 :compact: +For :ref:`gd32f450i_eval` board. First bridge the JP5 to USART with the jumper cap, +Then the sample can be built and executed for the as follows: + +.. zephyr-app-commands:: + :zephyr-app: samples/drivers/eeprom + :board: gd32f450i_eval + :goals: build flash + :compact: + Sample Output ============= diff --git a/samples/drivers/eeprom/boards/gd32f450i_eval.conf b/samples/drivers/eeprom/boards/gd32f450i_eval.conf new file mode 100644 index 00000000000..f6a16047dec --- /dev/null +++ b/samples/drivers/eeprom/boards/gd32f450i_eval.conf @@ -0,0 +1,3 @@ +CONFIG_I2C=y +CONFIG_EEPROM_AT24=y +CONFIG_EEPROM_INIT_PRIORITY=75 diff --git a/samples/drivers/eeprom/sample.yaml b/samples/drivers/eeprom/sample.yaml index b744a59e0ce..304e7b1c10a 100644 --- a/samples/drivers/eeprom/sample.yaml +++ b/samples/drivers/eeprom/sample.yaml @@ -13,7 +13,7 @@ common: tests: sample.drivers.eeprom: tags: eeprom - platform_allow: native_posix + platform_allow: native_posix gd32f450i_eval sample.drivers.eeprom.shield.x_nucleo_eeprma2: tags: eeprom shield depends_on: arduino_gpio arduino_i2c arduino_spi