Skip to content

Commit 89d289a

Browse files
Merge pull request #525 from ut-issl/develop
Update main (v3.8.0) on 2023-03-26
2 parents 1e7d4fb + b755e09 commit 89d289a

File tree

270 files changed

+5352
-5944
lines changed

Some content is hidden

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

270 files changed

+5352
-5944
lines changed

.github/workflows/.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
10+
jobs:
11+
minimum_user:
12+
name: minimum user
13+
uses: arkedge/workflows-c2a/.github/workflows/[email protected]
14+
with:
15+
c2a_dir: Examples/minimum_user
16+
c2a_custom_setup: |
17+
cd $GITHUB_WORKSPACE
18+
ls -l
19+
cd ./repo
20+
pwd
21+
ls -l
22+
if [ $RUNNER_OS = 'Windows' ]; then
23+
cmd "/C setup.bat"
24+
else
25+
./setup.sh
26+
fi
27+
28+
second_obc_user:
29+
name: 2nd obc user
30+
uses: arkedge/workflows-c2a/.github/workflows/[email protected]
31+
with:
32+
c2a_dir: Examples/2nd_obc_user
33+
c2a_custom_setup: |
34+
cd $GITHUB_WORKSPACE
35+
ls -l
36+
cd ./repo
37+
pwd
38+
ls -l
39+
if [ $RUNNER_OS = 'Windows' ]; then
40+
cmd "/C setup.bat"
41+
else
42+
./setup.sh
43+
fi

.github/workflows/build_as_c89.yml

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

.github/workflows/build_as_cxx.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,6 @@ on:
88
pull_request:
99

1010
jobs:
11-
build_example_user_as_cxx:
12-
runs-on: windows-latest
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
example:
17-
- minimum_user
18-
- 2nd_obc_user
19-
20-
steps:
21-
- uses: actions/checkout@v3
22-
23-
- name: setup
24-
shell: cmd
25-
run: ./setup.bat
26-
27-
- name: cmake
28-
working-directory: ./Examples/${{ matrix.example }}
29-
run: |
30-
mkdir build
31-
cd build
32-
cmake --version
33-
cmake .. -A Win32
34-
35-
- name: build
36-
working-directory: ./Examples/${{ matrix.example }}/build
37-
run: cmake --build .
38-
3911
build_s2e_mockup:
4012
runs-on: windows-latest
4113
strategy:

.github/workflows/python_check_format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515

16+
- name: install black formatter
17+
run: pip install black==23.1.0
18+
1619
# - name: check python format with black
1720
# uses: psf/black@stable
1821

.github/workflows/python_lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
with:
1919
python-version-file: .github/workflows/.python-version
2020

21+
- name: install flake8
22+
run: pip install flake8==6.0.0
23+
2124
- name: flake8 Lint
2225
uses: reviewdog/action-flake8@v3
2326
with:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ dkms.conf
6060
# for c2a user sample
6161
Examples/minimum_user/src/src_core
6262
Examples/minimum_user/build
63-
Examples/minimum_user/src/src_user/Test/authorization.json
6463
Examples/2nd_obc_user/src/src_core
6564
Examples/2nd_obc_user/build
66-
Examples/2nd_obc_user/src/src_user/Test/authorization.json
6765
*.pyc

Applications/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.13)
33
project(C2A_CORE_APPS)
44

55
set(C2A_SRCS
6-
anomaly_handler.c
76
divided_cmd_utility.c
87
gs_command_dispatcher.c
98
event_utility.c

Applications/TestApp/test_ccp_util.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
#include "../../TlmCmd/common_cmd_packet_util.h"
99
#include <src_user/TlmCmd/command_definitions.h>
1010

11-
CCP_EXEC_STS Cmd_TEST_CCP_REGISTER_TLC_ASAP(const CommonCmdPacket* packet)
11+
CCP_CmdRet Cmd_TEST_CCP_REGISTER_TLC_ASAP(const CommonCmdPacket* packet)
1212
{
1313
cycle_t ti = CCP_get_param_from_packet(packet, 0, cycle_t);
1414
PH_ACK ack = CCP_register_tlc_asap(ti, TLCD_ID_FROM_GS, Cmd_CODE_NOP, NULL, 0);
15-
if (ack != PH_ACK_TLC_SUCCESS) return CCP_EXEC_ILLEGAL_CONTEXT;
15+
if (ack != PH_ACK_TLC_SUCCESS) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);
1616

17-
return CCP_EXEC_SUCCESS;
17+
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
1818
}
1919

20-
CCP_EXEC_STS Cmd_TEST_CCP_GET_RAW_PARAM_INFO(const CommonCmdPacket* packet)
20+
CCP_CmdRet Cmd_TEST_CCP_GET_RAW_PARAM_INFO(const CommonCmdPacket* packet)
2121
{
2222
uint16_t len = CCP_get_param_from_packet(packet, 0, uint16_t);
2323
uint8_t first_data = CCP_get_param_from_packet(packet, 1, uint8_t);
@@ -26,28 +26,28 @@ CCP_EXEC_STS Cmd_TEST_CCP_GET_RAW_PARAM_INFO(const CommonCmdPacket* packet)
2626
// CCP_get_raw_param_head の test
2727
if (CCP_get_raw_param_head(packet) != CCP_get_param_head(packet) + sizeof(uint16_t) + sizeof(uint8_t))
2828
{
29-
return CCP_EXEC_ILLEGAL_CONTEXT;
29+
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);
3030
}
3131

3232
// len チェック
3333
if (CCP_get_raw_param_len(packet) != len)
3434
{
35-
return CCP_EXEC_ILLEGAL_CONTEXT;
35+
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);
3636
}
3737

3838
if (len == 0)
3939
{
4040
// raw param なし
41-
return CCP_EXEC_SUCCESS;
41+
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
4242
}
4343

4444
data = CCP_get_raw_param_head(packet);
4545
if (data[0] != first_data)
4646
{
47-
return CCP_EXEC_ILLEGAL_CONTEXT;
47+
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);
4848
}
4949

50-
return CCP_EXEC_SUCCESS;
50+
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
5151
}
5252

5353
#pragma section

Applications/TestApp/test_ccp_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "../../TlmCmd/common_cmd_packet.h"
99

10-
CCP_EXEC_STS Cmd_TEST_CCP_REGISTER_TLC_ASAP(const CommonCmdPacket* packet);
11-
CCP_EXEC_STS Cmd_TEST_CCP_GET_RAW_PARAM_INFO(const CommonCmdPacket* packet);
10+
CCP_CmdRet Cmd_TEST_CCP_REGISTER_TLC_ASAP(const CommonCmdPacket* packet);
11+
CCP_CmdRet Cmd_TEST_CCP_GET_RAW_PARAM_INFO(const CommonCmdPacket* packet);
1212

1313
#endif

0 commit comments

Comments
 (0)