Add v1.3.1 to supported hardware revisions
This commit is contained in:
		@@ -64,6 +64,9 @@ enum hw_revision get_pcb_hardware_version(void)
 | 
			
		||||
	case 1U:
 | 
			
		||||
		revision = HW_REV_V1_3;
 | 
			
		||||
		break;
 | 
			
		||||
	case 2U:
 | 
			
		||||
		revision = HW_REV_V1_3_1;
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		revision = HW_REV_ERROR;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -57,6 +57,7 @@ enum hw_revision {
 | 
			
		||||
	HW_REV_ERROR = 1,	/**< @brief The hardware revision could not be detected due to an internal error */
 | 
			
		||||
	HW_REV_V1_2 = 120,	/**< @brief Hardware Revision v1.2 */
 | 
			
		||||
	HW_REV_V1_3 = 130,	/**< @brief Hardware Revision v1.3 */
 | 
			
		||||
	HW_REV_V1_3_1 = 131,	/**< @brief Hardware revision v1.3.1 */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -70,6 +71,7 @@ enum hw_revision {
 | 
			
		||||
 * The function returns the HW revision as an enum hw_revision.
 | 
			
		||||
 * For v1.2 the return value is 120 (HW_REV_V1_2).
 | 
			
		||||
 * For v1.3 the return value is 130 (HW_REV_V1_3).
 | 
			
		||||
 * For v1.3.1 the return value is 131 (HW_REV_V1_3_1).
 | 
			
		||||
 *
 | 
			
		||||
 * Other return values are not defined yet.
 | 
			
		||||
 *
 | 
			
		||||
 
 | 
			
		||||
@@ -87,6 +87,9 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t   handle,
 | 
			
		||||
	case HW_REV_V1_3:
 | 
			
		||||
		hw_rev_str = "Hardware: v1.3";
 | 
			
		||||
		break;
 | 
			
		||||
	case HW_REV_V1_3_1:
 | 
			
		||||
		hw_rev_str = "Hardware: v1.3.1";
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		hw_rev_str = "Hardware: Unknown Revision. You might have to update the firmware!";
 | 
			
		||||
		break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user