Skip to content

Commit e4143ed

Browse files
authored
Merge pull request #511 from ut-issl/feature/use-std-stdint
Use standard Pre Release (v3.8.0-beta.6): stdint.h
2 parents 50228ac + d860aa2 commit e4143ed

File tree

44 files changed

+68
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+68
-98
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ option(USE_ALL_C2A_CORE_LIB "use C2A-core all Library" ON)
99
option(USE_32BIT_COMPILER "use 32bit compiler" OFF)
1010

1111
option(C2A_USE_SIMPLE_LIBC "use C2A-core hosted simple libc implementation" OFF)
12+
option(C2A_USE_C99_STDINT "use C99 standard stdint.h" ON)
1213

1314
option(BUILD_C2A_AS_SILS_FW "build C2A as SILS firmware" ON)
1415
option(BUILD_C2A_AS_CXX "build C2A as C++" OFF)
@@ -50,6 +51,11 @@ set(C2A_SRCS
5051
TlmCmd/Ccsds/tlm_space_packet.c
5152
)
5253

54+
if(NOT C2A_USE_C99_STDINT)
55+
message("Use stdint.h wrapper")
56+
include_directories(Library/stdint_wrapper)
57+
endif()
58+
5359
if(BUILD_C2A_AS_CXX)
5460
set_source_files_properties(${C2A_SRCS} PROPERTIES LANGUAGE CXX) # C++
5561
endif()

Drivers/Protocol/common_tlm_cmd_packet_for_driver_super.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef COMMON_TLM_CMD_PACKET_FOR_DRIVER_SUPER_H_
99
#define COMMON_TLM_CMD_PACKET_FOR_DRIVER_SUPER_H_
1010

11-
#include <src_user/Library/stdint.h>
11+
#include <stdint.h>
1212
#include "../Super/driver_super.h"
1313
#include "../../TlmCmd/common_tlm_cmd_packet.h"
1414

Drivers/Protocol/eb90_frame_for_driver_super.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#ifndef EB90_FRAME_FOR_DRIVER_SUPER_H_
3535
#define EB90_FRAME_FOR_DRIVER_SUPER_H_
3636

37-
#include <src_user/Library/stdint.h>
37+
#include <stdint.h>
3838
#include "../Super/driver_super.h"
3939

4040
#define EB90_FRAME_STX_SIZE (2) //!< EB90 Frame の STX のサイズ

Drivers/Protocol/eb90_packet_for_driver_super.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef EB90_PACKET_FOR_DRIVER_SUPER_H_
2727
#define EB90_PACKET_FOR_DRIVER_SUPER_H_
2828

29-
#include <src_user/Library/stdint.h>
29+
#include <stdint.h>
3030
#include "../Super/driver_super.h"
3131

3232
#define EB90_PACKET_HEADER_SIZE (4) //!< EB90 Packet のヘッダサイズ

Drivers/Super/driver_super.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define DRIVER_SUPER_H_
2525

2626
#include <src_user/IfWrapper/if_list.h>
27-
#include <src_user/Library/stdint.h>
27+
#include <stdint.h>
2828
#include "../../Library/endian.h" // パスが不定な自動生成コード類で使えるように
2929
#include "../../System/TimeManager/time_manager.h"
3030

Examples/2nd_obc_user/src/src_user/Applications/UserDefined/debug_apps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "debug_apps.h"
33

44
#include <stddef.h> // for NULL
5+
#include <stdint.h>
56

67
#include <src_core/Library/print.h>
78
#include <src_core/System/TimeManager/time_manager.h>
@@ -20,7 +21,6 @@
2021
// #include <src_core/TlmCmd/telemetry_generator.h>
2122
#include "../../Library/git_revision.h"
2223
#include "../../Library/vt100.h"
23-
#include "../../Library/stdint.h"
2424

2525
void APP_DBG_flush_screen_(void);
2626
void APP_DBG_print_time_stamp_(void);

Examples/2nd_obc_user/src/src_user/Library/git_revision.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef GIT_REVISION_H_
66
#define GIT_REVISION_H_
77

8-
#include "stdint.h"
8+
#include <stdint.h>
99

1010
extern const char GIT_REV_CORE[41];
1111
extern const uint32_t GIT_REV_CORE_SHORT;

Examples/2nd_obc_user/src/src_user/Library/stdint.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

Examples/2nd_obc_user/src/src_user/Settings/TlmCmd/Ccsds/apid_define.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef APID_DEFINE_H_
77
#define APID_DEFINE_H_
88

9-
#include "../../../Library/stdint.h"
9+
#include <stdint.h>
1010

1111
/**
1212
* @enum APID

Examples/minimum_user/src/src_user/Applications/DriverInstances/di_gs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
#ifndef DI_GS_H_
66
#define DI_GS_H_
77

8+
#include <stdint.h>
9+
810
#include "../../Drivers/Com/gs.h"
911
#include "../../TlmCmd/Ccsds/tcp_to_m_pdu.h"
1012
#include "../../TlmCmd/Ccsds/vcdu.h"
11-
#include "../../Library/stdint.h"
1213
#include <src_core/System/ApplicationManager/app_info.h>
1314

1415
/**

0 commit comments

Comments
 (0)