From 11d7e4b0922fb34b4ec7210bfb39255d27d4f9c2 Mon Sep 17 00:00:00 2001 From: dylan <497357846@qq.com> Date: Wed, 12 Aug 2020 08:20:29 +0800 Subject: [PATCH] dylan1: add study.c study.h --- study/study.c | 10 ++++++++++ study/study.h | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 study/study.c create mode 100644 study/study.h diff --git a/study/study.c b/study/study.c new file mode 100644 index 0000000..6cb7173 --- /dev/null +++ b/study/study.c @@ -0,0 +1,10 @@ +#include "study.h" +uint8_t g_class; +void study_set_class(uint8_t class) +{ + g_class = class; +} +uint8_t study_get_class(void) +{ + return g_class; +} \ No newline at end of file diff --git a/study/study.h b/study/study.h new file mode 100644 index 0000000..ae6d744 --- /dev/null +++ b/study/study.h @@ -0,0 +1,4 @@ +#include "stdio.h" + +void study_set_class(uint8_t class); +uint8_t study_get_class(void); \ No newline at end of file