コード例 #1
0
ファイル: QDebug_samd.c プロジェクト: AndreyMostovov/asf
/*! \brief This API initializes QDebug interface, including the low level
 * hardware interface (SPI, TWI, USART etc).
 * \note Must be called before using any other QDebug API.
 */
void QDebug_Init(void)
{
	touch_ret_t touch_ret = TOUCH_SUCCESS;

#if (defined QDEBUG_BITBANG_SPI)
	BitBangSPI_Master_Init();
#endif

	touch_ret = QDEBUG_GET_LIBINFO_FUNC(&QDEBUG_LIBINFO);
	if (touch_ret != TOUCH_SUCCESS) {
		while (1) {
		}
	}

	Init_Buffers();
}
コード例 #2
0
ファイル: qdebug.c プロジェクト: kerichsen/asf
/*============================================================================
Name    :   QDebug_Init
------------------------------------------------------------------------------
Purpose :   Initialize Debug Interface
Input   :   n/a
Output  :   n/a
Notes   :   Must be called before using any other QDebug API.
============================================================================*/
void QDebug_Init(void)
{
      int16_t touch_ret;

#if (defined QDEBUG_SPI)
      SPI_Master_Init();
#elif (defined QDEBUG_SERIAL)
      SERIAL_Init();
#endif

      touch_ret = QDEBUG_GET_LIBINFO_FUNC(&QDEBUG_LIBINFO);
      if(touch_ret != TOUCH_SUCCESS)
      {
        while(1);
      }

      Init_Buffers();
}