Skip to content

Commit

Permalink
Fix GPIO RESET PIN for F4 Series
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaltd committed May 15, 2017
1 parent e7c8885 commit 23f7747
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions onewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ void ONEWIRE_DELAY(uint16_t time_us)
}
void ONEWIRE_LOW(OneWire_t *gp)
{
//HAL_GPIO_WritePin(gp->GPIOx,gp->GPIO_Pin,GPIO_PIN_RESET);
gp->GPIOx->BRR = gp->GPIO_Pin;
gp->GPIOx->BSRR = gp->GPIO_Pin<<16;
}
void ONEWIRE_HIGH(OneWire_t *gp)
{
//HAL_GPIO_WritePin(gp->GPIOx,gp->GPIO_Pin,GPIO_PIN_SET);
gp->GPIOx->BSRR = gp->GPIO_Pin;
}
void ONEWIRE_INPUT(OneWire_t *gp)
Expand Down

0 comments on commit 23f7747

Please sign in to comment.