Skip to content

Commit

Permalink
examples/subobc: apply rename migration(Applications -> applications)
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Aug 3, 2023
1 parent c6da695 commit bd4056d
Show file tree
Hide file tree
Showing 24 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions examples/subobc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ option(USE_SILS_MOCKUP "Use SILS mockup for build C2A with minimal user in C89 o
option(BUILD_C2A_AS_SILS_FW "Build C2A as SILS firmware" ON)

set(USE_ALL_C2A_CORE_APPS OFF)
# Core App のターゲット追加は src_user/Applications/CMakeLists.txt で行う
# Core App のターゲット追加は src_user/applications/CMakeLists.txt で行う
set(USE_ALL_C2A_CORE_TEST_APPS OFF)

if(USE_SILS_MOCKUP)
Expand Down Expand Up @@ -56,7 +56,7 @@ add_definitions("-DGIT_REVISION_C2A_USER_SHORT=0x${GIT_REVISION_C2A_USER_SHORT}"

add_subdirectory(${C2A_CORE_DIR})

add_subdirectory(${C2A_USER_DIR}/Applications)
add_subdirectory(${C2A_USER_DIR}/applications)
add_subdirectory(${C2A_USER_DIR}/Drivers)
add_subdirectory(${C2A_USER_DIR}/hal)
add_subdirectory(${C2A_USER_DIR}/Library)
Expand Down
22 changes: 0 additions & 22 deletions examples/subobc/src/src_user/Applications/CMakeLists.txt

This file was deleted.

24 changes: 0 additions & 24 deletions examples/subobc/src/src_user/Applications/app_headers.h

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma section REPRO
#include "tl_elem_debug_display.h"

#include "../../../../Applications/app_registry.h"
#include "../../../../applications/app_registry.h"
#include "../../../../TlmCmd/block_command_definitions.h"

#include <src_core/TlmCmd/block_command_loader.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "tl_elem_gs_related_process.h"

#include "../../../../TlmCmd/block_command_definitions.h"
#include "../../../../Applications/app_registry.h"
#include "../../../../applications/app_registry.h"

#include <src_core/TlmCmd/block_command_loader.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma section REPRO
#include "tl_elem_tlm_cmd_hirate.h"

#include "../../../../Applications/app_registry.h"
#include "../../../../applications/app_registry.h"
#include "../../../../TlmCmd/block_command_definitions.h"

#include <src_core/TlmCmd/block_command_loader.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma section REPRO
#include "tl_initial.h"

#include "../../../Applications/app_registry.h"
#include "../../../applications/app_registry.h"
#include "../../../TlmCmd/block_command_definitions.h"

#include <src_core/TlmCmd/block_command_loader.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "../../../TlmCmd/block_command_definitions.h"
#include "../../../TlmCmd/command_definitions.h"

#include <src_core/Applications/timeline_command_dispatcher_id_define.h>
#include <src_core/applications/timeline_command_dispatcher_id_define.h>
#include <src_core/TlmCmd/block_command_loader.h>
#include <src_core/System/TimeManager/obc_time.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../command_definitions.h"
#include "../telemetry_definitions.h"

#include <src_core/Applications/timeline_command_dispatcher_id_define.h>
#include <src_core/applications/timeline_command_dispatcher_id_define.h>
#include <src_core/TlmCmd/block_command_loader.h>


Expand Down
2 changes: 1 addition & 1 deletion examples/subobc/src/src_user/TlmCmd/command_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
#include <src_core/TlmCmd/command_dispatcher_manager.h>
#include <src_core/TlmCmd/telemetry_generator.h>
#include <src_core/TlmCmd/telemetry_frame.h>
#include "../Applications/app_headers.h"
#include "../applications/app_headers.h"

#endif
2 changes: 1 addition & 1 deletion examples/subobc/src/src_user/TlmCmd/telemetry_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <src_core/TlmCmd/command_analyze.h>
#include <src_core/TlmCmd/command_dispatcher_manager.h>
#include <src_core/TlmCmd/block_command_executor.h>
#include "../Applications/app_headers.h"
#include "../applications/app_headers.h"
#include "../Settings/build_settings.h"

#endif
22 changes: 22 additions & 0 deletions examples/subobc/src/src_user/applications/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.13)

project(C2A_USER_APPS)

set(C2A_SRCS
app_registry.c
driver_instances/di_mobc.c
user_defined/debug_apps.c
${C2A_CORE_DIR}/applications/gs_command_dispatcher.c
${C2A_CORE_DIR}/applications/event_utility.c
${C2A_CORE_DIR}/applications/nop.c
${C2A_CORE_DIR}/applications/realtime_command_dispatcher.c
${C2A_CORE_DIR}/applications/timeline_command_dispatcher.c
)

if(BUILD_C2A_AS_CXX)
set_source_files_properties(${C2A_SRCS} PROPERTIES LANGUAGE CXX) # C++
endif()

add_library(${PROJECT_NAME} OBJECT ${C2A_SRCS})

include(${C2A_USER_DIR}/common.cmake)
24 changes: 24 additions & 0 deletions examples/subobc/src/src_user/applications/app_headers.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @file
* @brief Appのヘッダをまとめたヘッダ
*/
#ifndef APP_HEADERS_H_
#define APP_HEADERS_H_

// Core
#include <src_core/applications/nop.h>
#include <src_core/applications/gs_command_dispatcher.h>
#include <src_core/applications/realtime_command_dispatcher.h>
#include <src_core/applications/timeline_command_dispatcher.h>
#include <src_core/applications/event_utility.h>

// Core TestApp
#include <src_core/applications/test_app/test_ccp_util.h>

// DI
#include "driver_instances/di_mobc.h"

// UserDefined
#include "user_defined/debug_apps.h"

#endif
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef APP_REGISTRY_H_
#define APP_REGISTRY_H_
#include <src_user/Settings/Applications/timeline_command_dispatcher_define.h>
#include <src_user/Settings/applications/timeline_command_dispatcher_define.h>

// こいつの自動生成がほしい...
typedef enum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#include <src_core/TlmCmd/packet_handler.h>
#include "../../TlmCmd/telemetry_definitions.h"
#include <src_core/TlmCmd/block_command_table.h>
#include <src_core/Applications/memory_dump.h>
#include <src_core/Applications/gs_command_dispatcher.h>
#include <src_core/Applications/realtime_command_dispatcher.h>
#include <src_core/Applications/timeline_command_dispatcher.h>
#include "../../Applications/DriverInstances/di_mobc.h"
#include <src_core/applications/memory_dump.h>
#include <src_core/applications/gs_command_dispatcher.h>
#include <src_core/applications/realtime_command_dispatcher.h>
#include <src_core/applications/timeline_command_dispatcher.h>
#include "../../applications/driver_instances/di_mobc.h"
// #include <src_core/TlmCmd/telemetry_generator.h>
#include "../../Library/vt100.h"
#include <src_core/Library/result.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sub GetSetting {
$SETTING{'FILE_ENCODING'} = 'utf8';
$SETTING{'LOG_FILE'} = './log.log';
$SETTING{'SEARCH_PATH'} = [
'Applications',
'applications',
'Drivers',
'hal',
'Library',
Expand Down
2 changes: 1 addition & 1 deletion examples/subobc/sync_with_mobc_example.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ call :sync_dir ".\src\src_user\ReProgramming\" "..\mobc\src\src_user\ReProgrammi
call :sync_dir ".\src\src_user\script\" "..\mobc\src\src_user\script\"
call :sync_dir ".\src\src_user\Settings\TlmCmd\Ccsds\" "..\mobc\src\src_user\Settings\TlmCmd\Ccsds\"

call :sync_file ".\src\src_user\Applications\UserDefined\debug_apps.h" "..\mobc\src\src_user\Applications\UserDefined\debug_apps.h"
call :sync_file ".\src\src_user\applications\user_defined\debug_apps.h" "..\mobc\src\src_user\applications\user_defined\debug_apps.h"
call :sync_file ".\src\src_user\hal\sils\uart_sils_sci_if.hpp" "..\mobc\src\src_user\hal\sils\uart_sils_sci_if.hpp"
call :sync_file ".\src\src_user\hal\sils\wdt_sils.cpp" "..\mobc\src\src_user\hal\sils\wdt_sils.cpp"
call :sync_file ".\src\src_user\hal\sils_mockup\README.md" "..\mobc\src\src_user\hal\sils_mockup\README.md"
Expand Down

0 comments on commit bd4056d

Please sign in to comment.