FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [June 2016 Threads]
Hi.
I'm trying to add FreeRTOS+FAT base on STM32CubeMX generated project.
There is a struct 'SDHandleTypeDef' in 'stm32f4xxhalsd.h' of STM32CubeMX generated project as below.
typedef struct
{
SDTypeDef Instance; /!< SDIO register base address /
SD_InitTypeDef Init; /!< SD required parameters /
HAL_LockTypeDef Lock; /!< SD locking object /
uint32_t CardType; /!< SD card type /
uint32_t RCA; /!< SD relative card address /
uint32_t CSD[4]; /!< SD card specific data table /
uint32_t CID[4]; /!< SD card identification number table /
IO uint32_t SdTransferCplt; /!< SD transfer complete flag in non blocking mode /
IO uint32_t SdTransferErr; /!< SD transfer error flag in non blocking mode /
IO uint32_t DmaTransferCplt; /!< SD DMA transfer complete flag /
IO uint32_t SdOperation; /!< SD transfer operation (read/write) */
DMAHandleTypeDef hdmarx; /!< SD Rx DMA handle parameters /
DMAHandleTypeDef hdmatx; /!< SD Tx DMA handle parameters /
}SD_HandleTypeDef;
But there are two more member variables which are 'SDEventSetupFunctionTypeDef EventSetupFunction', 'SDEventWaitFunctionTypeDef EventWaitFunction' in 'stm32f4xxhalsd.h' of FreeRTOS+FAT as below.
typedef struct xSDHandle
{
...
SDEventSetupFunctionTypeDef EventSetupFunction;
SDEventWaitFunctionTypeDef EventWaitFunction;
}SDHandleTypeDef;
Could you please let me know how those two members will be generated automatically using STM32CubeMX?
Thanks In advance.
Sorry - I don't know. Perhaps there is an option in the STM32CubeMX to
make the driver interrupt driven or event driven that will in turn
result in these members being included in the structure - but that is a
guess.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.