refactor: SD card SPI HAL (#3957)
* refactor: SD card SPI driver * Removed SPI and DMA StdPeriph drivers * Allow for disabling SPI DMA support * Disable SPI sdcard CRC support * Fix 2MHz timer on NV14 * Shared VS1053b driver * Fix: SPI2 uses PCLK1 * feat: new generic diskio API * More generic SD_CARD_PRESENT() * Fixes * Flush incoming block on token mismatch * Scratch buffer test * Incredible hack to re-sync sd card * fix: SDIO driver
This commit is contained in:
+9
-6
@@ -22,7 +22,8 @@
|
||||
#ifndef _RTOS_H_
|
||||
#define _RTOS_H_
|
||||
|
||||
#include "definitions.h"
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C++" {
|
||||
@@ -114,15 +115,17 @@ extern "C++" {
|
||||
#endif
|
||||
}
|
||||
|
||||
template<int SIZE>
|
||||
inline void RTOS_CREATE_TASK(pthread_t &taskId, void * (*task)(void *), const char * name, TaskStack<SIZE> &, unsigned size = 0, unsigned priority = 0)
|
||||
template <int SIZE>
|
||||
inline void RTOS_CREATE_TASK(pthread_t &taskId, void *(*task)(void *),
|
||||
const char *name, TaskStack<SIZE> &,
|
||||
unsigned size = 0, unsigned priority = 0)
|
||||
{
|
||||
UNUSED(size);
|
||||
UNUSED(priority);
|
||||
(void)size;
|
||||
(void)priority;
|
||||
RTOS_CREATE_TASK(taskId, task, name);
|
||||
}
|
||||
|
||||
#define TASK_RETURN() return nullptr
|
||||
#define TASK_RETURN() return nullptr
|
||||
|
||||
constexpr uint32_t mainStackAvailable()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user