mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
e7702bb0e2
- FAT changed to support the new opendir/readdir/closedir mechanism, and to use lseek directly instead of ioctl (also fixed a bug in FAT's lseek that always returned 0 instead of file position). - ET-STM32 console moved to UART2@19200bps (to allow RFS to run on UART0). If UART0 is needee for console, remember to disable RFS. - freed 700+ bytes of RAM by changing the devman implementation to keep pointers instead of actual DM_DEVICE structures - other minor code changes and fixes
25 lines
545 B
C
25 lines
545 B
C
// Type definitions for the remote file system
|
|
|
|
#ifndef __TYPE_H__
|
|
#define __TYPE_H__
|
|
|
|
typedef char s8;
|
|
typedef unsigned char u8;
|
|
typedef short s16;
|
|
typedef unsigned short u16;
|
|
typedef long s32;
|
|
typedef unsigned long u32;
|
|
typedef long long s64;
|
|
typedef unsigned long long u64;
|
|
|
|
// Define serial port "handle" type for each platform
|
|
// [TODO] for now, only UNIX is supported
|
|
#ifdef WIN32_BUILD
|
|
#include <windows.h>
|
|
typedef HANDLE ser_handler;
|
|
#else // assume POSIX here
|
|
typedef int ser_handler;
|
|
#endif
|
|
|
|
#endif
|