123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849 |
- /*!
- *******************************************************************************
- **
- ** \file gh_gpio.h
- **
- ** \brief These GPIO pins can be configured as I/O pins for other hardware modules..
- **
- ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
- **
- ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
- ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
- ** OMMISSIONS.
- **
- ** \note Do not modify this file as it is generated automatically.
- **
- ******************************************************************************/
- #ifndef _GH_GPIO_H
- #define _GH_GPIO_H
- #ifdef __LINUX__
- #include "reg4linux.h"
- #else
- #define FIO_ADDRESS(block,address) (address)
- #define FIO_MOFFSET(block,moffset) (moffset)
- #endif
- #ifndef __LINUX__
- #include "gtypes.h" /* global type definitions */
- #include "gh_lib_cfg.h" /* configuration */
- #endif
- #define GH_GPIO_ENABLE_DEBUG_PRINT 0
- #ifdef __LINUX__
- #define GH_GPIO_DEBUG_PRINT_FUNCTION printk
- #else
- #define GH_GPIO_DEBUG_PRINT_FUNCTION printf
- #endif
- #ifndef __LINUX__
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- #include <stdio.h>
- #endif
- #endif
- /* check configuration */
- #ifndef GH_INLINE_LEVEL
- #error "GH_INLINE_LEVEL is not defined!"
- #endif
- #if GH_INLINE_LEVEL > 2
- #error "GH_INLINE_LEVEL must be set 0, 1 or 2!"
- #endif
- #ifndef GH_INLINE
- #error "GH_INLINE is not defined!"
- #endif
- /* disable inlining for debugging */
- #ifdef DEBUG
- #undef GH_INLINE_LEVEL
- #define GH_INLINE_LEVEL 0
- #endif
- /*----------------------------------------------------------------------------*/
- /* registers */
- /*----------------------------------------------------------------------------*/
- #define REG_GPIO_IS_LOW FIO_ADDRESS(GPIO,0xA0009000) /* read/write */
- #define REG_GPIO_IS_HIGH FIO_ADDRESS(GPIO,0xA0009004) /* read/write */
- #define REG_GPIO_IBE_LOW FIO_ADDRESS(GPIO,0xA0009008) /* read/write */
- #define REG_GPIO_IBE_HIGH FIO_ADDRESS(GPIO,0xA000900C) /* read/write */
- #define REG_GPIO_IEV_LOW FIO_ADDRESS(GPIO,0xA0009010) /* read/write */
- #define REG_GPIO_IEV_HIGH FIO_ADDRESS(GPIO,0xA0009014) /* read/write */
- #define REG_GPIO_IE_LOW FIO_ADDRESS(GPIO,0xA0009018) /* read/write */
- #define REG_GPIO_IE_HIGH FIO_ADDRESS(GPIO,0xA000901C) /* read/write */
- #define REG_GPIO_IC_LOW FIO_ADDRESS(GPIO,0xA0009020) /* write */
- #define REG_GPIO_IC_HIGH FIO_ADDRESS(GPIO,0xA0009024) /* write */
- #define REG_GPIO_RIS_LOW FIO_ADDRESS(GPIO,0xA0009028) /* read */
- #define REG_GPIO_RIS_HIGH FIO_ADDRESS(GPIO,0xA000902C) /* read */
- #define REG_GPIO_MIS_LOW FIO_ADDRESS(GPIO,0xA0009030) /* read */
- #define REG_GPIO_MIS_HIGH FIO_ADDRESS(GPIO,0xA0009034) /* read */
- #define REG_GPIO_INT_EN FIO_ADDRESS(GPIO,0xA0009038) /* write */
- #define REG_GPIO_PER_SEL FIO_ADDRESS(GPIO,0xA000903C) /* read/write */
- #define REG_GPIO_DIN_LOW FIO_ADDRESS(GPIO,0xA0009040) /* read */
- #define REG_GPIO_DIN_HIGH FIO_ADDRESS(GPIO,0xA0009044) /* read */
- #define REG_GPIO_OUTPUT_CFG FIO_ADDRESS(GPIO,0xA0009100) /* write */
- #define REG_GPIO_INPUT_CFG FIO_ADDRESS(GPIO,0xA0009200) /* write */
- /*----------------------------------------------------------------------------*/
- /* bit group structures */
- /*----------------------------------------------------------------------------*/
- typedef union { /* GPIO_INT_EN */
- U32 all;
- struct {
- U32 int_en : 1;
- U32 : 31;
- } bitc;
- } GH_GPIO_INT_EN_S;
- typedef union { /* GPIO_PER_SEL */
- U32 all;
- struct {
- U32 enet_sel : 1;
- U32 i2s_sel : 1;
- U32 : 30;
- } bitc;
- } GH_GPIO_PER_SEL_S;
- typedef union { /* GPIO_OUTPUT_CFG */
- U32 all;
- struct {
- U32 out_sel : 7;
- U32 : 1;
- U32 oen_sel : 6;
- U32 out_invert : 1;
- U32 oen_invert : 1;
- U32 : 16;
- } bitc;
- } GH_GPIO_OUTPUT_CFG_S;
- typedef union { /* GPIO_INPUT_CFG */
- U32 all;
- struct {
- U32 in_sel : 6;
- U32 : 26;
- } bitc;
- } GH_GPIO_INPUT_CFG_S;
- /*----------------------------------------------------------------------------*/
- /* mirror variables */
- /*----------------------------------------------------------------------------*/
- extern U32 m_gpio_ic_low;
- extern U32 m_gpio_ic_high;
- extern GH_GPIO_INT_EN_S m_gpio_int_en;
- extern GH_GPIO_OUTPUT_CFG_S m_gpio_output_cfg[64];
- extern GH_GPIO_INPUT_CFG_S m_gpio_input_cfg[64];
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IS_LOW (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IS_LOW'. */
- void GH_GPIO_set_IS_LOW(U32 data);
- /*! \brief Reads the register 'GPIO_IS_LOW'. */
- U32 GH_GPIO_get_IS_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IS_LOW(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IS_LOW = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IS_LOW] <-- 0x%08x\n",
- REG_GPIO_IS_LOW,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IS_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IS_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IS_LOW] --> 0x%08x\n",
- REG_GPIO_IS_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IS_HIGH (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IS_HIGH'. */
- void GH_GPIO_set_IS_HIGH(U32 data);
- /*! \brief Reads the register 'GPIO_IS_HIGH'. */
- U32 GH_GPIO_get_IS_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IS_HIGH(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IS_HIGH = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IS_HIGH] <-- 0x%08x\n",
- REG_GPIO_IS_HIGH,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IS_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IS_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IS_HIGH] --> 0x%08x\n",
- REG_GPIO_IS_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IBE_LOW (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IBE_LOW'. */
- void GH_GPIO_set_IBE_LOW(U32 data);
- /*! \brief Reads the register 'GPIO_IBE_LOW'. */
- U32 GH_GPIO_get_IBE_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IBE_LOW(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IBE_LOW = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IBE_LOW] <-- 0x%08x\n",
- REG_GPIO_IBE_LOW,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IBE_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IBE_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IBE_LOW] --> 0x%08x\n",
- REG_GPIO_IBE_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IBE_HIGH (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IBE_HIGH'. */
- void GH_GPIO_set_IBE_HIGH(U32 data);
- /*! \brief Reads the register 'GPIO_IBE_HIGH'. */
- U32 GH_GPIO_get_IBE_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IBE_HIGH(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IBE_HIGH = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IBE_HIGH] <-- 0x%08x\n",
- REG_GPIO_IBE_HIGH,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IBE_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IBE_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IBE_HIGH] --> 0x%08x\n",
- REG_GPIO_IBE_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IEV_LOW (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IEV_LOW'. */
- void GH_GPIO_set_IEV_LOW(U32 data);
- /*! \brief Reads the register 'GPIO_IEV_LOW'. */
- U32 GH_GPIO_get_IEV_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IEV_LOW(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IEV_LOW = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IEV_LOW] <-- 0x%08x\n",
- REG_GPIO_IEV_LOW,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IEV_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IEV_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IEV_LOW] --> 0x%08x\n",
- REG_GPIO_IEV_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IEV_HIGH (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IEV_HIGH'. */
- void GH_GPIO_set_IEV_HIGH(U32 data);
- /*! \brief Reads the register 'GPIO_IEV_HIGH'. */
- U32 GH_GPIO_get_IEV_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IEV_HIGH(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IEV_HIGH = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IEV_HIGH] <-- 0x%08x\n",
- REG_GPIO_IEV_HIGH,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IEV_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IEV_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IEV_HIGH] --> 0x%08x\n",
- REG_GPIO_IEV_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IE_LOW (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IE_LOW'. */
- void GH_GPIO_set_IE_LOW(U32 data);
- /*! \brief Reads the register 'GPIO_IE_LOW'. */
- U32 GH_GPIO_get_IE_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IE_LOW(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IE_LOW = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IE_LOW] <-- 0x%08x\n",
- REG_GPIO_IE_LOW,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IE_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IE_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IE_LOW] --> 0x%08x\n",
- REG_GPIO_IE_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IE_HIGH (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_IE_HIGH'. */
- void GH_GPIO_set_IE_HIGH(U32 data);
- /*! \brief Reads the register 'GPIO_IE_HIGH'. */
- U32 GH_GPIO_get_IE_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_IE_HIGH(U32 data)
- {
- *(volatile U32 *)REG_GPIO_IE_HIGH = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IE_HIGH] <-- 0x%08x\n",
- REG_GPIO_IE_HIGH,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_IE_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_IE_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_IE_HIGH] --> 0x%08x\n",
- REG_GPIO_IE_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IC_LOW (write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL < 2
- /*! \brief Writes the register 'GPIO_IC_LOW'. */
- void GH_GPIO_set_IC_LOW(U32 data);
- /*! \brief Reads the mirror variable of the register 'GPIO_IC_LOW'. */
- U32 GH_GPIO_getm_IC_LOW(void);
- #else /* GH_INLINE_LEVEL < 2 */
- GH_INLINE void GH_GPIO_set_IC_LOW(U32 data)
- {
- m_gpio_ic_low = data;
- *(volatile U32 *)REG_GPIO_IC_LOW = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IC_LOW] <-- 0x%08x\n",
- REG_GPIO_IC_LOW,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_getm_IC_LOW(void)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_IC_LOW] --> 0x%08x\n",
- m_gpio_ic_low);
- #endif
- return m_gpio_ic_low;
- }
- #endif /* GH_INLINE_LEVEL < 2 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_IC_HIGH (write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL < 2
- /*! \brief Writes the register 'GPIO_IC_HIGH'. */
- void GH_GPIO_set_IC_HIGH(U32 data);
- /*! \brief Reads the mirror variable of the register 'GPIO_IC_HIGH'. */
- U32 GH_GPIO_getm_IC_HIGH(void);
- #else /* GH_INLINE_LEVEL < 2 */
- GH_INLINE void GH_GPIO_set_IC_HIGH(U32 data)
- {
- m_gpio_ic_high = data;
- *(volatile U32 *)REG_GPIO_IC_HIGH = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_IC_HIGH] <-- 0x%08x\n",
- REG_GPIO_IC_HIGH,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_getm_IC_HIGH(void)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_IC_HIGH] --> 0x%08x\n",
- m_gpio_ic_high);
- #endif
- return m_gpio_ic_high;
- }
- #endif /* GH_INLINE_LEVEL < 2 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_RIS_LOW (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'GPIO_RIS_LOW'. */
- U32 GH_GPIO_get_RIS_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_GPIO_get_RIS_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_RIS_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_RIS_LOW] --> 0x%08x\n",
- REG_GPIO_RIS_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_RIS_HIGH (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'GPIO_RIS_HIGH'. */
- U32 GH_GPIO_get_RIS_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_GPIO_get_RIS_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_RIS_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_RIS_HIGH] --> 0x%08x\n",
- REG_GPIO_RIS_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_MIS_LOW (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'GPIO_MIS_LOW'. */
- U32 GH_GPIO_get_MIS_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_GPIO_get_MIS_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_MIS_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_MIS_LOW] --> 0x%08x\n",
- REG_GPIO_MIS_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_MIS_HIGH (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'GPIO_MIS_HIGH'. */
- U32 GH_GPIO_get_MIS_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_GPIO_get_MIS_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_MIS_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_MIS_HIGH] --> 0x%08x\n",
- REG_GPIO_MIS_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_INT_EN (write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL < 2
- /*! \brief Writes the register 'GPIO_INT_EN'. */
- void GH_GPIO_set_INT_EN(U32 data);
- /*! \brief Reads the mirror variable of the register 'GPIO_INT_EN'. */
- U32 GH_GPIO_getm_INT_EN(void);
- /*! \brief Writes the bit group 'int_en' of register 'GPIO_INT_EN'. */
- void GH_GPIO_set_INT_EN_int_en(U8 data);
- /*! \brief Reads the bit group 'int_en' from the mirror variable of register 'GPIO_INT_EN'. */
- U8 GH_GPIO_getm_INT_EN_int_en(void);
- #else /* GH_INLINE_LEVEL < 2 */
- GH_INLINE void GH_GPIO_set_INT_EN(U32 data)
- {
- m_gpio_int_en.all = data;
- *(volatile U32 *)REG_GPIO_INT_EN = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_INT_EN] <-- 0x%08x\n",
- REG_GPIO_INT_EN,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_getm_INT_EN(void)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_INT_EN] --> 0x%08x\n",
- m_gpio_int_en.all);
- #endif
- return m_gpio_int_en.all;
- }
- GH_INLINE void GH_GPIO_set_INT_EN_int_en(U8 data)
- {
- m_gpio_int_en.bitc.int_en = data;
- *(volatile U32 *)REG_GPIO_INT_EN = m_gpio_int_en.all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_INT_EN_int_en] <-- 0x%08x\n",
- REG_GPIO_INT_EN,m_gpio_int_en.all,m_gpio_int_en.all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_getm_INT_EN_int_en(void)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_INT_EN_int_en] --> 0x%08x\n",
- m_gpio_int_en.bitc.int_en);
- #endif
- return m_gpio_int_en.bitc.int_en;
- }
- #endif /* GH_INLINE_LEVEL < 2 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_PER_SEL (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'GPIO_PER_SEL'. */
- void GH_GPIO_set_PER_SEL(U32 data);
- /*! \brief Reads the register 'GPIO_PER_SEL'. */
- U32 GH_GPIO_get_PER_SEL(void);
- /*! \brief Writes the bit group 'enet_sel' of register 'GPIO_PER_SEL'. */
- void GH_GPIO_set_PER_SEL_enet_sel(U8 data);
- /*! \brief Reads the bit group 'enet_sel' of register 'GPIO_PER_SEL'. */
- U8 GH_GPIO_get_PER_SEL_enet_sel(void);
- /*! \brief Writes the bit group 'i2s_sel' of register 'GPIO_PER_SEL'. */
- void GH_GPIO_set_PER_SEL_i2s_sel(U8 data);
- /*! \brief Reads the bit group 'i2s_sel' of register 'GPIO_PER_SEL'. */
- U8 GH_GPIO_get_PER_SEL_i2s_sel(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_GPIO_set_PER_SEL(U32 data)
- {
- *(volatile U32 *)REG_GPIO_PER_SEL = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_PER_SEL] <-- 0x%08x\n",
- REG_GPIO_PER_SEL,data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_get_PER_SEL(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_PER_SEL);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_PER_SEL] --> 0x%08x\n",
- REG_GPIO_PER_SEL,value);
- #endif
- return value;
- }
- GH_INLINE void GH_GPIO_set_PER_SEL_enet_sel(U8 data)
- {
- GH_GPIO_PER_SEL_S d;
- d.all = *(volatile U32 *)REG_GPIO_PER_SEL;
- d.bitc.enet_sel = data;
- *(volatile U32 *)REG_GPIO_PER_SEL = d.all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_PER_SEL_enet_sel] <-- 0x%08x\n",
- REG_GPIO_PER_SEL,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_get_PER_SEL_enet_sel(void)
- {
- GH_GPIO_PER_SEL_S tmp_value;
- U32 value = (*(volatile U32 *)REG_GPIO_PER_SEL);
- tmp_value.all = value;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_PER_SEL_enet_sel] --> 0x%08x\n",
- REG_GPIO_PER_SEL,value);
- #endif
- return tmp_value.bitc.enet_sel;
- }
- GH_INLINE void GH_GPIO_set_PER_SEL_i2s_sel(U8 data)
- {
- GH_GPIO_PER_SEL_S d;
- d.all = *(volatile U32 *)REG_GPIO_PER_SEL;
- d.bitc.i2s_sel = data;
- *(volatile U32 *)REG_GPIO_PER_SEL = d.all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_PER_SEL_i2s_sel] <-- 0x%08x\n",
- REG_GPIO_PER_SEL,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_get_PER_SEL_i2s_sel(void)
- {
- GH_GPIO_PER_SEL_S tmp_value;
- U32 value = (*(volatile U32 *)REG_GPIO_PER_SEL);
- tmp_value.all = value;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_PER_SEL_i2s_sel] --> 0x%08x\n",
- REG_GPIO_PER_SEL,value);
- #endif
- return tmp_value.bitc.i2s_sel;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_DIN_LOW (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'GPIO_DIN_LOW'. */
- U32 GH_GPIO_get_DIN_LOW(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_GPIO_get_DIN_LOW(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_DIN_LOW);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_DIN_LOW] --> 0x%08x\n",
- REG_GPIO_DIN_LOW,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_DIN_HIGH (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'GPIO_DIN_HIGH'. */
- U32 GH_GPIO_get_DIN_HIGH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_GPIO_get_DIN_HIGH(void)
- {
- U32 value = (*(volatile U32 *)REG_GPIO_DIN_HIGH);
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_GPIO_get_DIN_HIGH] --> 0x%08x\n",
- REG_GPIO_DIN_HIGH,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_OUTPUT_CFG (write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL < 2
- /*! \brief Writes the register 'GPIO_OUTPUT_CFG'. */
- void GH_GPIO_set_OUTPUT_CFG(U8 index, U32 data);
- /*! \brief Reads the mirror variable of the register 'GPIO_OUTPUT_CFG'. */
- U32 GH_GPIO_getm_OUTPUT_CFG(U8 index);
- /*! \brief Writes the bit group 'out_sel' of register 'GPIO_OUTPUT_CFG'. */
- void GH_GPIO_set_OUTPUT_CFG_out_sel(U8 index, U8 data);
- /*! \brief Reads the bit group 'out_sel' from the mirror variable of register 'GPIO_OUTPUT_CFG'. */
- U8 GH_GPIO_getm_OUTPUT_CFG_out_sel(U8 index);
- /*! \brief Writes the bit group 'oen_sel' of register 'GPIO_OUTPUT_CFG'. */
- void GH_GPIO_set_OUTPUT_CFG_oen_sel(U8 index, U8 data);
- /*! \brief Reads the bit group 'oen_sel' from the mirror variable of register 'GPIO_OUTPUT_CFG'. */
- U8 GH_GPIO_getm_OUTPUT_CFG_oen_sel(U8 index);
- /*! \brief Writes the bit group 'out_invert' of register 'GPIO_OUTPUT_CFG'. */
- void GH_GPIO_set_OUTPUT_CFG_out_invert(U8 index, U8 data);
- /*! \brief Reads the bit group 'out_invert' from the mirror variable of register 'GPIO_OUTPUT_CFG'. */
- U8 GH_GPIO_getm_OUTPUT_CFG_out_invert(U8 index);
- /*! \brief Writes the bit group 'oen_invert' of register 'GPIO_OUTPUT_CFG'. */
- void GH_GPIO_set_OUTPUT_CFG_oen_invert(U8 index, U8 data);
- /*! \brief Reads the bit group 'oen_invert' from the mirror variable of register 'GPIO_OUTPUT_CFG'. */
- U8 GH_GPIO_getm_OUTPUT_CFG_oen_invert(U8 index);
- #else /* GH_INLINE_LEVEL < 2 */
- GH_INLINE void GH_GPIO_set_OUTPUT_CFG(U8 index, U32 data)
- {
- m_gpio_output_cfg[index].all = data;
- *(volatile U32 *)(REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_OUTPUT_CFG] <-- 0x%08x\n",
- (REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_getm_OUTPUT_CFG(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_OUTPUT_CFG] --> 0x%08x\n",
- m_gpio_output_cfg[index].all);
- #endif
- return m_gpio_output_cfg[index].all;
- }
- GH_INLINE void GH_GPIO_set_OUTPUT_CFG_out_sel(U8 index, U8 data)
- {
- m_gpio_output_cfg[index].bitc.out_sel = data;
- *(volatile U32 *)(REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = m_gpio_output_cfg[index].all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_OUTPUT_CFG_out_sel] <-- 0x%08x\n",
- (REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),m_gpio_output_cfg[index].all,m_gpio_output_cfg[index].all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_getm_OUTPUT_CFG_out_sel(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_OUTPUT_CFG_out_sel] --> 0x%08x\n",
- m_gpio_output_cfg[index].bitc.out_sel);
- #endif
- return m_gpio_output_cfg[index].bitc.out_sel;
- }
- GH_INLINE void GH_GPIO_set_OUTPUT_CFG_oen_sel(U8 index, U8 data)
- {
- m_gpio_output_cfg[index].bitc.oen_sel = data;
- *(volatile U32 *)(REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = m_gpio_output_cfg[index].all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_OUTPUT_CFG_oen_sel] <-- 0x%08x\n",
- (REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),m_gpio_output_cfg[index].all,m_gpio_output_cfg[index].all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_getm_OUTPUT_CFG_oen_sel(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_OUTPUT_CFG_oen_sel] --> 0x%08x\n",
- m_gpio_output_cfg[index].bitc.oen_sel);
- #endif
- return m_gpio_output_cfg[index].bitc.oen_sel;
- }
- GH_INLINE void GH_GPIO_set_OUTPUT_CFG_out_invert(U8 index, U8 data)
- {
- m_gpio_output_cfg[index].bitc.out_invert = data;
- *(volatile U32 *)(REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = m_gpio_output_cfg[index].all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_OUTPUT_CFG_out_invert] <-- 0x%08x\n",
- (REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),m_gpio_output_cfg[index].all,m_gpio_output_cfg[index].all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_getm_OUTPUT_CFG_out_invert(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_OUTPUT_CFG_out_invert] --> 0x%08x\n",
- m_gpio_output_cfg[index].bitc.out_invert);
- #endif
- return m_gpio_output_cfg[index].bitc.out_invert;
- }
- GH_INLINE void GH_GPIO_set_OUTPUT_CFG_oen_invert(U8 index, U8 data)
- {
- m_gpio_output_cfg[index].bitc.oen_invert = data;
- *(volatile U32 *)(REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = m_gpio_output_cfg[index].all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_OUTPUT_CFG_oen_invert] <-- 0x%08x\n",
- (REG_GPIO_OUTPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),m_gpio_output_cfg[index].all,m_gpio_output_cfg[index].all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_getm_OUTPUT_CFG_oen_invert(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_OUTPUT_CFG_oen_invert] --> 0x%08x\n",
- m_gpio_output_cfg[index].bitc.oen_invert);
- #endif
- return m_gpio_output_cfg[index].bitc.oen_invert;
- }
- #endif /* GH_INLINE_LEVEL < 2 */
- /*----------------------------------------------------------------------------*/
- /* register GPIO_INPUT_CFG (write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL < 2
- /*! \brief Writes the register 'GPIO_INPUT_CFG'. */
- void GH_GPIO_set_INPUT_CFG(U8 index, U32 data);
- /*! \brief Reads the mirror variable of the register 'GPIO_INPUT_CFG'. */
- U32 GH_GPIO_getm_INPUT_CFG(U8 index);
- /*! \brief Writes the bit group 'in_sel' of register 'GPIO_INPUT_CFG'. */
- void GH_GPIO_set_INPUT_CFG_in_sel(U8 index, U8 data);
- /*! \brief Reads the bit group 'in_sel' from the mirror variable of register 'GPIO_INPUT_CFG'. */
- U8 GH_GPIO_getm_INPUT_CFG_in_sel(U8 index);
- #else /* GH_INLINE_LEVEL < 2 */
- GH_INLINE void GH_GPIO_set_INPUT_CFG(U8 index, U32 data)
- {
- m_gpio_input_cfg[index].all = data;
- *(volatile U32 *)(REG_GPIO_INPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = data;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_INPUT_CFG] <-- 0x%08x\n",
- (REG_GPIO_INPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),data,data);
- #endif
- }
- GH_INLINE U32 GH_GPIO_getm_INPUT_CFG(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_INPUT_CFG] --> 0x%08x\n",
- m_gpio_input_cfg[index].all);
- #endif
- return m_gpio_input_cfg[index].all;
- }
- GH_INLINE void GH_GPIO_set_INPUT_CFG_in_sel(U8 index, U8 data)
- {
- m_gpio_input_cfg[index].bitc.in_sel = data;
- *(volatile U32 *)(REG_GPIO_INPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)) = m_gpio_input_cfg[index].all;
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_GPIO_set_INPUT_CFG_in_sel] <-- 0x%08x\n",
- (REG_GPIO_INPUT_CFG + index * FIO_MOFFSET(GPIO,0x4)),m_gpio_input_cfg[index].all,m_gpio_input_cfg[index].all);
- #endif
- }
- GH_INLINE U8 GH_GPIO_getm_INPUT_CFG_in_sel(U8 index)
- {
- #if GH_GPIO_ENABLE_DEBUG_PRINT
- GH_GPIO_DEBUG_PRINT_FUNCTION( "[GH_GPIO_getm_INPUT_CFG_in_sel] --> 0x%08x\n",
- m_gpio_input_cfg[index].bitc.in_sel);
- #endif
- return m_gpio_input_cfg[index].bitc.in_sel;
- }
- #endif /* GH_INLINE_LEVEL < 2 */
- /*----------------------------------------------------------------------------*/
- /* init function */
- /*----------------------------------------------------------------------------*/
- /*! \brief Initialises the registers and mirror variables. */
- void GH_GPIO_init(void);
- #ifdef __cplusplus
- }
- #endif
- #endif /* _GH_GPIO_H */
- /*----------------------------------------------------------------------------*/
- /* end of file */
- /*----------------------------------------------------------------------------*/
|