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