init
This commit is contained in:
12
boards/native_sim.conf
Normal file
12
boards/native_sim.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
# gpio emulation
|
||||
CONFIG_GPIO_EMUL=y
|
||||
CONFIG_EMUL=y
|
||||
|
||||
# network settings
|
||||
CONFIG_ETH_NATIVE_POSIX=y
|
||||
CONFIG_ETH_NATIVE_POSIX_DRV_NAME="eth0"
|
||||
|
||||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="10.43.30.100"
|
||||
CONFIG_MICROROS_AGENT_IP="10.43.30.100"
|
||||
CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.255.0"
|
||||
CONFIG_NET_CONFIG_MY_IPV4_GW="10.43.30.1"
|
||||
97
boards/native_sim.overlay
Normal file
97
boards/native_sim.overlay
Normal file
@@ -0,0 +1,97 @@
|
||||
/ {
|
||||
|
||||
aliases {
|
||||
led0 = &user_led;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,display = &gpio_visualizer_display;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
user_led: user_led_0 {
|
||||
gpios = <&gpioa_emul 0 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED 0";
|
||||
};
|
||||
};
|
||||
|
||||
gpioa_emul: gpioa {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOA";
|
||||
};
|
||||
|
||||
gpiob_emul: gpiob {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOB";
|
||||
};
|
||||
|
||||
gpioc_emul: gpioc {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOC";
|
||||
};
|
||||
|
||||
gpiod_emul: gpiod {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOD";
|
||||
};
|
||||
|
||||
gpioe_emul: gpioe {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOE";
|
||||
};
|
||||
|
||||
gpiof_emul: gpiof {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOF";
|
||||
};
|
||||
|
||||
gpiog_emul: gpiog {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOG";
|
||||
};
|
||||
|
||||
gpioh_emul: gpioh {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOH";
|
||||
};
|
||||
|
||||
gpioi_emul: gpioi {
|
||||
compatible = "zephyr,gpio-emul";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
label = "GPIOI";
|
||||
};
|
||||
|
||||
gpio_visualizer_display: sdl_dc {
|
||||
compatible = "zephyr,sdl-dc";
|
||||
height = <240>;
|
||||
width = <320>;
|
||||
label = "GPIO DISPLAY";
|
||||
};
|
||||
};
|
||||
8
boards/nucleo_h563zi.conf
Normal file
8
boards/nucleo_h563zi.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
# network settings
|
||||
CONFIG_ETH_STM32_HAL=y
|
||||
CONFIG_NET_L2_ETHERNET=y
|
||||
|
||||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="10.42.30.100"
|
||||
CONFIG_MICROROS_AGENT_IP="10.42.30.100"
|
||||
CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.255.0"
|
||||
CONFIG_NET_CONFIG_MY_IPV4_GW="10.42.30.1"
|
||||
13
boards/nucleo_h563zi.overlay
Normal file
13
boards/nucleo_h563zi.overlay
Normal file
@@ -0,0 +1,13 @@
|
||||
/ {
|
||||
aliases {
|
||||
led0 = &user_led;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
user_led: user_led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
label = "USER_LED_0";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user