/*******************************************************************************
* Project:      Amped'RF Bluetooth
* File name:    GKI_alias.h
*
* Copyright (c) 2013 Amped'RF Inc. All rights reserved.
*******************************************************************************/
#ifndef _GKI_ALIAS_H
#define _GKI_ALIAS_H

//#define RTC_GetCounter()                123
//#define GPIO_Mode_AIN               0
//#define FLASH_ERROR_PG                  13
//#define FLASH_TIMEOUT                   14
//#define FLASH_ErasePage(x)              0
//#define WDG_PeriodValueConfig(x)
//#define WDG_CntRefresh()
//#define RCC_AHBPeriphClockCmd(x,y)
//#define RCC_AHBPeriph_CRC               0


#define PORT_SOURCE(x)  x
#define PORT_BASE(x)    x
#define PORT_MASK(x)    x

#define GPIO_BitWrite(x,y,z)            GKI_io_WriteBit(x, z)
#define GPIO_BitRead(x,y)               GKI_io_ReadBit(x)
#define GPIO_Config(x,y,z)              GKI_io_Config(x,z)
#define TM_SetBaud(x,y)                 GKI_uart_SetBaudrate(x,y)
#define TM_Reset()                      GKI_SystemReset()

#define SerialPutChar                   GKI_putchar
#define SerialPutString                 GKI_putstring


#define TM_SetupUart                    GKI_uart_Setup
//#define SU_SetCpuHz_HSI(x)              GKI_hsi_SetCpuHz(x)
//#define SU_SetCpuHz_HSE(x)              GKI_hse_SetCpuHz(x)
//#define TM_SWI_HCI                      GKI_SWI_HCI
//#define TM_SWI_MAIN                     GKI_SWI_MAIN

#define WDG_PeriodValueConfig(x)        GKI_wdg_PeriodValueConfig(x)
#define WDG_CntRefresh()                GKI_wdg_CntRefresh()



#define UART_BaudRateConfig(x,y)        GKI_uart_SetBaudrate(x,y)
#define TM_SetUartChrTimeout(x,y)       GKI_uart_SetCharTimeout(x,y)


#endif // _GKI_ALIAS_H
//------------------------------------------------------------------------------
