├── samples
├── cc3200-sample
│ ├── ccs
│ │ ├── macros.ini
│ │ ├── .ccsimportspec
│ │ ├── .ccsproject
│ │ └── cc3200v1p32.cmd
│ ├── macros.ini_initial
│ ├── targetConfigs
│ │ └── CC3200.ccxml
│ ├── pinmux.h
│ ├── pinmux.c
│ ├── cc3200v1p32.cmd
│ └── common.h
├── nrf52-ble-template-sdk12.3
│ ├── README.md
│ ├── ble_app_template.eww
│ ├── pca10028
│ │ └── s130
│ │ │ ├── armgcc
│ │ │ ├── ble_app_template_gcc_nrf51.ld
│ │ │ └── Makefile
│ │ │ ├── iar
│ │ │ └── ble_app_template_iar_nRF5x.icf
│ │ │ ├── arm4
│ │ │ └── ble_app_template_pca10028_s130.uvopt
│ │ │ └── arm5_no_packs
│ │ │ └── ble_app_template_pca10028_s130.uvoptx
│ ├── pca10040
│ │ └── s132
│ │ │ ├── armgcc
│ │ │ └── ble_app_template_gcc_nrf52.ld
│ │ │ ├── iar
│ │ │ └── ble_app_template_iar_nRF5x.icf
│ │ │ ├── arm4
│ │ │ └── ble_app_template_pca10040_s132.uvopt
│ │ │ └── arm5_no_packs
│ │ │ └── ble_app_template_pca10040_s132.uvoptx
│ └── pca10056
│ │ └── s132
│ │ ├── armgcc
│ │ ├── ble_app_template_gcc_nrf52.ld
│ │ └── Makefile
│ │ ├── iar
│ │ └── ble_app_template_iar_nRF5x.icf
│ │ ├── arm4
│ │ └── ble_app_template_pca10056_s132.uvopt
│ │ └── arm5_no_packs
│ │ └── ble_app_template_pca10056_s132.uvoptx
├── nrf52-ble-template-sdk13
│ ├── README.md
│ ├── logging_config.h
│ ├── events_config.json
│ └── ble_app_template_gcc_nrf52.ld
└── nrf52-ble-sample-project
│ ├── CMakeLists.txt
│ ├── logging_config.h
│ ├── events_config.json
│ ├── ble_app_template_gcc_nrf52.ld
│ └── README.md
├── .gitmodules
├── NOTICE
├── external
└── CMakeLists.txt
├── ulogger
├── CMakeLists.txt
├── compilers.h
├── ulogger_events.h
├── ulogger.c
├── network_log_handler.h
├── ubuffer.h
├── network_log_handler.c
├── ubuffer.c
└── ulogger.h
├── test
└── test_module
│ ├── logging_config.h
│ ├── mock_critical_section.h
│ ├── mock_critical_section.c
│ ├── mock_user_handlers.h
│ ├── CMakeLists.txt
│ ├── test_ulogger.c
│ ├── mock_user_handlers.c
│ ├── tests_runner.c
│ └── test_ubuffer.c
├── CMakeLists.txt
├── platforms
├── nrf52
│ ├── CMakeLists.txt
│ ├── trace_nrf52.h
│ ├── ulogger_nrf52.h
│ ├── logging_config.h
│ ├── trace_nrf52.c
│ ├── gatt_handler.h
│ ├── ulogger_nrf52.c
│ ├── README.md
│ └── gatt_handler.c
└── cc3200
│ ├── ulogger_cc3200.h
│ ├── json_formatter.h
│ ├── logging_config.h
│ ├── json_encoding_helper.h
│ ├── events_api_handler.h
│ ├── json_formatter.c
│ ├── events_api_handler.c
│ ├── ulogger_cc3200.c
│ └── README.md
├── .gitignore
├── doxygen-bootstrapped
├── footer.html
├── header.html
├── customdoxygen.css
├── doxy-boot.js
└── LICENSE
├── porting.md
├── README.md
├── tools
└── package_generator.sh
└── LICENSE
/samples/cc3200-sample/ccs/macros.ini:
--------------------------------------------------------------------------------
1 | CC3200_SDK_ROOT=
--------------------------------------------------------------------------------
/samples/cc3200-sample/macros.ini_initial:
--------------------------------------------------------------------------------
1 | CC3200_SDK_ROOT=
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "external/Unity"]
2 | path = external/Unity
3 | url = https://github.com/ThrowTheSwitch/Unity.git
4 |
--------------------------------------------------------------------------------
/NOTICE:
--------------------------------------------------------------------------------
1 | Jumper Logging Agent
2 | Copyright 2017 Jumper Labs LTD.
3 |
4 | This product includes software developed at Jumper Labs LTD.
5 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk12.3/README.md:
--------------------------------------------------------------------------------
1 | Note: This template project is meant to work with the nRF52 SDK v12, for using with SDK v13 go to "nrf52-ble-template-sdk13"
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk13/README.md:
--------------------------------------------------------------------------------
1 | Note: This template project is meant to work with the nRF52 SDK v13, for using with SDK v12 go to "nrf52-ble-template-sdk12.3"
--------------------------------------------------------------------------------
/samples/cc3200-sample/ccs/.ccsimportspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/external/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_library(Unity STATIC
2 | Unity/src/unity.c Unity/extras/fixture/src/unity_fixture.c
3 | )
4 |
5 | target_include_directories(Unity PUBLIC
6 | Unity/src PUBLIC Unity/extras/fixture/src
7 | )
--------------------------------------------------------------------------------
/ulogger/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(SOURCE_FILES
2 | ubuffer.c
3 | ubuffer.h
4 | ulogger.c
5 | ulogger.h
6 | ulogger_events.h
7 | network_log_handler.c
8 | network_log_handler.h
9 | compilers.h)
10 |
11 | add_library(ulogger ${SOURCE_FILES})
12 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-sample-project/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # THIS FILE IS ON:Y USED FOR IDE INTEGRATION AND NOT FOR BUILDING THE PROJECT
2 | # Use make instead
3 |
4 | include_directories(../../ulogger)
5 | link_directories(../../ulogger)
6 | add_executable(nrf-sample-project config/sdk_config.h logging_config.h main.c)
7 | target_link_libraries(nrf-sample-project ulogger nrf52)
8 |
--------------------------------------------------------------------------------
/test/test_module/logging_config.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_LOGGING_CONFIG_H
2 | #define JUMPER_ULOGGER_LOGGING_CONFIG_H
3 |
4 | #include "mock_critical_section.h"
5 |
6 | #define ULOGGER_ENTER_CRITICAL_SECTION() mock_enter_critical_section()
7 | #define ULOGGER_EXIT_CRITICAL_SECTION() mock_exit_critical_section()
8 |
9 | #endif //JUMPER_ULOGGER_LOGGING_CONFIG_H
10 |
--------------------------------------------------------------------------------
/test/test_module/mock_critical_section.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_MOCK_CRITICAL_SECTION_H
2 | #define JUMPER_ULOGGER_MOCK_CRITICAL_SECTION_H
3 |
4 | void mock_enter_critical_section();
5 |
6 | void mock_exit_critical_section();
7 |
8 | int mock_critical_section_state();
9 |
10 | int mock_critical_section_calls();
11 |
12 | #endif //JUMPER_ULOGGER_MOCK_CRITICAL_SECTION_H
13 |
--------------------------------------------------------------------------------
/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.6)
2 | project(jumper_ulogger)
3 |
4 | set(CMAKE_CXX_STANDARD 11)
5 | set(CMAKE_VERBOSE_MAKEFILE ON)
6 |
7 |
8 | include(CTest)
9 | enable_testing()
10 |
11 | add_subdirectory(external)
12 | add_subdirectory(ulogger)
13 | add_subdirectory(test/test_module)
14 | add_subdirectory(platforms/nrf52)
15 | add_subdirectory(samples/nrf52-ble-sample-project)
16 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-sample-project/logging_config.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
2 | #define JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
3 |
4 | #define PLATFORM_CC3200 1
5 | #define PLATFORM_NRF52 2
6 |
7 | #define ULOGGER_PLATFORM PLATFORM_NRF52
8 |
9 | #define GATT_BUFFER_SIZE 200
10 | #define LOG_SEND_PERIOD_MS 5000
11 |
12 | #endif //JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
13 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk13/logging_config.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
2 | #define JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
3 |
4 | #define PLATFORM_CC3200 1
5 | #define PLATFORM_NRF52 2
6 |
7 | #define ULOGGER_PLATFORM PLATFORM_NRF52
8 |
9 | #define GATT_BUFFER_SIZE 200
10 | #define LOG_SEND_PERIOD_MS 5000
11 |
12 | #endif //JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
13 |
--------------------------------------------------------------------------------
/platforms/nrf52/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # THIS FILE IS ON:Y USED FOR IDE INTEGRATION AND NOT FOR BUILDING THE PROJECT
2 | # Use make instead
3 |
4 | include_directories($ENV{NRF52_SDK} ../../ulogger)
5 | link_directories($ENV{NRF52_SDK} ../../ulogger)
6 |
7 | set(SRC_FILES gatt_handler.c gatt_handler.h logging_config.h trace_nrf52.c trace_nrf52.h ulogger_nrf52.c ulogger_nrf52.c)
8 |
9 | add_library(nrf52 STATIC ${SRC_FILES})
10 | target_link_libraries(nrf52 ulogger NRF_SDK)
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk12.3/ble_app_template.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $WS_DIR$\pca10028\s130\iar\ble_app_template_pca10028_s130.ewp
5 |
6 | $WS_DIR$\pca10056\s132\iar\ble_app_template_pca10056_s132.ewp
7 |
8 | $WS_DIR$\pca10040\s132\iar\ble_app_template_pca10040_s132.ewp
9 |
10 |
--------------------------------------------------------------------------------
/platforms/nrf52/trace_nrf52.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_TRACE_NRF52_H_H
2 | #define JUMPER_ULOGGER_TRACE_NRF52_H_H
3 |
4 | #include "logging_config.h"
5 |
6 | #if ULOGGER_PLATFORM == PLATFORM_NRF52
7 |
8 | #include "ble_advertising.h"
9 | #include "ble.h"
10 |
11 | #define NRF_BLE_LOGGER ulogger
12 |
13 | void ulogger_trace_nrf_ble_event(ble_evt_t *p_ble_evt);
14 | void ulogger_trace_nrf_ble_adv_event(ble_adv_evt_t ble_adv_evt);
15 |
16 | #endif
17 |
18 | #endif //JUMPER_ULOGGER_TRACE_NRF52_H_H
19 |
--------------------------------------------------------------------------------
/samples/cc3200-sample/ccs/.ccsproject:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/test_module/mock_critical_section.c:
--------------------------------------------------------------------------------
1 | #include "mock_critical_section.h"
2 |
3 | static int is_critical_section;
4 | static int critical_section_calls = 0;
5 |
6 |
7 | void mock_enter_critical_section() {
8 | is_critical_section = 1;
9 | critical_section_calls++;
10 | }
11 |
12 | void mock_exit_critical_section() {
13 | is_critical_section = 0;
14 | }
15 |
16 | int mock_critical_section_calls() {
17 | return critical_section_calls;
18 | }
19 |
20 | int mock_critical_section_state() {
21 | return is_critical_section;
22 | }
--------------------------------------------------------------------------------
/platforms/nrf52/ulogger_nrf52.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file
3 | * @defgroup nrf52_platform nRF52 Platform
4 | * @{
5 | */
6 |
7 | #ifndef ULOGGER_NRF52
8 | #define ULOGGER_NRF52
9 |
10 | #include "ulogger.h"
11 | #include "trace_nrf52.h"
12 | #include "ble.h"
13 |
14 | uLogger ulogger;
15 |
16 | /**
17 | * @brief Initializes the supplied uLogger structure
18 | * @param ulogger A uLogger handle
19 | */
20 | void ulogger_init_nrf52(uLogger* logger);
21 |
22 | void ulogger_handle_ble_event(ble_evt_t * p_ble_evt);
23 |
24 | #endif
25 | /**
26 | * @}
27 | */
28 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk13/events_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "0": {
3 | "type": "DEVICE_STARTED",
4 | "data": {}
5 | },
6 | "1": {
7 | "type":"RADIO_STATE",
8 | "data": {
9 | "is_on": "B"
10 | }
11 | },
12 | "2": {
13 | "type":"ADVERTISING_STATE",
14 | "data": {
15 | "is_on": "B"
16 | }
17 | },
18 | "3": {
19 | "type": "BATTERY_LEVEL",
20 | "data": {
21 | "level": "B"
22 | }
23 | },
24 | "4": {
25 | "type": "BLE_STATE",
26 | "data": {
27 | "is_connected": "B"
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/platforms/cc3200/ulogger_cc3200.h:
--------------------------------------------------------------------------------
1 | /**@file
2 | * @brief CC3200 Platform initialization.
3 | *
4 | * @defgroup cc3200_platform CC3200 Platform
5 | * @{
6 | */
7 | #ifndef ULOGGER_CC3200
8 | #define ULOGGER_CC3200
9 |
10 | #include "logging_config.h"
11 |
12 | #if ULOGGER_PLATFORM == PLATFORM_CC3200
13 | #include "ulogger.h"
14 |
15 | /**
16 | * @brief Initialization method for the cc3200 platform.
17 | * @param logger A uLogger instance
18 | */
19 | void ulogger_init_cc3200(uLogger * logger);
20 |
21 | #endif
22 |
23 | #endif //ULOGGER_CC3200
24 | /**
25 | * @}
26 | */
27 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-sample-project/events_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "0": {
3 | "type": "DEVICE_BOOT",
4 | "strings": ["version"]
5 | },
6 | "1": {
7 | "type":"RADIO_STATE",
8 | "data": {
9 | "is_on": "B"
10 | }
11 | },
12 | "2": {
13 | "type":"ADVERTISING_STATE",
14 | "data": {
15 | "is_on": "B"
16 | }
17 | },
18 | "3": {
19 | "type": "BATTERY_LEVEL",
20 | "data": {
21 | "level": "B"
22 | }
23 | },
24 | "4": {
25 | "type": "BLE_STATE",
26 | "data": {
27 | "is_connected": "B"
28 | }
29 | },
30 | "5": {
31 | "type": "CUSTOM_STRING",
32 | "strings": ["custom_string"]
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/test/test_module/mock_user_handlers.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_MOCK_USER_HANDLERS_H
2 | #define JUMPER_ULOGGER_MOCK_USER_HANDLERS_H
3 |
4 | #include
5 | #include "ulogger.h"
6 |
7 | #define NUM_HANDLERS 1
8 |
9 | void init_user_handlers();
10 |
11 | void get_timestamp(timestamp *data);
12 |
13 | HandlerReturnType log_handler(void *handler_data, LogLevel level, EventType event_type, timestamp time, void * log_data, size_t data_length);
14 |
15 | void assert_counters(uint32_t expected_value);
16 |
17 | void* handler_data[NUM_HANDLERS];
18 |
19 | char retrieved_string[4096];
20 |
21 | handler_func log_handlers[NUM_HANDLERS];
22 |
23 | #endif //JUMPER_ULOGGER_MOCK_USER_HANDLERS_H
24 |
--------------------------------------------------------------------------------
/platforms/nrf52/logging_config.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
2 | #define JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
3 |
4 | #include "ulogger.h"
5 | #include "app_util_platform.h"
6 |
7 | #define ULOGGER_PLATFORM PLATFORM_NRF52
8 |
9 | #define GATT_BUFFER_SIZE 200
10 | #define LOG_SEND_PERIOD_MS 5000
11 |
12 | //Platform config
13 |
14 | #ifdef APP_TIMER_CONFIG_RTC_FREQUENCY
15 | #define TICKS(x) APP_TIMER_TICKS(x)
16 | #else
17 | #define TICKS(x) APP_TIMER_TICKS(x,0)
18 | #endif
19 |
20 | #define ULOGGER_ENTER_CRITICAL_SECTION() CRITICAL_REGION_ENTER()
21 | #define ULOGGER_EXIT_CRITICAL_SECTION() CRITICAL_REGION_EXIT()
22 |
23 | #endif //JUMPER_ULOGGER_LOGGING_CONFIG_SAMPLE_H_H
24 |
--------------------------------------------------------------------------------
/ulogger/compilers.h:
--------------------------------------------------------------------------------
1 | #ifndef JUMPER_ULOGGER_COMPILERS_H_H
2 | #define JUMPER_ULOGGER_COMPILERS_H_H
3 |
4 | #if defined ( __CC_ARM )
5 | #ifndef __PACKED
6 | #define __PACKED __packed
7 | #endif
8 |
9 | #elif defined ( __ICCARM__ )
10 | #ifndef __PACKED
11 | #define __PACKED __packed
12 | #endif
13 |
14 | #elif defined ( __ICCARM__ )
15 | #ifndef __PACKED
16 | #define __PACKED __packed
17 | #endif
18 |
19 | #elif defined ( __GNUC__ )
20 | #ifndef __PACKED
21 | #define __PACKED __attribute__((packed))
22 | #endif
23 |
24 | #elif defined(__TI_COMPILER_VERSION__)
25 | #ifndef __PACKED
26 | #define __PACKED __attribute__((packed))
27 | #endif
28 | #endif
29 |
30 | #endif //JUMPER_ULOGGER_COMPILERS_H_H
31 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Object files
2 | *.o
3 | *.ko
4 | *.obj
5 | *.elf
6 |
7 | # Precompiled Headers
8 | *.gch
9 | *.pch
10 |
11 | # Libraries
12 | *.lib
13 | *.a
14 | *.la
15 | *.lo
16 |
17 | # Shared objects (inc. Windows DLLs)
18 | *.dll
19 | *.so
20 | *.so.*
21 | *.dylib
22 |
23 | # Executables
24 | *.exe
25 | *.out
26 | *.app
27 | *.i*86
28 | *.x86_64
29 | *.hex
30 |
31 | # Debug files
32 | *.dSYM/
33 | *.su
34 | .idea/
35 | .project
36 | cmake-build-debug/
37 | _build/
38 | venv/
39 |
40 | *.DS_Store
41 |
42 | docs/
43 | samples/cc3200-sample/ccs/Release
44 | samples/cc3200-sample/ccs/.settings
45 |
46 |
47 | samples/cc3200-sample/gcc/exe
48 | samples/cc3200-sample/ewarm/Release
49 | samples/cc3200-sample/ewarm/settings
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk12.3/pca10028/s130/armgcc/ble_app_template_gcc_nrf51.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
9 | RAM (rwx) : ORIGIN = 0x20001fe8, LENGTH = 0x6018
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | .pwr_mgmt_data :
21 | {
22 | PROVIDE(__start_pwr_mgmt_data = .);
23 | KEEP(*(.pwr_mgmt_data))
24 | PROVIDE(__stop_pwr_mgmt_data = .);
25 | } > RAM
26 | } INSERT AFTER .data;
27 |
28 | INCLUDE "nrf5x_common.ld"
29 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk12.3/pca10040/s132/armgcc/ble_app_template_gcc_nrf52.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
9 | RAM (rwx) : ORIGIN = 0x20002138, LENGTH = 0xdec8
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | .pwr_mgmt_data :
21 | {
22 | PROVIDE(__start_pwr_mgmt_data = .);
23 | KEEP(*(.pwr_mgmt_data))
24 | PROVIDE(__stop_pwr_mgmt_data = .);
25 | } > RAM
26 | } INSERT AFTER .data;
27 |
28 | INCLUDE "nrf5x_common.ld"
29 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk12.3/pca10056/s132/armgcc/ble_app_template_gcc_nrf52.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0xe1000
9 | RAM (rwx) : ORIGIN = 0x20002128, LENGTH = 0x3ded8
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | .pwr_mgmt_data :
21 | {
22 | PROVIDE(__start_pwr_mgmt_data = .);
23 | KEEP(*(.pwr_mgmt_data))
24 | PROVIDE(__stop_pwr_mgmt_data = .);
25 | } > RAM
26 | } INSERT AFTER .data;
27 |
28 | INCLUDE "nrf5x_common.ld"
29 |
--------------------------------------------------------------------------------
/test/test_module/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(../../ulogger ./)
2 | link_directories(../../ulogger)
3 |
4 | #set(SRC_FILES test_logger.c tests_runner.c)
5 |
6 | add_executable(ulogger_tests tests_runner.c test_ulogger.c test_ubuffer.c mock_user_handlers.c mock_critical_section.c
7 | logging_config.h)
8 |
9 | target_include_directories(ulogger PUBLIC ./)
10 |
11 | target_link_libraries(ulogger_tests Unity ulogger)
12 |
13 |
14 | #add_test(tests all_tests)
15 | #
16 | #add_custom_command(
17 | # TARGET all_tests
18 | # COMMENT "Run tests"
19 | # POST_BUILD
20 | # WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test
21 | # COMMAND ${CMAKE_CTEST_COMMAND} -C $ --output-on-failures
22 | #)
--------------------------------------------------------------------------------
/samples/nrf52-ble-sample-project/ble_app_template_gcc_nrf52.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
9 | RAM (rwx) : ORIGIN = 0x20001fd0, LENGTH = 0xe030
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | SECTIONS
23 | {
24 | .pwr_mgmt_data :
25 | {
26 | PROVIDE(__start_pwr_mgmt_data = .);
27 | KEEP(*(SORT(.pwr_mgmt_data*)))
28 | PROVIDE(__stop_pwr_mgmt_data = .);
29 | } > FLASH
30 | } INSERT AFTER .text
31 |
32 | INCLUDE "nrf5x_common.ld"
33 |
--------------------------------------------------------------------------------
/samples/nrf52-ble-template-sdk13/ble_app_template_gcc_nrf52.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
9 | RAM (rwx) : ORIGIN = 0x20001fd0, LENGTH = 0xe030
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | SECTIONS
23 | {
24 | .pwr_mgmt_data :
25 | {
26 | PROVIDE(__start_pwr_mgmt_data = .);
27 | KEEP(*(SORT(.pwr_mgmt_data*)))
28 | PROVIDE(__stop_pwr_mgmt_data = .);
29 | } > FLASH
30 | } INSERT AFTER .text
31 |
32 | INCLUDE "nrf5x_common.ld"
33 |
--------------------------------------------------------------------------------
/doxygen-bootstrapped/footer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
25 |