2019-04-18 20:29:26 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Brett Witherspoon
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2020-03-24 21:34:46 +01:00
|
|
|
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_gpio
|
|
|
|
|
2019-04-18 20:29:26 +02:00
|
|
|
#include <zephyr/types.h>
|
2022-05-06 10:25:46 +02:00
|
|
|
#include <zephyr/sys/__assert.h>
|
|
|
|
#include <zephyr/device.h>
|
2019-04-18 20:29:26 +02:00
|
|
|
#include <errno.h>
|
2022-05-06 10:25:46 +02:00
|
|
|
#include <zephyr/drivers/gpio.h>
|
|
|
|
#include <zephyr/dt-bindings/gpio/ti-cc13xx-cc26xx-gpio.h>
|
2019-04-18 20:29:26 +02:00
|
|
|
|
|
|
|
#include <driverlib/gpio.h>
|
|
|
|
#include <driverlib/interrupt.h>
|
|
|
|
#include <driverlib/ioc.h>
|
|
|
|
#include <driverlib/prcm.h>
|
|
|
|
|
2019-09-02 22:40:02 +02:00
|
|
|
#include <inc/hw_aon_event.h>
|
|
|
|
|
|
|
|
#include <ti/drivers/Power.h>
|
|
|
|
#include <ti/drivers/power/PowerCC26XX.h>
|
2022-10-17 10:24:11 +02:00
|
|
|
#include <zephyr/irq.h>
|
2019-09-02 22:40:02 +02:00
|
|
|
|
2022-10-21 20:18:01 +02:00
|
|
|
#include <zephyr/drivers/gpio/gpio_utils.h>
|
2019-04-18 20:29:26 +02:00
|
|
|
|
2019-10-07 22:29:50 +02:00
|
|
|
/* bits 16-18 in iocfg registers correspond to interrupt settings */
|
|
|
|
#define IOCFG_INT_MASK 0x00070000
|
|
|
|
|
|
|
|
/* the rest are for general (non-interrupt) config */
|
|
|
|
#define IOCFG_GEN_MASK (~IOCFG_INT_MASK)
|
|
|
|
|
2019-04-18 20:29:26 +02:00
|
|
|
struct gpio_cc13xx_cc26xx_data {
|
2019-09-20 14:33:46 +02:00
|
|
|
/* gpio_driver_data needs to be first */
|
|
|
|
struct gpio_driver_data common;
|
2019-04-18 20:29:26 +02:00
|
|
|
sys_slist_t callbacks;
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_cc13xx_cc26xx_data gpio_cc13xx_cc26xx_data_0;
|
|
|
|
|
2019-12-03 19:13:44 +01:00
|
|
|
static const struct gpio_driver_config gpio_cc13xx_cc26xx_cfg_0 = {
|
2020-04-04 00:58:00 +02:00
|
|
|
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(0),
|
2019-12-03 19:13:44 +01:00
|
|
|
};
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_port_set_bits_raw(const struct device *port,
|
|
|
|
uint32_t mask);
|
|
|
|
static int gpio_cc13xx_cc26xx_port_clear_bits_raw(const struct device *port,
|
|
|
|
uint32_t mask);
|
2019-10-07 22:29:50 +02:00
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_config(const struct device *port,
|
2020-01-30 19:12:39 +01:00
|
|
|
gpio_pin_t pin,
|
|
|
|
gpio_flags_t flags)
|
2019-04-18 20:29:26 +02:00
|
|
|
{
|
2020-05-27 18:26:57 +02:00
|
|
|
uint32_t config = 0;
|
2019-04-18 20:29:26 +02:00
|
|
|
|
|
|
|
__ASSERT_NO_MSG(pin < NUM_IO_MAX);
|
|
|
|
|
2019-10-07 22:29:50 +02:00
|
|
|
switch (flags & (GPIO_INPUT | GPIO_OUTPUT)) {
|
|
|
|
case GPIO_INPUT:
|
|
|
|
config = IOC_INPUT_ENABLE;
|
|
|
|
break;
|
|
|
|
case GPIO_OUTPUT:
|
|
|
|
config = IOC_INPUT_DISABLE;
|
|
|
|
break;
|
|
|
|
case 0: /* disconnected */
|
|
|
|
IOCPortConfigureSet(pin, IOC_PORT_GPIO, IOC_NO_IOPULL);
|
|
|
|
GPIO_setOutputEnableDio(pin, GPIO_OUTPUT_DISABLE);
|
|
|
|
return 0;
|
|
|
|
default:
|
|
|
|
return -ENOTSUP;
|
|
|
|
}
|
2019-04-18 20:29:26 +02:00
|
|
|
|
2020-11-24 20:33:18 +01:00
|
|
|
config |= IOC_SLEW_DISABLE | IOC_NO_WAKE_UP;
|
2019-04-18 20:29:26 +02:00
|
|
|
|
2021-10-27 14:52:31 +02:00
|
|
|
config |= (flags & CC13XX_CC26XX_GPIO_DEBOUNCE) ?
|
|
|
|
IOC_HYST_ENABLE : IOC_HYST_DISABLE;
|
|
|
|
|
|
|
|
switch (flags & CC13XX_CC26XX_GPIO_DS_MASK) {
|
|
|
|
case CC13XX_CC26XX_GPIO_DS_DFLT:
|
2020-11-24 20:33:18 +01:00
|
|
|
config |= IOC_CURRENT_2MA | IOC_STRENGTH_AUTO;
|
|
|
|
break;
|
2021-10-27 14:52:31 +02:00
|
|
|
case CC13XX_CC26XX_GPIO_DS_ALT:
|
|
|
|
/*
|
|
|
|
* Not all GPIO support 8ma, but setting that bit will use the
|
|
|
|
* highest supported drive strength.
|
|
|
|
*/
|
2020-11-24 20:33:18 +01:00
|
|
|
config |= IOC_CURRENT_8MA | IOC_STRENGTH_MAX;
|
|
|
|
break;
|
2021-10-27 14:52:31 +02:00
|
|
|
default:
|
2020-11-24 20:33:18 +01:00
|
|
|
return -ENOTSUP;
|
|
|
|
}
|
|
|
|
|
2020-01-29 15:16:38 +01:00
|
|
|
switch (flags & (GPIO_PULL_UP | GPIO_PULL_DOWN)) {
|
|
|
|
case 0:
|
2019-04-18 20:29:26 +02:00
|
|
|
config |= IOC_NO_IOPULL;
|
|
|
|
break;
|
2020-01-29 15:16:38 +01:00
|
|
|
case GPIO_PULL_UP:
|
2019-04-18 20:29:26 +02:00
|
|
|
config |= IOC_IOPULL_UP;
|
|
|
|
break;
|
2020-01-29 15:16:38 +01:00
|
|
|
case GPIO_PULL_DOWN:
|
2019-04-18 20:29:26 +02:00
|
|
|
config |= IOC_IOPULL_DOWN;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
2019-10-07 22:29:50 +02:00
|
|
|
config |= IOCPortConfigureGet(pin) & IOCFG_INT_MASK;
|
2019-04-18 20:29:26 +02:00
|
|
|
IOCPortConfigureSet(pin, IOC_PORT_GPIO, config);
|
|
|
|
|
2019-10-07 22:29:50 +02:00
|
|
|
if ((flags & GPIO_OUTPUT) != 0) {
|
|
|
|
if ((flags & GPIO_OUTPUT_INIT_HIGH) != 0) {
|
|
|
|
gpio_cc13xx_cc26xx_port_set_bits_raw(port, BIT(pin));
|
|
|
|
} else if ((flags & GPIO_OUTPUT_INIT_LOW) != 0) {
|
|
|
|
gpio_cc13xx_cc26xx_port_clear_bits_raw(port, BIT(pin));
|
|
|
|
}
|
2019-04-18 20:29:26 +02:00
|
|
|
GPIO_setOutputEnableDio(pin, GPIO_OUTPUT_ENABLE);
|
2019-10-07 22:29:50 +02:00
|
|
|
} else {
|
|
|
|
GPIO_setOutputEnableDio(pin, GPIO_OUTPUT_DISABLE);
|
2019-04-18 20:29:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_port_get_raw(const struct device *port,
|
|
|
|
uint32_t *value)
|
2019-10-07 22:29:50 +02:00
|
|
|
{
|
|
|
|
__ASSERT_NO_MSG(value != NULL);
|
|
|
|
|
|
|
|
*value = GPIO_readMultiDio(GPIO_DIO_ALL_MASK);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_port_set_masked_raw(const struct device *port,
|
|
|
|
uint32_t mask,
|
|
|
|
uint32_t value)
|
2019-10-07 22:29:50 +02:00
|
|
|
{
|
|
|
|
GPIO_setMultiDio(mask & value);
|
|
|
|
GPIO_clearMultiDio(mask & ~value);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_port_set_bits_raw(const struct device *port,
|
|
|
|
uint32_t mask)
|
2019-10-07 22:29:50 +02:00
|
|
|
{
|
|
|
|
GPIO_setMultiDio(mask);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_port_clear_bits_raw(const struct device *port,
|
|
|
|
uint32_t mask)
|
2019-10-07 22:29:50 +02:00
|
|
|
{
|
|
|
|
GPIO_clearMultiDio(mask);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_port_toggle_bits(const struct device *port,
|
|
|
|
uint32_t mask)
|
2019-10-07 22:29:50 +02:00
|
|
|
{
|
|
|
|
GPIO_toggleMultiDio(mask);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_pin_interrupt_configure(const struct device *port,
|
|
|
|
gpio_pin_t pin,
|
|
|
|
enum gpio_int_mode mode,
|
|
|
|
enum gpio_int_trig trig)
|
2019-10-07 22:29:50 +02:00
|
|
|
{
|
2020-05-27 18:26:57 +02:00
|
|
|
uint32_t config = 0;
|
2019-10-07 22:29:50 +02:00
|
|
|
|
|
|
|
if (mode != GPIO_INT_MODE_DISABLED) {
|
|
|
|
if (mode == GPIO_INT_MODE_EDGE) {
|
|
|
|
if (trig == GPIO_INT_TRIG_BOTH) {
|
|
|
|
config |= IOC_BOTH_EDGES;
|
|
|
|
} else if (trig == GPIO_INT_TRIG_HIGH) {
|
|
|
|
config |= IOC_RISING_EDGE;
|
|
|
|
} else { /* GPIO_INT_TRIG_LOW */
|
|
|
|
config |= IOC_FALLING_EDGE;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
return -ENOTSUP;
|
|
|
|
}
|
|
|
|
|
|
|
|
config |= IOC_INT_ENABLE;
|
|
|
|
} else {
|
|
|
|
config |= IOC_INT_DISABLE | IOC_NO_EDGE;
|
|
|
|
}
|
|
|
|
|
|
|
|
config |= IOCPortConfigureGet(pin) & IOCFG_GEN_MASK;
|
|
|
|
IOCPortConfigureSet(pin, IOC_PORT_GPIO, config);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_manage_callback(const struct device *port,
|
2019-04-18 20:29:26 +02:00
|
|
|
struct gpio_callback *callback,
|
|
|
|
bool set)
|
|
|
|
{
|
2020-05-28 21:23:02 +02:00
|
|
|
struct gpio_cc13xx_cc26xx_data *data = port->data;
|
2019-04-18 20:29:26 +02:00
|
|
|
|
|
|
|
return gpio_manage_callback(&data->callbacks, callback, set);
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static uint32_t gpio_cc13xx_cc26xx_get_pending_int(const struct device *dev)
|
2019-04-18 20:29:26 +02:00
|
|
|
{
|
|
|
|
return GPIO_getEventMultiDio(GPIO_DIO_ALL_MASK);
|
|
|
|
}
|
|
|
|
|
isr: Normalize usage of device instance through ISR
The goal of this patch is to replace the 'void *' parameter by 'struct
device *' if they use such variable or just 'const void *' on all
relevant ISRs
This will avoid not-so-nice const qualifier tweaks when device instances
will be constant.
Note that only the ISR passed to IRQ_CONNECT are of interest here.
In order to do so, the script fix_isr.py below is necessary:
from pathlib import Path
import subprocess
import pickle
import mmap
import sys
import re
import os
cocci_template = """
@r_fix_isr_0
@
type ret_type;
identifier P;
identifier D;
@@
-ret_type <!fn!>(void *P)
+ret_type <!fn!>(const struct device *P)
{
...
(
const struct device *D = (const struct device *)P;
|
const struct device *D = P;
)
...
}
@r_fix_isr_1
@
type ret_type;
identifier P;
identifier D;
@@
-ret_type <!fn!>(void *P)
+ret_type <!fn!>(const struct device *P)
{
...
const struct device *D;
...
(
D = (const struct device *)P;
|
D = P;
)
...
}
@r_fix_isr_2
@
type ret_type;
identifier A;
@@
-ret_type <!fn!>(void *A)
+ret_type <!fn!>(const void *A)
{
...
}
@r_fix_isr_3
@
const struct device *D;
@@
-<!fn!>((void *)D);
+<!fn!>(D);
@r_fix_isr_4
@
type ret_type;
identifier D;
identifier P;
@@
-ret_type <!fn!>(const struct device *P)
+ret_type <!fn!>(const struct device *D)
{
...
(
-const struct device *D = (const struct device *)P;
|
-const struct device *D = P;
)
...
}
@r_fix_isr_5
@
type ret_type;
identifier D;
identifier P;
@@
-ret_type <!fn!>(const struct device *P)
+ret_type <!fn!>(const struct device *D)
{
...
-const struct device *D;
...
(
-D = (const struct device *)P;
|
-D = P;
)
...
}
"""
def find_isr(fn):
db = []
data = None
start = 0
try:
with open(fn, 'r+') as f:
data = str(mmap.mmap(f.fileno(), 0).read())
except Exception as e:
return db
while True:
isr = ""
irq = data.find('IRQ_CONNECT', start)
while irq > -1:
p = 1
arg = 1
p_o = data.find('(', irq)
if p_o < 0:
irq = -1
break;
pos = p_o + 1
while p > 0:
if data[pos] == ')':
p -= 1
elif data[pos] == '(':
p += 1
elif data[pos] == ',' and p == 1:
arg += 1
if arg == 3:
isr += data[pos]
pos += 1
isr = isr.strip(',\\n\\t ')
if isr not in db and len(isr) > 0:
db.append(isr)
start = pos
break
if irq < 0:
break
return db
def patch_isr(fn, isr_list):
if len(isr_list) <= 0:
return
for isr in isr_list:
tmplt = cocci_template.replace('<!fn!>', isr)
with open('/tmp/isr_fix.cocci', 'w') as f:
f.write(tmplt)
cmd = ['spatch', '--sp-file', '/tmp/isr_fix.cocci', '--in-place', fn]
subprocess.run(cmd)
def process_files(path):
if path.is_file() and path.suffix in ['.h', '.c']:
p = str(path.parent) + '/' + path.name
isr_list = find_isr(p)
patch_isr(p, isr_list)
elif path.is_dir():
for p in path.iterdir():
process_files(p)
if len(sys.argv) < 2:
print("You need to provide a dir/file path")
sys.exit(1)
process_files(Path(sys.argv[1]))
And is run: ./fix_isr.py <zephyr root directory>
Finally, some files needed manual fixes such.
Fixes #27399
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-06-17 14:58:56 +02:00
|
|
|
static void gpio_cc13xx_cc26xx_isr(const struct device *dev)
|
2019-04-18 20:29:26 +02:00
|
|
|
{
|
2020-05-28 21:23:02 +02:00
|
|
|
struct gpio_cc13xx_cc26xx_data *data = dev->data;
|
2019-04-18 20:29:26 +02:00
|
|
|
|
2020-05-27 18:26:57 +02:00
|
|
|
uint32_t status = GPIO_getEventMultiDio(GPIO_DIO_ALL_MASK);
|
2019-04-18 20:29:26 +02:00
|
|
|
|
|
|
|
GPIO_clearEventMultiDio(status);
|
|
|
|
|
2020-06-13 02:07:29 +02:00
|
|
|
gpio_fire_callbacks(&data->callbacks, dev, status);
|
2019-04-18 20:29:26 +02:00
|
|
|
}
|
|
|
|
|
2020-04-30 20:33:38 +02:00
|
|
|
static int gpio_cc13xx_cc26xx_init(const struct device *dev)
|
2019-04-18 20:29:26 +02:00
|
|
|
{
|
2020-09-02 00:31:40 +02:00
|
|
|
#ifdef CONFIG_PM
|
2019-09-02 22:40:02 +02:00
|
|
|
/* Set dependency on gpio resource to turn on power domains */
|
|
|
|
Power_setDependency(PowerCC26XX_PERIPH_GPIO);
|
|
|
|
#else
|
2019-04-18 20:29:26 +02:00
|
|
|
/* Enable peripheral power domain */
|
|
|
|
PRCMPowerDomainOn(PRCM_DOMAIN_PERIPH);
|
|
|
|
|
|
|
|
/* Enable GPIO peripheral */
|
|
|
|
PRCMPeripheralRunEnable(PRCM_PERIPH_GPIO);
|
|
|
|
|
|
|
|
/* Load PRCM settings */
|
|
|
|
PRCMLoadSet();
|
|
|
|
while (!PRCMLoadGet()) {
|
|
|
|
continue;
|
|
|
|
}
|
2019-09-02 22:40:02 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Enable edge detection on any pad as a wakeup source */
|
|
|
|
HWREG(AON_EVENT_BASE + AON_EVENT_O_MCUWUSEL) =
|
|
|
|
(HWREG(AON_EVENT_BASE + AON_EVENT_O_MCUWUSEL) &
|
|
|
|
(~AON_EVENT_MCUWUSEL_WU1_EV_M)) |
|
|
|
|
AON_EVENT_MCUWUSEL_WU1_EV_PAD;
|
2019-04-18 20:29:26 +02:00
|
|
|
|
|
|
|
/* Enable IRQ */
|
2020-03-24 21:34:46 +01:00
|
|
|
IRQ_CONNECT(DT_INST_IRQN(0),
|
|
|
|
DT_INST_IRQ(0, priority),
|
2020-12-10 17:20:42 +01:00
|
|
|
gpio_cc13xx_cc26xx_isr, DEVICE_DT_INST_GET(0), 0);
|
2020-03-24 21:34:46 +01:00
|
|
|
irq_enable(DT_INST_IRQN(0));
|
2019-04-18 20:29:26 +02:00
|
|
|
|
|
|
|
/* Peripheral should not be accessed until power domain is on. */
|
2022-06-02 13:08:56 +02:00
|
|
|
while (PRCMPowerDomainsAllOn(PRCM_DOMAIN_PERIPH) !=
|
2019-04-18 20:29:26 +02:00
|
|
|
PRCM_DOMAIN_POWER_ON) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-06-17 17:07:18 +02:00
|
|
|
#ifdef CONFIG_GPIO_GET_DIRECTION
|
|
|
|
static int gpio_cc13xx_cc26xx_port_get_direction(const struct device *port, gpio_port_pins_t map,
|
|
|
|
gpio_port_pins_t *inputs,
|
|
|
|
gpio_port_pins_t *outputs)
|
|
|
|
{
|
|
|
|
uint32_t pin;
|
|
|
|
gpio_port_pins_t ip = 0;
|
|
|
|
gpio_port_pins_t op = 0;
|
|
|
|
const struct gpio_driver_config *cfg = port->config;
|
|
|
|
|
|
|
|
map &= cfg->port_pin_mask;
|
|
|
|
|
|
|
|
if (inputs != NULL) {
|
|
|
|
for (pin = find_lsb_set(map) - 1; map;
|
|
|
|
map &= ~BIT(pin), pin = find_lsb_set(map) - 1) {
|
|
|
|
ip |= !!(IOCPortConfigureGet(pin) & IOC_INPUT_ENABLE) * BIT(pin);
|
|
|
|
}
|
|
|
|
|
|
|
|
*inputs = ip;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (outputs != NULL) {
|
|
|
|
for (pin = find_lsb_set(map) - 1; map;
|
|
|
|
map &= ~BIT(pin), pin = find_lsb_set(map) - 1) {
|
|
|
|
op |= GPIO_getOutputEnableDio(pin) * BIT(pin);
|
|
|
|
}
|
|
|
|
|
|
|
|
*outputs = op;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_GPIO_GET_DIRECTION */
|
|
|
|
|
2019-04-18 20:29:26 +02:00
|
|
|
static const struct gpio_driver_api gpio_cc13xx_cc26xx_driver_api = {
|
2020-01-30 19:12:39 +01:00
|
|
|
.pin_configure = gpio_cc13xx_cc26xx_config,
|
2019-10-07 22:29:50 +02:00
|
|
|
.port_get_raw = gpio_cc13xx_cc26xx_port_get_raw,
|
|
|
|
.port_set_masked_raw = gpio_cc13xx_cc26xx_port_set_masked_raw,
|
|
|
|
.port_set_bits_raw = gpio_cc13xx_cc26xx_port_set_bits_raw,
|
|
|
|
.port_clear_bits_raw = gpio_cc13xx_cc26xx_port_clear_bits_raw,
|
|
|
|
.port_toggle_bits = gpio_cc13xx_cc26xx_port_toggle_bits,
|
|
|
|
.pin_interrupt_configure = gpio_cc13xx_cc26xx_pin_interrupt_configure,
|
2019-04-18 20:29:26 +02:00
|
|
|
.manage_callback = gpio_cc13xx_cc26xx_manage_callback,
|
2022-06-17 17:07:18 +02:00
|
|
|
.get_pending_int = gpio_cc13xx_cc26xx_get_pending_int,
|
|
|
|
#ifdef CONFIG_GPIO_GET_DIRECTION
|
|
|
|
.port_get_direction = gpio_cc13xx_cc26xx_port_get_direction,
|
|
|
|
#endif /* CONFIG_GPIO_GET_DIRECTION */
|
2019-04-18 20:29:26 +02:00
|
|
|
};
|
|
|
|
|
2020-12-10 17:20:42 +01:00
|
|
|
DEVICE_DT_INST_DEFINE(0, gpio_cc13xx_cc26xx_init,
|
2021-04-28 10:55:48 +02:00
|
|
|
NULL, &gpio_cc13xx_cc26xx_data_0,
|
2019-12-03 19:13:44 +01:00
|
|
|
&gpio_cc13xx_cc26xx_cfg_0,
|
2021-12-04 22:00:59 +01:00
|
|
|
PRE_KERNEL_1, CONFIG_GPIO_INIT_PRIORITY,
|
2019-04-18 20:29:26 +02:00
|
|
|
&gpio_cc13xx_cc26xx_driver_api);
|