コード例 #1
0
ファイル: board-acer-t20.c プロジェクト: Dm47021/Holo-a200
int get_sku_id(void)
{
#ifdef CONFIG_MACH_PICASSO
	/* Wifi=5, 3G=3, DVT2=7 */
	return (get_pin_value(TEGRA_GPIO_PQ0, "PIN0") << 2) + \
		 (get_pin_value(TEGRA_GPIO_PQ3, "PIN1") << 1) + \
		 get_pin_value(TEGRA_GPIO_PQ6, "PIN2");
#endif
#ifdef CONFIG_MACH_VANGOGH
	/* Wifi=0, 3G=1 */
	return (get_pin_value(TEGRA_GPIO_PQ0,"PIN0"));
#endif
}
コード例 #2
0
ファイル: odininterface.cpp プロジェクト: eddiehung/dox-vtr
/*---------------------------------------------------------------------------------------------
 * (function: getOutputValue)
 *-------------------------------------------------------------------------------------------*/
int OdinInterface::getOutputValue(nnode_t* node, int outPin, int actstep)
{
    npin_t* pin = node->output_pins[outPin];
    int val = get_pin_value(pin,actstep);

    return val;
}
コード例 #3
0
/*
 * Leer las entradas del encoder
 */
void leer_entradas_encoder(uint8_t *entrada_1, uint8_t *entrada_2) {
  *entrada_1 = get_pin_value(2, 8);
  *entrada_2 = get_pin_value(3, 7);
}
コード例 #4
0
ファイル: lio_io.c プロジェクト: Siliconsoul/phatio
// value (get_pin <pinid>)
Item *lio_getpin(List *expression)
{
    const uint8_t pinid = eval_as_uint8(second(expression));
    return uint16_retval(get_pin_value(pinid));
}