Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DW1000 ait_link BufferedSerial mbed
settings.h@1:c070ca30da80, 2016-02-11 (annotated)
- Committer:
- bhepp
- Date:
- Thu Feb 11 10:49:49 2016 +0000
- Revision:
- 1:c070ca30da80
- Parent:
- 0:6d63b6992cbf
- Child:
- 2:5af0f0006f40
Multi Ranging working
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bhepp | 0:6d63b6992cbf | 1 | #pragma once |
| bhepp | 0:6d63b6992cbf | 2 | |
| bhepp | 1:c070ca30da80 | 3 | #include "DW1000Utils.h" |
| bhepp | 1:c070ca30da80 | 4 | |
| bhepp | 0:6d63b6992cbf | 5 | // Global settings |
| bhepp | 0:6d63b6992cbf | 6 | |
| bhepp | 1:c070ca30da80 | 7 | const DW1000Utils::PrfSetting PRF_SETTING = DW1000Utils::PRF_16_MHz; |
| bhepp | 1:c070ca30da80 | 8 | const DW1000Utils::DataRateSetting DATA_RATE_SETTING = DW1000Utils::RATE_110_kbps; |
| bhepp | 1:c070ca30da80 | 9 | |
| bhepp | 1:c070ca30da80 | 10 | //const uint32_t PREAMBLE_SETTING = DW1000Utils::PREAMBLE_LENGTH_256; |
| bhepp | 1:c070ca30da80 | 11 | //#define ANSWER_DELAY_US_OVERWRITE 1500; |
| bhepp | 1:c070ca30da80 | 12 | //const uint32_t PREAMBLE_SETTING = DW1000Utils::PREAMBLE_LENGTH_512; |
| bhepp | 1:c070ca30da80 | 13 | //#define ANSWER_DELAY_US_OVERWRITE 2000; |
| bhepp | 1:c070ca30da80 | 14 | const uint32_t PREAMBLE_SETTING = DW1000Utils::PREAMBLE_LENGTH_1024; |
| bhepp | 1:c070ca30da80 | 15 | #define ANSWER_DELAY_US_OVERWRITE 2500; |
| bhepp | 1:c070ca30da80 | 16 | |
| bhepp | 0:6d63b6992cbf | 17 | //#undef _DEBUG |
| bhepp | 1:c070ca30da80 | 18 | #define _DEBUG 0 |
| bhepp | 1:c070ca30da80 | 19 | #define PRINT_ERRORS 0 |
| bhepp | 0:6d63b6992cbf | 20 | #define SLAVE_REPLY_WITH_STATS 0 |
| bhepp | 1:c070ca30da80 | 21 | #define BUILD_SLAVE 0 |
| bhepp | 0:6d63b6992cbf | 22 | |
| bhepp | 0:6d63b6992cbf | 23 | #if _DEBUG |
| bhepp | 0:6d63b6992cbf | 24 | #ifndef _DEBUG_PC_DEFINED |
| bhepp | 0:6d63b6992cbf | 25 | #define _DEBUG_PC_DEFINED |
| bhepp | 0:6d63b6992cbf | 26 | #include "PC.h" |
| bhepp | 0:6d63b6992cbf | 27 | static PC _pc_debug(USBTX, USBRX, 115200); |
| bhepp | 0:6d63b6992cbf | 28 | #endif |
| bhepp | 0:6d63b6992cbf | 29 | #define DEBUG_PRINTF(x_) _pc_debug.printf((x_)); |
| bhepp | 0:6d63b6992cbf | 30 | #define DEBUG_PRINTF_VA(x_, ...) _pc_debug.printf((x_), __VA_ARGS__); |
| bhepp | 0:6d63b6992cbf | 31 | #else |
| bhepp | 0:6d63b6992cbf | 32 | #define DEBUG_PRINTF(x_) |
| bhepp | 0:6d63b6992cbf | 33 | #define DEBUG_PRINTF_VA(x_, ...) |
| bhepp | 0:6d63b6992cbf | 34 | #endif |
| bhepp | 0:6d63b6992cbf | 35 | |
| bhepp | 0:6d63b6992cbf | 36 | #if PRINT_ERRORS |
| bhepp | 0:6d63b6992cbf | 37 | #ifndef _ERROR_PC_DEFINED |
| bhepp | 0:6d63b6992cbf | 38 | #define _ERROR_PC_DEFINED |
| bhepp | 0:6d63b6992cbf | 39 | #include "PC.h" |
| bhepp | 0:6d63b6992cbf | 40 | static PC _pc_error(USBTX, USBRX, 115200); |
| bhepp | 0:6d63b6992cbf | 41 | #endif |
| bhepp | 0:6d63b6992cbf | 42 | #define ERROR_PRINTF(x_) _pc_error.printf((x_)); |
| bhepp | 0:6d63b6992cbf | 43 | #define ERROR_PRINTF_VA(x_, ...) _pc_error.printf((x_), __VA_ARGS__); |
| bhepp | 0:6d63b6992cbf | 44 | #else |
| bhepp | 0:6d63b6992cbf | 45 | #define ERROR_PRINTF(x_) |
| bhepp | 0:6d63b6992cbf | 46 | #define ERROR_PRINTF_VA(x_, ...) |
| bhepp | 0:6d63b6992cbf | 47 | #endif |