File: typedefs.h

package info (click to toggle)
limesuite 23.11.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 17,228 kB
  • sloc: cpp: 157,511; ansic: 6,852; python: 197; sh: 56; xml: 21; makefile: 19
file content (27 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef LMS7002M_TYPEDEFS_H
#define LMS7002M_TYPEDEFS_H

typedef float float_type;

#ifdef __C51__
    typedef unsigned long uint32_t;
    typedef long int32_t;
    typedef unsigned short uint16_t;
    typedef short int16_t;
    typedef signed char int8_t;
    typedef unsigned char uint8_t;
    typedef bit bool;
    #define ROM code
    #define false 0
    #define true 1
    #define ROM code
#else //for convenience when compiling for PC
    #include <stdint.h>
    #include <stdbool.h>
    //replace with empty space
    #define ROM
    #define xdata
    #define bdata
#endif

#endif