Forum Discussion
Altera_Forum
Honored Contributor
12 years agoOr better yet, can someone explain what this code is saying...? This is the C code in the HAL src folder
bool alt_up_sd_card_is_Present(void) // Check if there is an SD Card insterted into the SD Card socket. { bool result = false; if ((device_pointer != NULL) && ((IORD_16DIRECT(aux_status_register,0) & 0x02) != 0)) { result = true; } else if (initialized == true) { int index; initialized = false; search_data.valid = false; is_sd_card_formated_as_FAT16 = false; for(index = 0; index < MAX_FILES_OPENED; index++) { active_files[index].in_use = false; active_files[index].modified = false; } } return result; } Thanks!