[ADAPTER_GPIO_IDX_LED] = { "led", ADAPTER_GPIO_DIRECTION_OUTPUT, true, true, },
};
+static int adapter_config_khz(unsigned int khz);
+
bool is_adapter_initialized(void)
{
return adapter_config.adapter_initialized;
return is_adapter_initialized() ? adapter_driver->speed(speed) : ERROR_OK;
}
-int adapter_config_khz(unsigned int khz)
+/** Attempt to configure the adapter for the specified kHz. */
+static int adapter_config_khz(unsigned int khz)
{
LOG_DEBUG("handle adapter khz");
adapter_config.clock_mode = CLOCK_MODE_KHZ;
*/
int adapter_get_speed_readable(int *speed);
-/** Attempt to configure the adapter for the specified kHz. */
-int adapter_config_khz(unsigned int khz);
-
/**
* Attempt to enable RTCK/RCLK. If that fails, fallback to the
* specified frequency.