From e392dd5c4194543ab637bff72754a2669d3aac43 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 11 Jan 2019 22:50:05 +0000 Subject: Demonstrate assembly source files --- my-project/Makefile | 1 + my-project/my-project.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'my-project') diff --git a/my-project/Makefile b/my-project/Makefile index 2d009c3..5b6afde 100644 --- a/my-project/Makefile +++ b/my-project/Makefile @@ -4,6 +4,7 @@ BUILD_DIR = bin SHARED_DIR = ../my-common-code CFILES = my-project.c CFILES += api.c +AFILES += api-asm.S # TODO - you will need to edit these two lines! DEVICE=stm32f407vgt6 diff --git a/my-project/my-project.c b/my-project/my-project.c index f550c66..7f5bc79 100644 --- a/my-project/my-project.c +++ b/my-project/my-project.c @@ -1,6 +1,9 @@ #include "api.h" +#include "api-asm.h" int main(void) { /* add your own code */ - return my_func(3); + uint32_t rev = 0xaabbccdd; + rev = rev_bytes(rev); + return my_func(rev); } -- cgit v1.2.3-70-g09d2