2015-09-25 01:57:06 +08:00
|
|
|
/* pinmux.h - the private pinmux driver header */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Intel Corporation
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-09-25 01:57:06 +08:00
|
|
|
*/
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_DRIVERS_PINMUX_PINMUX_H_
|
|
|
|
#define ZEPHYR_DRIVERS_PINMUX_PINMUX_H_
|
2015-09-25 01:57:06 +08:00
|
|
|
|
Introduce new sized integer typedefs
This is a start to move away from the C99 {u}int{8,16,32,64}_t types to
Zephyr defined u{8,16,32,64}_t and s{8,16,32,64}_t. This allows Zephyr
to define the sized types in a consistent manor across all the
architectures we support and not conflict with what various compilers
and libc might do with regards to the C99 types.
We introduce <zephyr/types.h> as part of this and have it include
<stdint.h> for now until we transition all the code away from the C99
types.
We go with u{8,16,32,64}_t and s{8,16,32,64}_t as there are some
existing variables defined u8 & u16 as well as to be consistent with
Zephyr naming conventions.
Jira: ZEP-2051
Change-Id: I451fed0623b029d65866622e478225dfab2c0ca8
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-19 23:32:08 +08:00
|
|
|
#include <zephyr/types.h>
|
2015-09-25 01:57:06 +08:00
|
|
|
#include <device.h>
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-09-25 01:57:06 +08:00
|
|
|
struct pin_config {
|
2017-04-21 23:03:20 +08:00
|
|
|
u8_t pin_num;
|
|
|
|
u32_t mode;
|
2015-09-25 01:57:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct pinmux_config {
|
2017-04-21 23:03:20 +08:00
|
|
|
u32_t base_address;
|
2015-09-25 01:57:06 +08:00
|
|
|
};
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_DRIVERS_PINMUX_PINMUX_H_ */
|