Skip to content

Commit 6b07296

Browse files
committed
fix only format for files for this PR
1 parent 289c6ae commit 6b07296

File tree

18 files changed

+1787
-1787
lines changed

18 files changed

+1787
-1787
lines changed

obc/CMakeLists.txt

Lines changed: 250 additions & 250 deletions
Large diffs are not rendered by default.

obc/app/modules/logger/logger.c

Lines changed: 292 additions & 292 deletions
Large diffs are not rendered by default.

obc/app/sys/CMakeLists.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
cmake_minimum_required(VERSION 3.15)
2-
3-
SET(INCLUDES
4-
${CMAKE_CURRENT_SOURCE_DIR}
5-
${CMAKE_CURRENT_SOURCE_DIR}/fs_wrapper
6-
${CMAKE_CURRENT_SOURCE_DIR}/logging
7-
${CMAKE_CURRENT_SOURCE_DIR}/persistent
8-
${CMAKE_CURRENT_SOURCE_DIR}/print
9-
${CMAKE_CURRENT_SOURCE_DIR}/time
10-
${CMAKE_CURRENT_SOURCE_DIR}/utils
11-
${CMAKE_CURRENT_SOURCE_DIR}/metadata
12-
)
13-
14-
SET(SOURCES
15-
${CMAKE_CURRENT_SOURCE_DIR}/fs_wrapper/obc_reliance_fs.c
16-
${CMAKE_CURRENT_SOURCE_DIR}/persistent/obc_persistent.c
17-
${CMAKE_CURRENT_SOURCE_DIR}/print/obc_print.c
18-
${CMAKE_CURRENT_SOURCE_DIR}/time/obc_time.c
19-
${CMAKE_CURRENT_SOURCE_DIR}/time/obc_time_utils.c
20-
${CMAKE_CURRENT_SOURCE_DIR}/utils/obc_crc.c
21-
${CMAKE_CURRENT_SOURCE_DIR}/utils/obc_heap.c
22-
${CMAKE_CURRENT_SOURCE_DIR}/metadata/obc_metadata.c
23-
)
24-
25-
target_include_directories(${OUT_FILE_NAME} PUBLIC ${INCLUDES})
26-
target_sources(${OUT_FILE_NAME} PUBLIC ${SOURCES})
27-
28-
target_include_directories(debug-tool.out PUBLIC ${INCLUDES})
29-
target_sources(debug-tool.out PUBLIC ${SOURCES})
1+
cmake_minimum_required(VERSION 3.15)
2+
3+
SET(INCLUDES
4+
${CMAKE_CURRENT_SOURCE_DIR}
5+
${CMAKE_CURRENT_SOURCE_DIR}/fs_wrapper
6+
${CMAKE_CURRENT_SOURCE_DIR}/logging
7+
${CMAKE_CURRENT_SOURCE_DIR}/persistent
8+
${CMAKE_CURRENT_SOURCE_DIR}/print
9+
${CMAKE_CURRENT_SOURCE_DIR}/time
10+
${CMAKE_CURRENT_SOURCE_DIR}/utils
11+
${CMAKE_CURRENT_SOURCE_DIR}/metadata
12+
)
13+
14+
SET(SOURCES
15+
${CMAKE_CURRENT_SOURCE_DIR}/fs_wrapper/obc_reliance_fs.c
16+
${CMAKE_CURRENT_SOURCE_DIR}/persistent/obc_persistent.c
17+
${CMAKE_CURRENT_SOURCE_DIR}/print/obc_print.c
18+
${CMAKE_CURRENT_SOURCE_DIR}/time/obc_time.c
19+
${CMAKE_CURRENT_SOURCE_DIR}/time/obc_time_utils.c
20+
${CMAKE_CURRENT_SOURCE_DIR}/utils/obc_crc.c
21+
${CMAKE_CURRENT_SOURCE_DIR}/utils/obc_heap.c
22+
${CMAKE_CURRENT_SOURCE_DIR}/metadata/obc_metadata.c
23+
)
24+
25+
target_include_directories(${OUT_FILE_NAME} PUBLIC ${INCLUDES})
26+
target_sources(${OUT_FILE_NAME} PUBLIC ${SOURCES})
27+
28+
target_include_directories(debug-tool.out PUBLIC ${INCLUDES})
29+
target_sources(debug-tool.out PUBLIC ${SOURCES})
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
#include "obc_metadata.h"
2-
#include "obc_errors.h"
3-
#include <metadata_struct.h>
4-
5-
#include <stddef.h>
6-
7-
extern uint32_t __metadata_start__[sizeof(app_metadata_t) / sizeof(uint32_t)];
8-
9-
obc_error_code_t readAppMetadata(app_metadata_t* metadata) {
10-
if (metadata == NULL) {
11-
return OBC_ERR_CODE_INVALID_ARG;
12-
}
13-
// If BL is used, get the metadata and return success. Else return error code stating that there is no metadata
14-
#if ENABLE_BL_BYPASS
15-
return OBC_ERR_CODE_NO_METADATA;
16-
#else
17-
*metadata = *(app_metadata_t*)(&__metadata_start__);
18-
return OBC_ERR_CODE_SUCCESS;
19-
#endif
20-
}
1+
#include "obc_metadata.h"
2+
#include "obc_errors.h"
3+
#include <metadata_struct.h>
4+
5+
#include <stddef.h>
6+
7+
extern uint32_t __metadata_start__[sizeof(app_metadata_t) / sizeof(uint32_t)];
8+
9+
obc_error_code_t readAppMetadata(app_metadata_t* metadata) {
10+
if (metadata == NULL) {
11+
return OBC_ERR_CODE_INVALID_ARG;
12+
}
13+
// If BL is used, get the metadata and return success. Else return error code stating that there is no metadata
14+
#if ENABLE_BL_BYPASS
15+
return OBC_ERR_CODE_NO_METADATA;
16+
#else
17+
*metadata = *(app_metadata_t*)(&__metadata_start__);
18+
return OBC_ERR_CODE_SUCCESS;
19+
#endif
20+
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
#pragma once
2-
3-
#include "obc_errors.h"
4-
#include <metadata_struct.h>
5-
#include <stdint.h>
6-
7-
/**
8-
* NOTE: app_metadata_t is found in shared/metadata/metadata_struct. Please update changes following the instructions
9-
* there if you edit these files
10-
*/
11-
12-
/**
13-
* @brief reads app metadata from the start of the metadata region specified in memory.ld
14-
*
15-
* @param metadata Pointer to metadata_struct_t instance to store metadata in
16-
* @return obc_error_code_t Success if app is flashed using bootloader, No Metadata otherwise.
17-
*
18-
*
19-
*/
20-
21-
obc_error_code_t readAppMetadata(app_metadata_t* metadata);
1+
#pragma once
2+
3+
#include "obc_errors.h"
4+
#include <metadata_struct.h>
5+
#include <stdint.h>
6+
7+
/**
8+
* NOTE: app_metadata_t is found in shared/metadata/metadata_struct. Please update changes following the instructions
9+
* there if you edit these files
10+
*/
11+
12+
/**
13+
* @brief reads app metadata from the start of the metadata region specified in memory.ld
14+
*
15+
* @param metadata Pointer to metadata_struct_t instance to store metadata in
16+
* @return obc_error_code_t Success if app is flashed using bootloader, No Metadata otherwise.
17+
*
18+
*
19+
*/
20+
21+
obc_error_code_t readAppMetadata(app_metadata_t* metadata);

0 commit comments

Comments
 (0)