FATFS Function Usage Notes

1.FRESULT f_opendir(DIR *dp,const TCHAR *path); Function: Open a directory parameterfunctiondpA pointer to an empty directory object structure that stores directory information about to be openedpathRoute The return value FR_OK(0) indicates that the function was executed successfully and the directory object structure was created for subsequen ...

Posted by carlosx2 on Sat, 18 Sep 2021 20:35:46 -0700

FreeRTOS and RT-Thread for Interrupt and Critical Zone Processing

1. Management of interruptions Freertos manages system interrupts by manipulating BASEPRI registers, and the management priority is defined in the header file FreeRTOSConfig.h #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY    5 Setting the maximum priority that FreeRTOS can manage does not belong to the FreeRTOS pipeline, and interrupt ...

Posted by Warmach on Sat, 18 Sep 2021 19:26:01 -0700

Serial DCB Parameter Meaning--WIN32 API Serial Port

DCB structure must be used when programming serial port with WIN32 API. First, first, the DCB structure typedef struct _DCB { DWORD DCBlength; DWORD BaudRate; DWORD fBinary: 1; DWORD fParity: 1; DWORD fOutxCtsFlow:1; DWORD fOutxDsrFlow:1; ...

Posted by roflpwnt on Wed, 15 Sep 2021 16:24:57 -0700

Linux Bare Machine Development|EPIT Timer

EPIT Timer 1.Introduction to EPIT Timer EPIT (Enhanced Periodic Interrrupt Timer), an enhanced periodic interrupt timer, is primarily used to complete the periodic interrupt timer. EPIT is a 32-bit timer that provides precise timing interrupts when enabled. Its structure is illustrated below Multiplexer to select clock source, there are ...

Posted by dumdumsareyum on Sat, 11 Sep 2021 09:53:23 -0700