39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_in.h"
50#include "MikroSDK.PhysicalDrive"
51#include "MikroSDK.FileSystem"
77#define MICROSD_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE
78#define MICROSD_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE
96#define MICROSD_MAP_MIKROBUS( cfg, mikrobus ) \
97 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
98 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
99 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
100 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
101 cfg.cd_pin = MIKROBUS( mikrobus, MIKROBUS_AN );
void microsd_cfg_setup(microsd_cfg_t *cfg)
microSD configuration object setup function.
err_t microsd_init(microsd_t *ctx, microsd_cfg_t *cfg)
microSD initialization function.
uint8_t microsd_get_card_detect(microsd_t *ctx)
microSD get card detect function.
microsd_return_value_t
microSD Click return value data.
Definition microsd.h:141
@ MICROSD_ERROR
Definition microsd.h:143
@ MICROSD_OK
Definition microsd.h:142
microSD Click configuration object.
Definition microsd.h:125
pin_name_t sck
Definition microsd.h:129
pin_name_t mosi
Definition microsd.h:128
pin_name_t miso
Definition microsd.h:127
pin_name_t cd_pin
Definition microsd.h:132
pin_name_t cs
Definition microsd.h:130
microSD Click context object.
Definition microsd.h:111
fatfs_logical_drive_t fat_ldrive
Definition microsd.h:116
digital_in_t cd_pin
Definition microsd.h:112
sdspi_physical_drive_t sd_pdrive
Definition microsd.h:114