Add demo external app
PATCH 1/1 Add demo external app
This commit adds the first external app demo. In this case a fan controller based on reading the GPU_TEMP sensor.
It has a hard coded pwm path and instance which can be changed later.
You have to "make install" umr first then you can build this with "make".
Signed-off-by Tom St Denis <[email protected]>
--- demo/vega10_pwm/Makefile | 6 +++ demo/vega10_pwm/main.c | 119 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 demo/vega10_pwm/Makefile create mode 100644 demo/vega10_pwm/main.c
demo/vega10_pwm/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +vega10_pwm: main.o + ${CC} main.o -lumrcore -lpciaccess -o vega10_pwm + +.PHONY: clean +clean: + rm -f main.o vega10_pwm
demo/vega10_pwm/main.c new file +119 -0
119 lines not on this page · raw message
Signature · 6 lines
2.12.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx