Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate some projects to new example infrastructure #2420

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions projects/ad5460/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Select the example you want to enable by choosing y for enabling and n for disabling
BASIC_EXAMPLE = y
CHANNEL_OUTPUT_EXAMPLE = n
VOLTAGE_OUTPUT_EXAMPLE = n
CURRENT_OUTPUT_EXAMPLE = n
EXAMPLE := basic

# Select the device you want to enable by choosing y for enabling and n for disabling
include ../../tools/scripts/generic_variables.mk

include ../../tools/scripts/examples.mk

include src.mk

include ../../tools/scripts/generic.mk
8 changes: 4 additions & 4 deletions projects/ad5460/builds.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"mbed": {
"basic_example": {
"flags" : "RELEASE=y BASIC_EXAMPLE=y"
"flags" : "RELEASE=y EXAMPLE=basic"
},
"channel_output_example": {
"flags" : "RELEASE=y BASIC_EXAMPLE=n CHANNEL_OUTPUT_EXAMPLE=y"
"flags" : "RELEASE=y EXAMPLE=channel_output_example"
},
"voltage_output_example": {
"flags" : "RELEASE=y BASIC_EXAMPLE=n VOLTAGE_OUTPUT_EXAMPLE=y"
"flags" : "RELEASE=y EXAMPLE=voltage_output_example"
},
"current_output_example": {
"flags" : "RELEASE=y BASIC_EXAMPLE=n CURRENT_OUTPUT_EXAMPLE=y"
"flags" : "RELEASE=y EXAMPLE=current_output_example"
}
}
}
13 changes: 0 additions & 13 deletions projects/ad5460/src.mk
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
include $(PROJECT)/src/platform/$(PLATFORM)/platform_src.mk
include $(PROJECT)/src/examples/examples_src.mk

SRCS += $(PROJECT)/src/platform/$(PLATFORM)/main.c

INCS += $(PROJECT)/src/common/common_data.h
SRCS += $(PROJECT)/src/common/common_data.c

INCS += $(PROJECT)/src/platform/platform_includes.h

INCS += $(PROJECT)/src/platform/$(PLATFORM)/parameters.h
SRCS += $(PROJECT)/src/platform/$(PLATFORM)/parameters.c

INCS += $(INCLUDE)/no_os_delay.h \
$(INCLUDE)/no_os_error.h \
$(INCLUDE)/no_os_gpio.h \
Expand Down
2 changes: 1 addition & 1 deletion projects/ad5460/src/common/common_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include "platform_includes.h"
#include "parameters.h"
#include "ad5460.h"

/******************************************************************************/
Expand Down
3 changes: 1 addition & 2 deletions projects/ad5460/src/examples/basic/basic_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include "basic_example.h"
#include "common_data.h"
#include "ad5460.h"
#include "no_os_delay.h"
Expand All @@ -50,7 +49,7 @@
* @return ret - Result of the example execution. If working correctly, will
* execute continuously the while(1) loop and will not return.
*******************************************************************************/
int basic_example_main()
int example_main()
{
struct ad5460_desc *ad5460_desc;
int ret;
Expand Down
45 changes: 0 additions & 45 deletions projects/ad5460/src/examples/basic/basic_example.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include "channel_output_example.h"
#include "common_data.h"
#include "ad5460.h"
#include "no_os_delay.h"
Expand All @@ -51,7 +50,7 @@
* @return ret - Result of the example execution. If working correctly, will
* execute continuously the while(1) loop and will not return.
*******************************************************************************/
int channel_output_example_main()
int example_main()
{
struct ad5460_desc *ad5460_desc;
union ad5460_live_status *live_status;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include "current_output_example.h"
#include "common_data.h"
#include "ad5460.h"
#include "no_os_delay.h"
Expand All @@ -51,7 +50,7 @@
* @return ret - Result of the example execution. If working correctly, will
* execute continuously the while(1) loop and will not return.
*******************************************************************************/
int current_output_example_main()
int example_main()
{
struct ad5460_desc *ad5460_desc;
int ret;
Expand Down

This file was deleted.

26 changes: 0 additions & 26 deletions projects/ad5460/src/examples/examples_src.mk

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include "voltage_output_example.h"
#include "common_data.h"
#include "ad5460.h"
#include "no_os_delay.h"
Expand All @@ -51,7 +50,7 @@
* @return ret - Result of the example execution. If working correctly, will
* execute continuously the while(1) loop and will not return.
*******************************************************************************/
int voltage_output_example_main()
int example_main()
{
struct ad5460_desc *ad5460_desc;
int ret;
Expand Down

This file was deleted.

Loading
Loading