/* This function displays information using LEDs about the SHA204 devices on the Security Xplained board.  */
void display_status(uint8_t device_present_mask, uint8_t sha204_revision)
/* This function displays information using LEDs about the SHA204 devices on the Security Xplained board.  */
void display_status(uint8_t device_present_mask, uint8_t sha204_revision)
{
	uint8_t i;
	uint8_t shifter = 1;
	for (i = 0; shifter < 0x10; shifter <<= 1)
		if (shifter & device_present_mask)
			i++;
	if (i < SHA204_DEVICE_COUNT) {
		uint8_t i;
		for (i = 0; i < 4; i++) {
			led_display_number(~device_present_mask);
			sha204h_delay_ms(125);
			led_display_number(0);
			sha204h_delay_ms(125);
		}
	}
	else {
		led_display_number((device_present_mask << 4) | sha204_revision);
		sha204h_delay_ms(1000);
		led_display_number(0);
		sha204h_delay_ms(1000);
	}	  
}