libota_version.c 460 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2019 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief lib OTA version interface
  9. */
  10. #include <os_common_api.h>
  11. #include <kernel.h>
  12. #define LIBOTA_VERSION_NUMBER 0x01000000
  13. #define LIBOTA_VERSION_STRING "1.0.0"
  14. uint32_t libota_version_dump(void)
  15. {
  16. os_printk("libota: version %s ,release time: %s:%s\n",LIBOTA_VERSION_STRING, __DATE__, __TIME__);
  17. return LIBOTA_VERSION_NUMBER;
  18. }