mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
Scale the bus speed within the peripheral instead of on the system bus as scaling on the system bus slows down general register access to the peripheral. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
14 lines
332 B
C
14 lines
332 B
C
#ifndef __LPC176X_INTERNAL_H
|
|
#define __LPC176X_INTERNAL_H
|
|
// Local definitions for lpc176x code
|
|
|
|
#define PCLK_TIMER0 1
|
|
#define PCLK_UART0 3
|
|
#define PCLK_ADC 12
|
|
#define PCLK_I2C1 19
|
|
#define PCLK_SSP0 21
|
|
void enable_peripheral_clock(uint32_t pclk);
|
|
void gpio_peripheral(int bank, int pin, int func, int pullup);
|
|
|
|
#endif // internal.h
|