From e69a1e39ab0f98d0af9a20096f6b7e6206320423 Mon Sep 17 00:00:00 2001 From: dylan2 <497357846@qq.com> Date: Wed, 12 Aug 2020 08:29:23 +0800 Subject: [PATCH] dylan2: add classroom.c classroom.h --- age.c | 11 ----------- classroom/classroom.c | 6 ++++++ classroom/classroom.h | 6 ++++++ fun.c | 1 - 4 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 age.c create mode 100644 classroom/classroom.c create mode 100644 classroom/classroom.h delete mode 100644 fun.c diff --git a/age.c b/age.c deleted file mode 100644 index 3100b82..0000000 --- a/age.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "age.h" - -void setAge(uint8_t age) -{ - g_age = age; -} -uint8_t getAge(void) -{ - g_age = g_age+1; - return g_age+2; -} \ No newline at end of file diff --git a/classroom/classroom.c b/classroom/classroom.c new file mode 100644 index 0000000..0b42044 --- /dev/null +++ b/classroom/classroom.c @@ -0,0 +1,6 @@ +#include "classroom.h" +uint16_t remain_classroom; +void cs_check_remain_classroom(void) +{ + return remain_classroom; +} \ No newline at end of file diff --git a/classroom/classroom.h b/classroom/classroom.h new file mode 100644 index 0000000..77a473e --- /dev/null +++ b/classroom/classroom.h @@ -0,0 +1,6 @@ +#ifndef CLASSROOM_H +#define CLASSROOM_H + +void cs_check_remain_classroom(void); +void cs_book_classroom(uint16_t classroom); +#endif \ No newline at end of file diff --git a/fun.c b/fun.c deleted file mode 100644 index aa7a2f0..0000000 --- a/fun.c +++ /dev/null @@ -1 +0,0 @@ -#include "fun.h" \ No newline at end of file