mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-22 04:53:50 +01:00
pkg/uwb-dw1000: fix default group delay
This commit is contained in:
parent
ef7e1b6846
commit
d40905917f
@ -73,7 +73,7 @@ static const dw1000_dev_instance_t dw1000_instance_config_default = {
|
|||||||
.preambleLength = DW1000_TX_PREAM_LEN_DEFAULT,
|
.preambleLength = DW1000_TX_PREAM_LEN_DEFAULT,
|
||||||
},
|
},
|
||||||
.txrf={
|
.txrf={
|
||||||
.PGdly = DW1000_CHANNEL_DEFAULT,
|
.PGdly = DW1000_TX_PGDELAY_DEFAULT,
|
||||||
.BOOSTNORM = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
|
.BOOSTNORM = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
|
||||||
.BOOSTP500 = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
|
.BOOSTP500 = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
|
||||||
.BOOSTP250 = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
|
.BOOSTP250 = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
|
||||||
|
|||||||
@ -65,8 +65,9 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#ifndef DW1000_CHANNEL_DEFAULT
|
#ifndef DW1000_CHANNEL_DEFAULT
|
||||||
#define DW1000_CHANNEL_DEFAULT 5
|
#define DW1000_CHANNEL_DEFAULT 5
|
||||||
#if DW1000_CHANNEL_DEFAULT > 7 || DW1000_CHANNEL_DEFAULT < 1
|
#if DW1000_CHANNEL_DEFAULT > 7 || DW1000_CHANNEL_DEFAULT < 1 || \
|
||||||
#error "DW1000_CHANNEL_DEFAULT must be 1..7"
|
DW1000CHANNEL_DEFAULT == 6
|
||||||
|
#error "DW1000_CHANNEL_DEFAULT must be 1..7, 6 excluded"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -84,8 +85,6 @@ extern "C" {
|
|||||||
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH4
|
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH4
|
||||||
#elif DW1000_CHANNEL_DEFAULT == 5
|
#elif DW1000_CHANNEL_DEFAULT == 5
|
||||||
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH5
|
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH5
|
||||||
#elif DW1000_CHANNEL_DEFAULT == 6
|
|
||||||
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH7
|
|
||||||
#elif DW1000_CHANNEL_DEFAULT == 7
|
#elif DW1000_CHANNEL_DEFAULT == 7
|
||||||
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH7
|
#define DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH7
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user