1 /* 2 * Copyright 2024 Microchip Technology Inc. and its subsidiaries. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #include "mec_version.h" 7 8 #define MSTR_HELPER(x) #x 9 #define MSTR(x) MSTR_HELPER(x) 10 11 #define HAL_NAME "MEC5_HAL" 12 13 const char mec5_hal_ver[] __attribute__((aligned(4))) = 14 HAL_NAME " v" MSTR(MEC5_VER_MAJOR) "." MSTR(MEC5_VER_MINOR) "." MSTR(MEC5_VER_REVISION) " " __DATE__ __TIME__; 15 mec5_hal_version_size(void)16size_t mec5_hal_version_size(void) 17 { 18 return sizeof(mec5_hal_ver); 19 } 20 mec5_hal_version_string(void)21char const* mec5_hal_version_string(void) 22 { 23 return mec5_hal_ver; 24 } 25 26 /* end mec_version.c */ 27