PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
GPIO Defintions (GPIO)

Data Structures

struct  stc_gpio1pin_init
 

Macros

#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 ))
 

Typedefs

typedef struct stc_gpio1pin_init stc_gpio1pin_init_t
 

Detailed Description

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!

Macro Definition Documentation

#define Gpio1pin_Get (   p)    p##_GET

Definition at line 107 of file gpio.h.

#define Gpio1pin_Init (   p,
  settings 
)
Value:
do{ stc_gpio1pin_init_t __v__;__v__.bOutput=0u;\
__v__.bPullup=0u;__v__.bInitVal=0u;\
(settings);\
p##_INIT( __v__ ); }while(0)

Definition at line 95 of file gpio.h.

#define Gpio1pin_InitDirectionInput   (__v__.bOutput=0u)

Definition at line 100 of file gpio.h.

#define Gpio1pin_InitDirectionOutput   (__v__.bOutput=1u)

Definition at line 101 of file gpio.h.

#define Gpio1pin_InitIn (   p,
  settings 
)
Value:
__v__.bPullup=0u;__v__.bInitVal=0u;\
(settings);\
p##_INITIN(__v__); }while(0)

Definition at line 85 of file gpio.h.

#define Gpio1pin_InitOut (   p,
  settings 
)
Value:
__v__.bPullup=0u;__v__.bInitVal=0u;\
(settings);\
p##_INITOUT(__v__); }while(0)

Definition at line 90 of file gpio.h.

#define Gpio1pin_InitPullup (   v)    (__v__.bPullup=(v))

Definition at line 102 of file gpio.h.

#define Gpio1pin_InitVal (   v)    (__v__.bInitVal=(v))

Definition at line 103 of file gpio.h.

#define Gpio1pin_Put (   p,
  v 
)    p##_PUT(v)

Definition at line 108 of file gpio.h.

#define GPIO_EVALUATOR (   x,
  p,
  y 
)    GPIO_PASTER(x, p, y)

Definition at line 118 of file gpio.h.

#define GPIO_EVALUATOR2 (   x,
  p1,
  p2,
  y 
)    GPIO_PASTER2(x, p1, p2, y)

Definition at line 121 of file gpio.h.

#define GPIO_PASTER (   x,
  p,
  y 
)    x##p##y

Definition at line 117 of file gpio.h.

#define GPIO_PASTER2 (   x,
  p1,
  p2,
  y 
)    x(##p1##p2##,##y)

Definition at line 120 of file gpio.h.

#define GpioGet (   port)    GPIO_EVALUATOR(GPIO1PIN_, port, _GET)

Definition at line 123 of file gpio.h.

#define GpioInitIn (   port,
  value 
)    GPIO_EVALUATOR2(Gpio1pin_InitIn, GPIO1PIN_, port, Gpio1pin_InitPullup( value ))

Definition at line 127 of file gpio.h.

#define GpioInitOut (   port,
  pullup 
)    GPIO_EVALUATOR2(Gpio1pin_InitOut, GPIO1PIN_, port, Gpio1pin_InitVal( pullup ))

Definition at line 126 of file gpio.h.

#define GpioPut (   port,
  value 
)    GPIO_EVALUATOR(GPIO1PIN_, port, _PUT( value ))

Definition at line 124 of file gpio.h.

#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.

Typedef Documentation