diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c995c4..9bb473b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,18 @@ jobs: uses: actions/checkout@v4 - name: Work around CVE-2022-24765 run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - - name: Compile blink app + - name: Validate changes on SAM D11 run: make - working-directory: 'examples/blink' + working-directory: 'tests/blink_samd11' + - name: Validate changes on SAM D21 + run: make + working-directory: 'tests/blink_samd21' + - name: Validate changes on SAM D51 + run: make + working-directory: 'tests/blink_samd51' + - name: Validate changes on SAM L21 + run: make + working-directory: 'tests/blink_saml21' + - name: Validate changes on SAM L22 + run: make + working-directory: 'tests/blink_saml22' diff --git a/tests/blink_samd11/Makefile b/tests/blink_samd11/Makefile new file mode 100644 index 0000000..35edba6 --- /dev/null +++ b/tests/blink_samd11/Makefile @@ -0,0 +1,15 @@ +# Keep this first line. +GOSSAMER_PATH = ../.. + +# If your firmware targets a specific board, specify it here, +# or omit it and provide it on the command line (make BOARD=foo). +BOARD=feather_d11_soic + +# Leave this line here. +include $(GOSSAMER_PATH)/make.mk + +SRCS += \ + ./app.c \ + +# Finally, leave this line at the bottom of the file. +include $(GOSSAMER_PATH)/rules.mk diff --git a/tests/blink_samd11/app.c b/tests/blink_samd11/app.c new file mode 100644 index 0000000..fd899c5 --- /dev/null +++ b/tests/blink_samd11/app.c @@ -0,0 +1,15 @@ +#include "app.h" +#include "delay.h" + +void app_init(void) { +} + +void app_setup(void) { + HAL_GPIO_LED_out(); +} + +bool app_loop(void) { + HAL_GPIO_LED_toggle(); + delay_ms(500); + return false; +} diff --git a/tests/blink_samd21/Makefile b/tests/blink_samd21/Makefile new file mode 100644 index 0000000..77e5044 --- /dev/null +++ b/tests/blink_samd21/Makefile @@ -0,0 +1,15 @@ +# Keep this first line. +GOSSAMER_PATH = ../.. + +# If your firmware targets a specific board, specify it here, +# or omit it and provide it on the command line (make BOARD=foo). +BOARD=feather_m0 + +# Leave this line here. +include $(GOSSAMER_PATH)/make.mk + +SRCS += \ + ./app.c \ + +# Finally, leave this line at the bottom of the file. +include $(GOSSAMER_PATH)/rules.mk diff --git a/tests/blink_samd21/app.c b/tests/blink_samd21/app.c new file mode 100644 index 0000000..fd899c5 --- /dev/null +++ b/tests/blink_samd21/app.c @@ -0,0 +1,15 @@ +#include "app.h" +#include "delay.h" + +void app_init(void) { +} + +void app_setup(void) { + HAL_GPIO_LED_out(); +} + +bool app_loop(void) { + HAL_GPIO_LED_toggle(); + delay_ms(500); + return false; +} diff --git a/tests/blink_samd51/Makefile b/tests/blink_samd51/Makefile new file mode 100644 index 0000000..d6022ce --- /dev/null +++ b/tests/blink_samd51/Makefile @@ -0,0 +1,15 @@ +# Keep this first line. +GOSSAMER_PATH = ../.. + +# If your firmware targets a specific board, specify it here, +# or omit it and provide it on the command line (make BOARD=foo). +BOARD=pybadge_m4 + +# Leave this line here. +include $(GOSSAMER_PATH)/make.mk + +SRCS += \ + ./app.c \ + +# Finally, leave this line at the bottom of the file. +include $(GOSSAMER_PATH)/rules.mk diff --git a/tests/blink_samd51/app.c b/tests/blink_samd51/app.c new file mode 100644 index 0000000..fd899c5 --- /dev/null +++ b/tests/blink_samd51/app.c @@ -0,0 +1,15 @@ +#include "app.h" +#include "delay.h" + +void app_init(void) { +} + +void app_setup(void) { + HAL_GPIO_LED_out(); +} + +bool app_loop(void) { + HAL_GPIO_LED_toggle(); + delay_ms(500); + return false; +} diff --git a/tests/blink_saml21/Makefile b/tests/blink_saml21/Makefile new file mode 100644 index 0000000..86a7f75 --- /dev/null +++ b/tests/blink_saml21/Makefile @@ -0,0 +1,15 @@ +# Keep this first line. +GOSSAMER_PATH = ../.. + +# If your firmware targets a specific board, specify it here, +# or omit it and provide it on the command line (make BOARD=foo). +BOARD=feather_low_energy + +# Leave this line here. +include $(GOSSAMER_PATH)/make.mk + +SRCS += \ + ./app.c \ + +# Finally, leave this line at the bottom of the file. +include $(GOSSAMER_PATH)/rules.mk diff --git a/tests/blink_saml21/app.c b/tests/blink_saml21/app.c new file mode 100644 index 0000000..fd899c5 --- /dev/null +++ b/tests/blink_saml21/app.c @@ -0,0 +1,15 @@ +#include "app.h" +#include "delay.h" + +void app_init(void) { +} + +void app_setup(void) { + HAL_GPIO_LED_out(); +} + +bool app_loop(void) { + HAL_GPIO_LED_toggle(); + delay_ms(500); + return false; +} diff --git a/tests/blink_saml22/Makefile b/tests/blink_saml22/Makefile new file mode 100644 index 0000000..4e4c007 --- /dev/null +++ b/tests/blink_saml22/Makefile @@ -0,0 +1,15 @@ +# Keep this first line. +GOSSAMER_PATH = ../.. + +# If your firmware targets a specific board, specify it here, +# or omit it and provide it on the command line (make BOARD=foo). +BOARD=sensorwatch_red + +# Leave this line here. +include $(GOSSAMER_PATH)/make.mk + +SRCS += \ + ./app.c \ + +# Finally, leave this line at the bottom of the file. +include $(GOSSAMER_PATH)/rules.mk diff --git a/tests/blink_saml22/app.c b/tests/blink_saml22/app.c new file mode 100644 index 0000000..fd899c5 --- /dev/null +++ b/tests/blink_saml22/app.c @@ -0,0 +1,15 @@ +#include "app.h" +#include "delay.h" + +void app_init(void) { +} + +void app_setup(void) { + HAL_GPIO_LED_out(); +} + +bool app_loop(void) { + HAL_GPIO_LED_toggle(); + delay_ms(500); + return false; +}