| | |
| | | |
| | | //drive the RSTn pin low |
| | | // GPIO_ResetBits(DW1000_RSTn_GPIO, DW1000_RSTn); |
| | | deca_sleep(100); |
| | | delay_ms(1000); |
| | | //put the pin back to tri-state ... as input |
| | | GPIO_InitStruct.Pin = DW1000_RSTn; |
| | | GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; |
| | |
| | | GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; |
| | | HAL_GPIO_Init(DW1000_RSTn_GPIO, &GPIO_InitStruct); |
| | | |
| | | deca_sleep(2); |
| | | // deca_sleep(2); |
| | | // HAL_GPIO_WritePin(DW1000_RSTn_GPIO, DW1000_RSTn, GPIO_PIN_SET); |
| | | // GPIO_InitStruct.Pin = DW1000_RSTn; |
| | | // GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; |
| | | // GPIO_InitStruct.Pull = GPIO_NOPULL; |
| | | // GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; |
| | | // HAL_GPIO_Init(DW1000_RSTn_GPIO, &GPIO_InitStruct); |
| | | |
| | | // deca_sleep(2); |
| | | } |
| | | |
| | | //void DW_GPIO_Init(void) |