Conversation
amiclaus
left a comment
There was a problem hiding this comment.
some comments on my side.
| * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| *******************************************************************************/ | ||
| #ifndef COMMON_DATA_H_ |
There was a problem hiding this comment.
double-underscore guards with a trailing comment:
#ifndef __COMMON_DATA_H__
#define __COMMON_DATA_H__
...
#endif /* __COMMON_DATA_H__ */
| @@ -0,0 +1,13 @@ | |||
| INCS += $(PLATFORM_DRIVERS)/maxim_gpio.h \ | |||
There was a problem hiding this comment.
same here: NO_OS_INC_DIRS
|
|
||
| pr_info("Running continuous test...\r\n\r\n"); | ||
|
|
||
| while (1) { |
There was a problem hiding this comment.
you need to have error paths in the while loop such that the cleanup procedure is reached.
d162a4e to
0d2adec
Compare
|
Please add changelogs or how the comments were addressed after a push. |
raezt
left a comment
There was a problem hiding this comment.
some comments from my side.
| * @brief Basic example source file for eval-adg1736 project. | ||
| * @author Alexandru Vasile Popa (Alexandruvasile.Popa@analog.com) | ||
| ******************************************************************************** | ||
| * Copyright 2025(c) Analog Devices, Inc. |
There was a problem hiding this comment.
the year is 2026 (applies to all files)
| #include "no_os_gpio.h" | ||
| #include "adg1736.h" | ||
|
|
||
| /* |
There was a problem hiding this comment.
maybe move this to the documentation file?
| err_uart: | ||
| no_os_uart_remove(uart); | ||
| return ret; | ||
| } |
There was a problem hiding this comment.
new line at the EOF (applies to all files)
| extern struct max_gpio_init_param adg1736_gpio_extra; | ||
|
|
||
| /* | ||
| * ADG1736 test configuration |
0d2adec to
a1ec87f
Compare
|
changelog v1:
changelog v2:
|
a1ec87f to
2643c53
Compare
|
changelog v3:
|
| ret = no_os_gpio_get(&led_green, &led_green_ip); | ||
| if (ret) | ||
| goto err_uart; | ||
| no_os_gpio_direction_output(led_green, NO_OS_GPIO_HIGH); |
| ret = no_os_gpio_get(&led_red, &led_red_ip); | ||
| if (ret) | ||
| goto err_led_green; | ||
| no_os_gpio_direction_output(led_red, NO_OS_GPIO_HIGH); |
| .extra = GPIO_EXTRA, | ||
| }, | ||
| .gpio_in2 = { | ||
| .port = GPIO_IN_PORT, |
There was a problem hiding this comment.
hmm, same port+pin for both gpios?
|
|
||
| while (1) { | ||
| /* Test 1: Set to target position, S should see D (HIGH) */ | ||
| ret = adg1736_set_switch_state(dev, ADG1736_SW1, target_state); |
There was a problem hiding this comment.
the readme states that the example can be used for SW2 too.
2643c53 to
c94f35b
Compare
|
changelog v4:
changelog v5:
|
c94f35b to
fe9a513
Compare
|
changelog v6: |
amiclaus
left a comment
There was a problem hiding this comment.
one comment on my side, otherwise lgtm.
| #define GPIO_IN1_PORT 1 | ||
| #define GPIO_IN1_PIN 6 | ||
| #define GPIO_IN2_PORT 1 | ||
| #define GPIO_IN2_PIN 6 |
There was a problem hiding this comment.
hmm i think we should use 2 separate hardware pins for in1 and in2
fe9a513 to
0f5f8ad
Compare
|
changelog v7:
|
amiclaus
left a comment
There was a problem hiding this comment.
one comment, otherwise everything is good.
| .extra = UART_EXTRA, | ||
| }; | ||
|
|
||
| struct no_os_gpio_init_param gpio_en_ip = { |
There was a problem hiding this comment.
since nothing else outside of this file is referencing this, make it static
Add no-OS project for the EVAL-ADG1736 evaluation board with MAX32655FTHR platform support. The project tests the ADG1736 dual SPDT analog switch routing using GPIO signals. Signed-off-by: Alexandru Vasile Popa <Alexandruvasile.Popa@analog.com>
Add README with hardware setup instructions, jumper configuration, wiring connections, and build commands for the EVAL-ADG1736 project. Signed-off-by: Alexandru Vasile Popa <Alexandruvasile.Popa@analog.com>
0f5f8ad to
39058e8
Compare
|
changelog v8:
|
|
The CI error seems unrelated |
Pull Request Description
Add no-OS project for the EVAL-ADG1736 analog switch evaluation board on MAX32655 platform. Tests switch routing by toggling A/B positions and verifying signal output.
PR Type
PR Checklist