|
50 | 50 | * @brief drive value used anytime radio is NOT in TX low power mode
|
51 | 51 | * @note override the default configuration of radio_driver.c
|
52 | 52 | */
|
53 |
| -#define SMPS_DRIVE_SETTING_DEFAULT SMPS_DRV_40 |
| 53 | +#ifndef SMPS_DRIVE_SETTING_DEFAULT |
| 54 | + #define SMPS_DRIVE_SETTING_DEFAULT SMPS_DRV_40 |
| 55 | +#endif |
54 | 56 |
|
55 | 57 | /**
|
56 | 58 | * @brief drive value used anytime radio is in TX low power mode
|
57 | 59 | * TX low power mode is the worst case because the PA sinks from SMPS
|
58 | 60 | * while in high power mode, current is sunk directly from the battery
|
59 | 61 | * @note override the default configuration of radio_driver.c
|
60 | 62 | */
|
61 |
| -#define SMPS_DRIVE_SETTING_MAX SMPS_DRV_60 |
| 63 | +#ifndef SMPS_DRIVE_SETTING_MAX |
| 64 | + #define SMPS_DRIVE_SETTING_MAX SMPS_DRV_60 |
| 65 | +#endif |
62 | 66 |
|
63 | 67 | /**
|
64 | 68 | * @brief Provides the frequency of the chip running on the radio and the frequency step
|
65 | 69 | * @remark These defines are used for computing the frequency divider to set the RF frequency
|
66 | 70 | * @note override the default configuration of radio_driver.c
|
67 | 71 | */
|
68 |
| -#define XTAL_FREQ ( 32000000UL ) |
| 72 | +#ifndef XTAL_FREQ |
| 73 | + #define XTAL_FREQ ( 32000000UL ) |
| 74 | +#endif |
69 | 75 |
|
70 | 76 | /**
|
71 | 77 | * @brief in XO mode, set internal capacitor (from 0x00 to 0x2F starting 11.2pF with 0.47pF steps)
|
72 | 78 | * @note override the default configuration of radio_driver.c
|
73 | 79 | */
|
74 |
| -#define XTAL_DEFAULT_CAP_VALUE ( 0x20UL ) |
| 80 | +#ifndef XTAL_DEFAULT_CAP_VALUE |
| 81 | + #define XTAL_DEFAULT_CAP_VALUE ( 0x20UL ) |
| 82 | +#endif /* XTAL_DEFAULT_CAP_VALUE */ |
75 | 83 |
|
76 | 84 | /**
|
77 | 85 | * @brief voltage of vdd tcxo.
|
78 | 86 | * @note override the default configuration of radio_driver.c
|
79 | 87 | */
|
80 |
| -#define TCXO_CTRL_VOLTAGE TCXO_CTRL_1_7V |
| 88 | +#ifndef TCXO_CTRL_VOLTAGE |
| 89 | + #define TCXO_CTRL_VOLTAGE TCXO_CTRL_1_7V |
| 90 | +#endif |
81 | 91 |
|
82 | 92 | /**
|
83 | 93 | * @brief Radio maximum wakeup time (in ms)
|
84 | 94 | * @note override the default configuration of radio_driver.c
|
85 | 95 | */
|
86 |
| -#define RF_WAKEUP_TIME ( 1UL ) |
| 96 | +#ifndef RF_WAKEUP_TIME |
| 97 | + #define RF_WAKEUP_TIME ( 1UL ) |
| 98 | +#endif |
87 | 99 |
|
88 | 100 | /**
|
89 | 101 | * @brief DCDC is enabled
|
90 | 102 | * @remark this define is only used if the DCDC is present on the board
|
91 | 103 | * (as indicated by RBI_IsDCDC())
|
92 | 104 | * @note override the default configuration of radio_driver.c
|
93 | 105 | */
|
94 |
| -#define DCDC_ENABLE ( 1UL ) |
| 106 | +#ifndef DCDC_ENABLE |
| 107 | + #define DCDC_ENABLE ( 1UL ) |
| 108 | +#endif |
95 | 109 |
|
96 | 110 | /**
|
97 | 111 | * @brief disable the Sigfox radio modulation
|
|
0 commit comments