text: 
  /**
   * @brief   include files
   */
  /* bsp files */
  
  /* thirdparty files */
  #include "FreeRTOS.h"
  #include "task.h"
  #include "queue.h"
  #include "semphr.h"
  #include "event_groups.h"
  #include "timers.h"
  
  /* user files */
  #include "user_type.h"
  
  
  
  
  
  static TimerHandle_t os_tim_handle_test;
  #define TIMS_TEST_NAME     ("tim_test")
  #define TIMS_TEST_PERIOD   (1000/portTICK_PERIOD_MS)
  static StaticTimer_t os_tim_buf_test;
  
  uint8_t read_id[7] = {0x20, 0x00, 0x22, 0x01, 0x00, 0xdc, 0x03};
  
  void os_tim_callback_test(TimerHandle_t xTimer)
  {
  // extern void drv_rtc_get_time(device_time_format_t* pdtime);
  extern void dma_pwm_test(void);
  extern void eadc0_ch4_test(void);
  extern void lfs_test(void);
  
  extern int drv_uart2_send_data(uint8_t *pdata, uint32_t datalen);
  extern int drv_uart3_send_data(uint8_t *pdata, uint32_t datalen);
  
      // printf("%s\r\n", __FUNCTION__);
      // drv_uart2_send_data(read_id, sizeof(read_id));
      // drv_uart3_send_data(read_id, sizeof(read_id));
      // lfs_test();
      // eadc0_ch4_test();
      // dma_pwm_test();
  }
  
  void drv_tim_create_test(void)
  {
      printf("[OS ] %s\r\n", __FUNCTION__);
  
      os_tim_handle_test = xTimerCreateStatic(TIMS_TEST_NAME, TIMS_TEST_PERIOD, \
                                                     OS_TIM_AUTO_RELOAD_ON, NULL, os_tim_callback_test, &os_tim_buf_test);
      if (NULL == os_tim_handle_test)
      {
          printf("[ERR] %s create fail\r\n", TIMS_TEST_NAME);
      }
  }
  
  void drv_tim_start_test(void)
  {
      BaseType_t retval;
      printf("[OS ] %s\r\n", __FUNCTION__);
  
      if (NULL != os_tim_handle_test)
      {
          retval = xTimerStart(os_tim_handle_test, OS_TIM_OPERATE_OVER_TIME);
          if (pdFAIL == retval)
          {
              printf("[ERR] %s start fail\r\n", TIMS_TEST_NAME);
          }
      }
      else
      {
          printf("[ERR] %s doesn`t exist\r\n", TIMS_TEST_NAME);
      }
  }
  
  
  void test_init(void)
  {
      printf("%s\r\n", __FUNCTION__);
      drv_tim_create_test();
  
      drv_tim_start_test();
  }
  
  