...
} else {
error = cyg_io_get_config(cf_handle,0,&cf_info,&len); //
//printf("cf get_config error: %i %i\n",error,-EINVAL); // should get -EINVAL???
uint32_t block_size = cf_info.block_size;
uint32_t blocks_num = cf_info.blocks_num;
uint32_t phys_block_size = cf_info.phys_block_size;
bool is_connected = cf_info.connected;
...
But as mentioned in the code, it's returning crazy numbers in the 33MB range no matter what size CF card I install (I've tried 32MB and 128MB :-(
Is there any other official API to read the size of it or any other IDE devices?