lpc176x: Add an enable_peripheral_clock() helper function

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-11-21 20:33:44 -05:00
parent 9ba94ded9e
commit 4bbd631086
4 changed files with 23 additions and 5 deletions

View File

@@ -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