41 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			41 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
|  | /****************************************************************************
 | ||
|  | 
 | ||
|  | Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED. | ||
|  | 
 | ||
|  | This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT | ||
|  | be copied by any method or incorporated into another program without | ||
|  | the express written consent of Aerospace C.Power. This Information or any portion | ||
|  | thereof remains the property of Aerospace C.Power. The Information contained herein | ||
|  | is believed to be accurate and Aerospace C.Power assumes no responsibility or | ||
|  | liability for its use in any way and conveys no license or title under | ||
|  | any patent or copyright and makes no representation or warranty that this | ||
|  | Information is free from patent or copyright infringement. | ||
|  | 
 | ||
|  | ****************************************************************************/ | ||
|  | 
 | ||
|  | #include "iot_version.h"
 | ||
|  | 
 | ||
|  | /* The major version 5 bits: 0~31*/ | ||
|  | #define SBL_FIRMWARE_VERSION_MAJOR  AP_FIRMWARE_VERSION_MAJOR
 | ||
|  | 
 | ||
|  | /* The minor version 7 bits: 0~127*/ | ||
|  | #define SBL_FIRMWARE_VERSION_MINOR  AP_FIRMWARE_VERSION_MINOR
 | ||
|  | 
 | ||
|  | /* The micro version 4 bits: 0~15*/ | ||
|  | #define SBL_FIRMWARE_VERSION_MICRO  AP_FIRMWARE_VERSION_MICRO
 | ||
|  | 
 | ||
|  | /* The build version 16 bits: 0~65535*/ | ||
|  | #define SBL_FIRMWARE_VERSION_BUILD  AP_FIRMWARE_VERSION_BUILD
 | ||
|  | 
 | ||
|  | /* Numerically encoded version */ | ||
|  | #define SBL_FIRMWARE_VERSION_HEX ((SBL_FIRMWARE_VERSION_MAJOR << 24) |  \
 | ||
|  |                                   (SBL_FIRMWARE_VERSION_MINOR << 16) |  \ | ||
|  |                                   (SBL_FIRMWARE_VERSION_MICRO << 8) |  \ | ||
|  |                                   (SBL_FIRMWARE_VERSION_BUILD )) | ||
|  | 
 | ||
|  | /**
 | ||
|  |  * @brief   sbl_get_firmware_version - get firmware version. | ||
|  |  * @param   NULL | ||
|  |  * @return  firmware version. | ||
|  |  */ | ||
|  | uint32_t sbl_get_firmware_version( void ); |