wrap getInstance method
This commit is contained in:
parent
c9b75ce062
commit
ecc3fff8a0
215 changed files with 83 additions and 16078 deletions
30
control/examples/wrapper/Makefile
Normal file
30
control/examples/wrapper/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Name: Makefile
|
||||
# Project: B15F (board15 Famulus Edition)
|
||||
# Author: Robert Altner
|
||||
# Creation Date: 2022-12-6
|
||||
|
||||
# Environment
|
||||
COMPILER_PATH = gcc
|
||||
|
||||
# Options
|
||||
CFLAGS = -std=c11 -O3 -Wall -Wextra
|
||||
LDFLAGS = -lb15fwrp -lb15fdrv -lstdc++
|
||||
OBJECTS = main.o
|
||||
OUT = main.elf
|
||||
|
||||
COMPILE = $(COMPILER_PATH) $(CFLAGS)
|
||||
|
||||
main: $(OBJECTS)
|
||||
$(COMPILE) $(OBJECTS) -o $(OUT) $(LDFLAGS)
|
||||
|
||||
help:
|
||||
@echo "This Makefile has the following targets:"
|
||||
@echo "make main .... to compile"
|
||||
@echo "make clean ... to delete objects and executables"
|
||||
|
||||
clean:
|
||||
@echo "Cleaning..."
|
||||
rm -f $(OBJECTS) $(OUT) *.bin gnuplotscript.gp
|
||||
|
||||
.cpp.o:
|
||||
$(COMPILE) -c $< -o $@
|
7
control/examples/wrapper/main.c
Normal file
7
control/examples/wrapper/main.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include "b15f/wrapper/b15f.h"
|
||||
|
||||
int main() {
|
||||
b15f_t* instance = get_instance();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue