var.c 368 B

12345678910111213141516171819202122232425
  1. #include "global.h"
  2. #include "queue.h"
  3. // #define VAR_DEFINE
  4. SqQueue CanQueueImportant; // CANÖØÒªÊý¾Ý¶ÓÁÐ
  5. updata update_info = {0};
  6. updata *var_get_info(void)
  7. {
  8. return &update_info;
  9. }
  10. u8 var_get_result(void)
  11. {
  12. u8 value = 0;
  13. value = var_get_info()->result;
  14. return value;
  15. }
  16. void var_set_result(u8 value)
  17. {
  18. var_get_info()->result = value;
  19. }