コード例 #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();
}
コード例 #3
0
ファイル: Model.cpp プロジェクト: TReed1104/SuperMetroidGL
void Mesh::Init_ShaderObjects(ShaderLocations shaderLocations)
{
	this->shaderLocations = shaderLocations;
	Init_Buffers();
	Init_VertexArray();
}
コード例 #4
0
ファイル: qdebug.c プロジェクト: AndreyMostovov/asf
/**
 * @brief   Initialize Debug Interface
 * @ingroup  QDebug-Remote
 * Must be called before the main loop
 */
void QDebug_Init(void)
{
      qt_get_library_sig(&lib_siginfo);
      Init_Buffers();     
}