Barracuda Application Server C/C++ Reference
NO
GenPrimT.h
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: GenPrimT.h 5069 2022-02-03 13:58:42Z wini $
15 *
16 * COPYRIGHT: Real Time Logic, 2004 - 2022
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 * Do not directly include this file!!!
38 * This header file contains Generic Primitive Type definitions.
39 * The header file is included by the architecture dependent header file
40 * TargConfig.h for most of the supported platforms.
41 */
42
43#ifndef _TargConfig_h
44#include <TargConfig.h>
45#endif
46
47#ifndef _GenPrimT_h
48#define _GenPrimT_h
49#include <stdint.h>
50
51
52#define SHARKSSL_USE_SHA1 1
53#define SHARKSSL_USE_MD5 1
54#define SHARKSSL_ENABLE_AES_CCM 1
55#define SHARKSSL_HMAC_API 1
56#define SHARKSSL_ENABLE_AES_CBC 1
57#define SHARKSSL_ENABLE_ENCRYPTED_PKCS8_SUPPORT 1
58
59#ifdef __ICCARM__
60#pragma diag_suppress=Pa084
61#pragma diag_suppress=Pa089
62#pragma diag_suppress=Pa181
63#pragma diag_suppress=Pe188
64#pragma diag_suppress=Pe546
65#pragma diag_suppress=Pe550
66#endif
67
73/***********************************************************************
74 * Barracuda types
75 ***********************************************************************/
76
77/* Define Barracuda's legacy types */
78typedef int8_t S8;
79typedef int16_t S16;
80typedef int32_t S32;
81typedef int64_t S64;
82typedef uint8_t U8;
83typedef uint16_t U16;
84typedef uint32_t U32;
85typedef uint64_t U64;
86
93typedef S64 BaTime;
94
95
98typedef struct {
102 S32 nsec;
105} BaTimeEx;
106
107typedef U8 BaBool;
108#ifndef TRUE
109#define TRUE 1
110#define FALSE 0
111#endif
112
113#define S64_getMsw(o) ((S32)(0xFFFFFFFF & ((o) >> 32) ))
114
115#ifdef BA_FILESIZE64
116typedef U64 BaFileSize;
117typedef S64 SBaFileSize;
118/* Unsigned and Signed baprintf FileSize format flags */
119#define BA_UFSF "llu"
120#define BA_SFSF "lld"
121#else
122typedef U32 BaFileSize;
123typedef S32 SBaFileSize;
124#define BA_UFSF "lu"
125#define BA_SFSF "ld"
126#endif
129#define iStrlen(s) ((int)strlen(s))
130
131#include "BaAtoi.h"
132
133#endif
S64 BaTime
An arithmetic type representing calendar time with epoch of 1970-01-01 00:00:10 GMT – i....
Definition: GenPrimT.h:93
Extended BaTime with nano-seconds and timezone offset in minutes.
Definition: GenPrimT.h:98
S16 offset
Offset from UTC in minutes, valid range: -1439 to 1439.
Definition: GenPrimT.h:104
BaTime sec
epoch
Definition: GenPrimT.h:100
S32 nsec
Nanoseconds, valid range: 0 to 999999999.
Definition: GenPrimT.h:102