}
}
+/* IO config clock */
+/* To change GPIO config the io config block must be powered on */
+void io_config_clk_on(void)
+{
+ subsystem_power(LPC_SYS_ABH_CLK_CTRL_IO_CONFIG, 1);
+}
+void io_config_clk_off(void)
+{
+ subsystem_power(LPC_SYS_ABH_CLK_CTRL_IO_CONFIG, 0);
+}
+
adc_clk_update();
}
-/* IO config clock */
-/* To change GPIO config the io config block must be powered on */
-void io_config_clk_on(void)
-{
- subsystem_power(LPC_SYS_ABH_CLK_CTRL_IO_CONFIG, 1);
-}
-void io_config_clk_off(void)
-{
- subsystem_power(LPC_SYS_ABH_CLK_CTRL_IO_CONFIG, 0);
-}
/***************************************************************************** */
/* CLK Out */
/* Configure a set (array) of pins in a single loop */
void set_pins(const struct pio_config* pins);
+/* IO config clock */
+/* To change GPIO config the io config block must be powered on */
+void io_config_clk_on(void);
+void io_config_clk_off(void);
+
+
/****************************************************************************/
/* GPIO Pins */
#define LPC_GPIO_0_0 {0, 0, 0}
/* return current main clock in HZ */
uint32_t get_main_clock(void);
-/* IO config clock */
-/* To change GPIO config the io config block must be powered on */
-void io_config_clk_on(void);
-void io_config_clk_off(void);
/* This is mainly a debug feature, but can be used to provide a clock to an
* external peripheral */