Skip to content

Commit

Permalink
projects: adp1050: Add support for adp1051
Browse files Browse the repository at this point in the history
Signed-off-by: ivangilmercano <[email protected]>
  • Loading branch information
ivangilmercano committed Feb 7, 2025
1 parent ebb9e86 commit 0ca4a45
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion projects/adp1050/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ include ../../tools/scripts/examples.mk

include src.mk

include ../../tools/scripts/generic.mk
include ../../tools/scripts/generic.mk
2 changes: 1 addition & 1 deletion projects/adp1050/builds.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"flags" : "EXAMPLE=iio_example TARGET=max32690"
}
}
}
}
2 changes: 1 addition & 1 deletion projects/adp1050/src.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ SRCS += $(NO-OS)/util/no_os_lf256fifo.c \
$(NO-OS)/util/no_os_mutex.c

INCS += $(DRIVERS)/power/adp1050/adp1050.h
SRCS += $(DRIVERS)/power/adp1050/adp1050.c
SRCS += $(DRIVERS)/power/adp1050/adp1050.c
1 change: 1 addition & 0 deletions projects/adp1050/src/common/common_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ struct adp1050_init_param adp1050_ip = {
.flgi_param = NULL,
.syni_param = NULL,
.on_off_config = ADP1050_ON_OFF_DEFAULT_CFG,
.device_id = ID_ADP1051,
};
2 changes: 1 addition & 1 deletion projects/adp1050/src/examples/basic/basic_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ int example_main()
pr_info("Error!\n");
adp1050_remove(adp1050_desc);
return ret;
}
}
3 changes: 3 additions & 0 deletions projects/adp1050/src/examples/iio_example/example.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IIOD=y
INCS += $(DRIVERS)/power/adp1050/iio_adp1050.h
SRCS += $(DRIVERS)/power/adp1050/iio_adp1050.c
2 changes: 1 addition & 1 deletion projects/adp1050/src/examples/iio_example/iio_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ int example_main()
if (ret)
pr_info("Error!\n");
return ret;
}
}
2 changes: 1 addition & 1 deletion projects/adp1050/src/platform/maxim/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ extern int example_main();
int main()
{
return example_main();
}
}
4 changes: 2 additions & 2 deletions projects/adp1050/src/platform/maxim/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@

#define INTC_DEVICE_ID 0

#define UART_DEVICE_ID 0
#define UART_DEVICE_ID 2
#define UART_BAUDRATE 57600
#define UART_OPS &max_uart_ops
#define UART_EXTRA &adp1050_uart_extra

#define GPIO_PG_ALT_PORT 0
#define GPIO_PG_ALT_PIN 24
#define GPIO_PG_ALT_PIN 9
#define GPIO_OPS &max_gpio_ops
#define GPIO_EXTRA &adp1050_pg_alt_extra

Expand Down
2 changes: 1 addition & 1 deletion projects/adp1050/src/platform/maxim/platform_src.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ SRCS += $(PLATFORM_DRIVERS)/maxim_delay.c \
$(PLATFORM_DRIVERS)/../common/maxim_dma.c \
$(PLATFORM_DRIVERS)/maxim_i2c.c \
$(PLATFORM_DRIVERS)/maxim_uart.c \
$(PLATFORM_DRIVERS)/maxim_uart_stdio.c
$(PLATFORM_DRIVERS)/maxim_uart_stdio.c

0 comments on commit 0ca4a45

Please sign in to comment.