mirror of
https://github.com/marqs85/ossc
synced 2026-11-05 22:50:00 +03:00
Timer and SPI added.
This commit is contained in:
1 parent
9f086828ac
commit
71d60144e8
21 files changed
+3245
-959
No files matched your search
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* File: integer.h
|
||||
* Author: Nelson Lombardo
|
||||
* Year: 2015
|
||||
* e-mail: nelson.lombardo@gmail.com
|
||||
* License at the end of file.
|
||||
*/
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Integer type definitions */
|
||||
/*****************************************************************************/
|
||||
#ifndef _INTEGER_H_
|
||||
#define _INTEGER_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* 16-bit, 32-bit or larger integer */
|
||||
typedef int16_t INT;
|
||||
typedef uint16_t UINT;
|
||||
|
||||
/* 8-bit integer */
|
||||
typedef int8_t CHAR;
|
||||
typedef uint8_t UCHAR;
|
||||
typedef uint8_t BYTE;
|
||||
typedef uint8_t BOOL;
|
||||
|
||||
/* 16-bit integer */
|
||||
typedef int16_t SHORT;
|
||||
typedef uint16_t USHORT;
|
||||
typedef uint16_t WORD;
|
||||
typedef uint16_t WCHAR;
|
||||
|
||||
/* 32-bit integer */
|
||||
typedef int32_t LONG;
|
||||
typedef uint32_t ULONG;
|
||||
typedef uint32_t DWORD;
|
||||
|
||||
/* Boolean type */
|
||||
typedef enum { FALSE = 0, TRUE } BOOLEAN;
|
||||
typedef enum { LOW = 0, HIGH } THROTTLE;
|
||||
|
||||
#endif
|
||||
|
||||
// «integer.h» is part of:
|
||||
/*----------------------------------------------------------------------------/
|
||||
/ ulibSD - Library for SD cards semantics (C)Nelson Lombardo, 2015
|
||||
/-----------------------------------------------------------------------------/
|
||||
/ ulibSD library is a free software that opened under license policy of
|
||||
/ following conditions.
|
||||
/
|
||||
/ Copyright (C) 2015, ChaN, all right reserved.
|
||||
/
|
||||
/ 1. Redistributions of source code must retain the above copyright notice,
|
||||
/ this condition and the following disclaimer.
|
||||
/
|
||||
/ This software is provided by the copyright holder and contributors "AS IS"
|
||||
/ and any warranties related to this software are DISCLAIMED.
|
||||
/ The copyright owner or contributors be NOT LIABLE for any damages caused
|
||||
/ by use of this software.
|
||||
/----------------------------------------------------------------------------*/
|
||||
|
||||
// Derived from Mister Chan works on FatFs code (http://elm-chan.org/fsw/ff/00index_e.html):
|
||||
/*----------------------------------------------------------------------------/
|
||||
/ FatFs - FAT file system module R0.11 (C)ChaN, 2015
|
||||
/-----------------------------------------------------------------------------/
|
||||
/ FatFs module is a free software that opened under license policy of
|
||||
/ following conditions.
|
||||
/
|
||||
/ Copyright (C) 2015, ChaN, all right reserved.
|
||||
/
|
||||
/ 1. Redistributions of source code must retain the above copyright notice,
|
||||
/ this condition and the following disclaimer.
|
||||
/
|
||||
/ This software is provided by the copyright holder and contributors "AS IS"
|
||||
/ and any warranties related to this software are DISCLAIMED.
|
||||
/ The copyright owner or contributors be NOT LIABLE for any damages caused
|
||||
/ by use of this software.
|
||||
/----------------------------------------------------------------------------*/
|
||||
Reference in new issue
Block a user