Revision 3106e8cc unittests/periphery-lld/src/ut_alld_DW1000_v1.c
unittests/periphery-lld/src/ut_alld_DW1000_v1.c | ||
---|---|---|
111 | 111 |
void reset_DW1000(void){ |
112 | 112 |
|
113 | 113 |
// Set the pin as output |
114 |
palSetPadMode(moduleGpioDw1000Reset.gpio->port, moduleGpioDw1000Reset.gpio->pad, APAL_GPIO_DIRECTION_OUTPUT);
|
|
114 |
palSetLineMode(moduleGpioDw1000Reset.gpio->line, APAL_GPIO_DIRECTION_OUTPUT);
|
|
115 | 115 |
|
116 | 116 |
//drive the RSTn pin low |
117 | 117 |
apalGpioWrite(moduleGpioDw1000Reset.gpio, APAL_GPIO_LOW); |
118 | 118 |
|
119 | 119 |
//put the pin back to tri-state ... as input |
120 |
// palSetPadMode(moduleGpioDw1000Reset.gpio->port, moduleGpioDw1000Reset.gpio->pad, APAL_GPIO_DIRECTION_INPUT); // TODO:
|
|
120 |
// palSetLineMode(moduleGpioDw1000Reset.gpio->line, APAL_GPIO_DIRECTION_INPUT); // TODO:
|
|
121 | 121 |
|
122 | 122 |
aosThdMSleep(2); |
123 | 123 |
} |
Also available in: Unified diff