Skip to content

Commit

Permalink
Adding get_type method to NuSDBlockDevice to fulfill ARMmbed/mbed-os#…
Browse files Browse the repository at this point in the history
…9135 PR requirement
  • Loading branch information
Yossi Levy authored and Yossi Levy committed Jan 29, 2019
1 parent 89ab012 commit f99570e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NuSDBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,4 +663,9 @@ static bool sd_dma_buff_compat(const void *buff, size_t buff_size, size_t size_a
#endif
}

const char *NuSDBlockDevice::get_type() const
{
return "NUSD";
}

#endif /* TARGET_NUVOTON */
6 changes: 6 additions & 0 deletions NuSDBlockDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ class NuSDBlockDevice : public BlockDevice {
* @param State of debugging
*/
virtual void debug(bool dbg);

/** Get the BlockDevice class type.
*
* @return A string representation of the BlockDevice class type.
*/
virtual const char *get_type() const;

private:
int _init_sdh();
Expand Down

0 comments on commit f99570e

Please sign in to comment.