2023-05-3
This commit is contained in:
1 parent
633d9b872b
commit
063c3fcc07
74 files changed
+26281
-13954
No files matched your search
@@ -31,7 +31,8 @@
|
||||
#include <stdio.h>
|
||||
#include "main.h"
|
||||
#include <string.h>
|
||||
#include "FreeRTOS.h"
|
||||
#include <rtthread.h>
|
||||
//#include "FreeRTOS.h"
|
||||
|
||||
void sfud_log_info (const char *format, ...);
|
||||
sfud_err qspi_send_then_recv (const void *send_buf, size_t send_length, void *recv_buf, size_t recv_length);
|
||||
@@ -50,14 +51,12 @@ void sfud_log_debug (const char *file, const long line, const char *format, ...)
|
||||
|
||||
static void spi_lock (const sfud_spi *spi)
|
||||
{
|
||||
portENTER_CRITICAL();
|
||||
//__disable_irq();
|
||||
rt_enter_critical();
|
||||
}
|
||||
|
||||
static void spi_unlock (const sfud_spi *spi)
|
||||
{
|
||||
portEXIT_CRITICAL();
|
||||
//__enable_irq();
|
||||
rt_exit_critical();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user