|
| #define | Gpio1pin_InitIn(p, settings) |
| |
| #define | Gpio1pin_InitOut(p, settings) |
| |
| #define | Gpio1pin_Init(p, settings) |
| |
| #define | Gpio1pin_InitDirectionInput (__v__.bOutput=0u) |
| |
| #define | Gpio1pin_InitDirectionOutput (__v__.bOutput=1u) |
| |
| #define | Gpio1pin_InitPullup(v) (__v__.bPullup=(v)) |
| |
| #define | Gpio1pin_InitVal(v) (__v__.bInitVal=(v)) |
| |
| #define | Gpio1pin_Get(p) p##_GET |
| |
| #define | Gpio1pin_Put(p, v) p##_PUT(v) |
| |
| #define | PINRELOC_SET_EPFR(epfr, pos, width, value) |
| |
| #define | GPIO_PASTER(x, p, y) x##p##y |
| |
| #define | GPIO_EVALUATOR(x, p, y) GPIO_PASTER(x, p, y) |
| |
| #define | GPIO_PASTER2(x, p1, p2, y) x(##p1##p2##,##y) |
| |
| #define | GPIO_EVALUATOR2(x, p1, p2, y) GPIO_PASTER2(x, p1, p2, y) |
| |
| #define | GpioGet(port) GPIO_EVALUATOR(GPIO1PIN_, port, _GET) |
| |
| #define | GpioPut(port, value) GPIO_EVALUATOR(GPIO1PIN_, port, _PUT( value )) |
| |
| #define | GpioInitOut(port, pullup) GPIO_EVALUATOR2(Gpio1pin_InitOut, GPIO1PIN_, port, Gpio1pin_InitVal( pullup )) |
| |
| #define | GpioInitIn(port, value) GPIO_EVALUATOR2(Gpio1pin_InitIn, GPIO1PIN_, port, Gpio1pin_InitPullup( value )) |
| |
Definitions of GPIO and resource pin relocation
- Attention
- Carefully check in device documentation, whether SOUBOUT pin at SOUBOUT[_n] or TIOB0 pin should be output. TIOB0-SUBOUT is not provided by this driver!
- Internal LSYN connection is not provided by this driver!
| #define Gpio1pin_Get |
( |
|
p | ) |
p##_GET |
| #define Gpio1pin_Init |
( |
|
p, |
|
|
|
settings |
|
) |
| |
Value:
(settings);\
p##_INIT( __v__ ); }while(0)
Definition at line 95 of file gpio.h.
| #define Gpio1pin_InitDirectionInput (__v__.bOutput=0u) |
| #define Gpio1pin_InitDirectionOutput (__v__.bOutput=1u) |
| #define Gpio1pin_InitIn |
( |
|
p, |
|
|
|
settings |
|
) |
| |
Value:
(settings);\
p##_INITIN(__v__); }while(0)
Definition at line 85 of file gpio.h.
| #define Gpio1pin_InitOut |
( |
|
p, |
|
|
|
settings |
|
) |
| |
Value:
(settings);\
p##_INITOUT(__v__); }while(0)
Definition at line 90 of file gpio.h.
| #define Gpio1pin_InitPullup |
( |
|
v | ) |
(__v__.bPullup=(v)) |
| #define Gpio1pin_InitVal |
( |
|
v | ) |
(__v__.bInitVal=(v)) |
| #define Gpio1pin_Put |
( |
|
p, |
|
|
|
v |
|
) |
| p##_PUT(v) |
| #define GPIO_EVALUATOR |
( |
|
x, |
|
|
|
p, |
|
|
|
y |
|
) |
| GPIO_PASTER(x, p, y) |
| #define GPIO_EVALUATOR2 |
( |
|
x, |
|
|
|
p1, |
|
|
|
p2, |
|
|
|
y |
|
) |
| GPIO_PASTER2(x, p1, p2, y) |
| #define GPIO_PASTER |
( |
|
x, |
|
|
|
p, |
|
|
|
y |
|
) |
| x##p##y |
| #define GPIO_PASTER2 |
( |
|
x, |
|
|
|
p1, |
|
|
|
p2, |
|
|
|
y |
|
) |
| x(##p1##p2##,##y) |
| #define GpioPut |
( |
|
port, |
|
|
|
value |
|
) |
| GPIO_EVALUATOR(GPIO1PIN_, port, _PUT( value )) |
| #define PINRELOC_SET_EPFR |
( |
|
epfr, |
|
|
|
pos, |
|
|
|
width, |
|
|
|
value |
|
) |
| |
Value:((epfr) = ((epfr) & ~(((1u<<(width))-1u)<<(pos)) | \
((value) << (pos))))
Definition at line 110 of file gpio.h.