Simple sd card driver (#162)
* fixed inline functions for modern C standart * more stack for application * added library * init fatfs library * fatfs example application * Merge with current master * fix typo and delete old files * cmsis os 2 reentrance fix * Reworked dependency wait to support multiple dependency * Build FatFS on local target, syscall.c is target-specific. * run local target ok * testcase for fatfs Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
@@ -14,4 +14,6 @@ uint16_t
|
||||
HAL_UART_Transmit(UART_HandleTypeDef* handle, uint8_t* bufer, uint16_t size, uint32_t wait_ms) {
|
||||
uint16_t res = write(1, (const char*)bufer, size);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
void BSP_SD_Init() {}
|
||||
|
@@ -110,6 +110,10 @@ QueueHandle_t xQueueCreateStatic(
|
||||
return (QueueHandle_t)msgid;
|
||||
}
|
||||
|
||||
QueueHandle_t xQueueCreate(UBaseType_t uxQueueLength, UBaseType_t uxItemSize) {
|
||||
return xQueueCreateStatic(uxQueueLength, uxItemSize, 0, NULL);
|
||||
}
|
||||
|
||||
SemaphoreHandle_t xSemaphoreCreateCountingStatic(
|
||||
UBaseType_t uxMaxCount,
|
||||
UBaseType_t uxInitialCount,
|
||||
@@ -225,3 +229,4 @@ void vTaskSetThreadLocalStoragePointer(TaskHandle_t xTaskToSet, BaseType_t xInde
|
||||
|
||||
pthread_setspecific(tls_keys[xIndex], pvValue);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user