samples: eeprom: add gd32f450i_eval board
Add gd32f450i_eval board with AT2402C eeprom. Signed-off-by: HaiLong Yang <cameledyang@pm.me>
This commit is contained in:
parent
4b386940b8
commit
1d3c710eaf
3 changed files with 13 additions and 1 deletions
|
@ -34,6 +34,15 @@ as follows:
|
||||||
:shield: x_nucleo_eeprma2
|
:shield: x_nucleo_eeprma2
|
||||||
:compact:
|
: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
|
Sample Output
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
3
samples/drivers/eeprom/boards/gd32f450i_eval.conf
Normal file
3
samples/drivers/eeprom/boards/gd32f450i_eval.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
CONFIG_I2C=y
|
||||||
|
CONFIG_EEPROM_AT24=y
|
||||||
|
CONFIG_EEPROM_INIT_PRIORITY=75
|
|
@ -13,7 +13,7 @@ common:
|
||||||
tests:
|
tests:
|
||||||
sample.drivers.eeprom:
|
sample.drivers.eeprom:
|
||||||
tags: eeprom
|
tags: eeprom
|
||||||
platform_allow: native_posix
|
platform_allow: native_posix gd32f450i_eval
|
||||||
sample.drivers.eeprom.shield.x_nucleo_eeprma2:
|
sample.drivers.eeprom.shield.x_nucleo_eeprma2:
|
||||||
tags: eeprom shield
|
tags: eeprom shield
|
||||||
depends_on: arduino_gpio arduino_i2c arduino_spi
|
depends_on: arduino_gpio arduino_i2c arduino_spi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue