Revision 3cee92c7 modules/NUCLEO-F103RB/module.c
modules/NUCLEO-F103RB/module.c | ||
---|---|---|
199 | 199 |
apalGpioWrite(moduleGpioSpiChipSelect.gpio, APAL_GPIO_LOW); |
200 | 200 |
} |
201 | 201 |
|
202 |
/*! @brief Manually reset the DW1000 module */ |
|
203 |
void reset_DW1000(void){ |
|
204 |
|
|
205 |
// Set the pin as output |
|
206 |
palSetLineMode(moduleGpioDw1000Reset.gpio->line, APAL_GPIO_DIRECTION_OUTPUT); |
|
207 |
|
|
208 |
//drive the RSTn pin low |
|
209 |
apalGpioWrite(moduleGpioDw1000Reset.gpio, APAL_GPIO_LOW); |
|
210 |
|
|
211 |
//put the pin back to tri-state ... as input |
|
212 |
// palSetLineMode(moduleGpioDw1000Reset.gpio->line, APAL_GPIO_DIRECTION_INPUT); // TODO: |
|
213 |
|
|
214 |
aosThdMSleep(2); |
|
215 |
} |
|
216 |
|
|
202 | 217 |
/*! @brief entry point to the IRQn event in DW1000 module |
203 | 218 |
* |
204 | 219 |
* */ |
Also available in: Unified diff