zephyr/dts/arm/silabs/gpio_gecko.h
Piotr Mienkowski a148e11e2a drivers: uart_gecko: use DT_<COMPAT>_<INSTANCE>_<PROP> defines
Use the new DT_<COMPAT>_<INSTANCE>_<PROP> defines to instantiate
devices. This commit adds also ability to define individual pin
locations on SoC series that support the feature. Definitions of GPIO
pins assigned to a given location have been moved from soc_pinmap.h file
to board DTS file.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-01-31 03:14:51 -06:00

25 lines
690 B
C

/*
* Copyright (c) 2019 Piotr Mienkowski
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef SILABS_GPIO_GECKO_H_
#define SILABS_GPIO_GECKO_H_
#define GECKO_PORT_A 0
#define GECKO_PORT_B 1
#define GECKO_PORT_C 2
#define GECKO_PORT_D 3
#define GECKO_PORT_E 4
#define GECKO_PORT_F 5
#define GECKO_PORT_G 6
#define GECKO_PORT_H 7
#define GECKO_PORT_I 8
#define GECKO_PORT_J 9
#define GECKO_PORT_K 10
#define GECKO_PIN(n) (n)
#define GECKO_LOCATION(n) (n)
#endif /* SILABS_GPIO_GECKO_H_ */