drivers: bluetooth: hci: use logic (and not pin value) kick/release CS
Use logic (and not pin value) for kick_cs() and release_cs() because potential pin value invertion (Active LOW) is handled in gpio_pin_set() Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
f1ad7ede9c
commit
8538b835f3
1 changed files with 2 additions and 2 deletions
|
@ -190,13 +190,13 @@ static int configure_cs(void)
|
|||
|
||||
static void kick_cs(void)
|
||||
{
|
||||
gpio_pin_set_dt(&bus.config.cs->gpio, 1);
|
||||
gpio_pin_set_dt(&bus.config.cs->gpio, 0);
|
||||
gpio_pin_set_dt(&bus.config.cs->gpio, 1);
|
||||
}
|
||||
|
||||
static void release_cs(void)
|
||||
{
|
||||
gpio_pin_set_dt(&bus.config.cs->gpio, 1);
|
||||
gpio_pin_set_dt(&bus.config.cs->gpio, 0);
|
||||
}
|
||||
|
||||
static bool irq_pin_high(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue