benchmarks/latmus: latmon: apply new API interface and Macros
PATCH 1/1 benchmarks/latmus: latmon: apply new API interface and Macros
Some API functions and macros related to dt and gpio are modified or removed so we change accordingly.
Signed-off-by hongzha1 <[email protected]>
benchmarks/zephyr/frdm_k64f-enable-EVL-latency-monitor.patch +40 -25
@@ -1,55 +1,70 @@ -From 09f3918f91f6dfd5bbf20bb04f9518187d79b445 Mon Sep 17 00:00:00 2001 -From: Philippe Gerum <[email protected]> -Date: Sat, 4 Jan 2020 13:22:59 +0100 +From 3d7db55c7a551c0d0c1ab1f49fd63a85907e2a63 Mon Sep 17 00:00:00 2001 +From: hongzha1 <[email protected]> +Date: Mon, 15 Mar 2021 04:22:18 -0400 Subject: [PATCH] frdm_k64f: enable EVL latency monitor -Use GPIO24 for issuing the pulse signal to the device under test, -GPIO25 for receiving the acknowledge. ---- - boards/arm/frdm_k64f/frdm_k64f.dts | 10 ++++++++++ - boards/arm/frdm_k64f/pinmux.c | 3 +++ - 2 files changed, 13 insertions(+) +Signed-off-by: hongzha1 <[email protected]> diff --git a/boards/arm/frdm_k64f/frdm_k64f.dts b/boards/arm/frdm_k64f/frdm_k64f.dts -index 432482db6c..8e67a25dc8 100644 +index f587059e0f..23bc58eb8a 100644 --- a/boards/arm/frdm_k64f/frdm_k64f.dts +++ b/boards/arm/frdm_k64f/frdm_k64f.dts -@@ -37,6 +37,8 @@ +@@ -14,6 +14,8 @@ + led2 = &red_led; + sw0 = &user_button_3; sw1 = &user_button_2; - eth = ð - can-0 = &can0; -+ latmon-pulse = &pulse_gpio; -+ latmon-ack = &ack_gpio; ++ latmonpulse = &pulse_gpio; ++ latmonack = &ack_gpio; }; chosen { -@@ -62,6 +64,10 @@ - gpios = <&gpiob 21 0>; +@@ -40,6 +42,10 @@ + gpios = <&gpiob 21 GPIO_ACTIVE_LOW>; label = "User LD3"; }; + pulse_gpio: latmon_out { -+ gpios = <&gpioe 24 0>; ++ gpios = <&gpioe 24 GPIO_ACTIVE_LOW>; + label = "Latmon pulse"; + }; }; gpio_keys { -@@ -74,6 +80,10 @@ +@@ -52,6 +58,10 @@ label = "User SW3"; - gpios = <&gpioa 4 (GPIO_INT_ACTIVE_LOW | GPIO_PUD_PULL_UP)>; + gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; }; + ack_gpio: latmon_in { -+ gpios = <&gpioe 25 GPIO_INT_ACTIVE_HIGH>; ++ gpios = <&gpioe 25 GPIO_ACTIVE_LOW>; + label = "Latmon ACK"; + }; }; arduino_header: connector { +@@ -81,9 +91,7 @@ + <16 0 &gpiod 0 0>, /* D10 */ + <17 0 &gpiod 2 0>, /* D11 */ + <18 0 &gpiod 3 0>, /* D12 */ +- <19 0 &gpiod 1 0>, /* D13 */ +- <20 0 &gpioe 25 0>, /* D14 */ +- <21 0 &gpioe 24 0>; /* D15 */ ++ <19 0 &gpiod 1 0>; /* D13 */ + }; + }; + +@@ -119,7 +127,7 @@ arduino_serial: &uart3 { + }; + + arduino_i2c: &i2c0 { +- status = "okay"; ++ status = "disabled"; + + fxos8700@1d { + compatible = "nxp,fxos8700"; diff --git a/boards/arm/frdm_k64f/pinmux.c b/boards/arm/frdm_k64f/pinmux.c -index 35f3c9e44c..f1c341fe9e 100644 +index 12576fa0eb..f9314d8cfd 100644 --- a/boards/arm/frdm_k64f/pinmux.c +++ b/boards/arm/frdm_k64f/pinmux.c -@@ -115,6 +115,9 @@ static int frdm_k64f_pinmux_init(struct device *dev) +@@ -120,6 +120,9 @@ static int frdm_k64f_pinmux_init(const struct device *dev) | PORT_PCR_ODE_MASK); pinmux_pin_set(porte, 25, PORT_PCR_MUX(kPORT_MuxAlt5) | PORT_PCR_ODE_MASK);
@@ -58,7 +73,7 @@ index 35f3c9e44c..f1c341fe9e 100644 + pinmux_pin_set(porte, 25, PORT_PCR_MUX(kPORT_MuxAsGpio)); #endif - #if CONFIG_ADC_1 + #if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay) && CONFIG_ADC -- -2.24.1 +2.17.1
benchmarks/zephyr/latmon/src/main.c +52 -26
164 lines not on this page · raw message
Signature · 1 line
2.17.1