#
88736eda |
|
13-Nov-2020 |
Matthias Buhl <matthias.buhl@hensoldt-cyber.de> |
libsdhcdrivers: Apply formatting Adapted source file to fit the formatting rules. Signed-off-by: Matthias Buhl <matthias.buhl@hensoldt-cyber.de>
|
#
fd921c33 |
|
14-Nov-2020 |
Matthias Buhl <matthias.buhl@hensoldt-cyber.de> |
libsdhcdrivers: Unify log messages The driver used a mixture of deprecated logging macros and direct calls to printf(). All this was unified to the ZF_... logging macros. Signed-off-by: Matthias Buhl <matthias.buhl@hensoldt-cyber.de>
|
#
e2201c4b |
|
22-Oct-2020 |
Matthias Buhl <matthias.buhl@hensoldt-cyber.de> |
libsdhcdrivers: Switch clock rate after init To improve the performance of the driver, the clock settings need to be adjusted to an operational setting after the init process has finished. Signed-off-by: Matthias Buhl <matthias.buhl@hensoldt-cyber.de>
|
#
7fa7d7bf |
|
24-Sep-2020 |
Matthias Buhl <matthias.buhl@hensoldt-cyber.com> |
libsdhcdrivers: Actively initialize bus width The default bus width of the card after power up or GO_IDLE (CMD0) is 1 bit. As the HostController is initialzed to 4-bit bus width, the card also needs to switch to 4-bit mode.
|
#
6d22b853 |
|
23-Sep-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Improve card capacity calculation * Integer overflow is now avoided. * Switch case is more readable.
|
#
6025e8df |
|
23-Sep-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Add CSD version macros To improve readability and to avoid future errors CSD version is now abstracted with macros.
|
#
ab5b57a1 |
|
23-Sep-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Change mmc_card_capacity type mmc_card_capacity will now return signed value due to the following reasons: 1. Function returns negative value in case of the failure, so naturally signed type must be used. 2. Signed 64 bit value is enough for holding the theoretical SD card size of 8 EiB (2^63 = 2^3 * 2^60 = 2^3 * 1024 ^ 6) what is more than enough when taking into account that the latest SDUC format maximum size is 128 TiB (2^7 * 1024^4).
|
#
cd3faf65 |
|
01-Oct-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Rename mmc's transfer block size `bs` was not descriptive enough, and `block_size` helps to avoid confusion. Further more variable is marked as const and assigned during the declaration.
|
#
4cbc273f |
|
24-Sep-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Improve read/write arg evaluation Transfer command's argument is now evaluated with a help of ternary operator so that it can be marked as const, and logic is more compact.
|
#
b884abdb |
|
24-Sep-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Improve read and write functions Code was refactor so that it is more bulletproof to memory leak as clean is done only at the exit of the function or in the callback.
|
#
4261066f |
|
20-Aug-2020 |
Matthias Buhl <matthias.buhl@hensoldt-cyber.com> |
libsdhcdrivers: Free allocated memory If no callback is given, command must be destroyed prior to returning from the function.
|
#
a52aa3ec |
|
24-Sep-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Extract write and read commands Write and read commands share the same logic with only the command being the difference thus logic can be extracted.
|
#
8621f37c |
|
18-Aug-2020 |
Matthias Buhl <matthias.buhl@hensoldt-cyber.com> |
libsdhcdrivers: Enable high capacity cards High capacity cards require extra logic to be implement in order to be supported.
|
#
d37e47af |
|
07-Oct-2020 |
Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> |
libsdhcdrivers: Applying formatting Files that are going to be changes in the future commits got formatted.
|
#
8147869d |
|
04-Jun-2017 |
Anna Lyons <Anna.Lyons@data61.csiro.au> |
Fix licenses
|