lpc176x: Add an enable_peripheral_clock() helper function
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
#define __LPC176X_INTERNAL_H
|
||||
// Local definitions for lpc176x code
|
||||
|
||||
#define PCLK_TIMER0 1
|
||||
#define PCLK_UART0 3
|
||||
#define PCLK_ADC 12
|
||||
void enable_peripheral_clock(uint32_t pclk);
|
||||
void gpio_peripheral(int bank, int pin, int func, int pullup);
|
||||
|
||||
#endif // internal.h
|
||||
|
||||
Reference in New Issue
Block a user