![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "chip.h"
Go to the source code of this file.
Data Structures | |
struct | LPC_SCU_Type |
System Control Unit register block. More... | |
Macros | |
#define | PORT_OFFSET 0x80 |
#define | PIN_OFFSET 0x04 |
#define | MD_PUP (0x0 << 3) |
#define | MD_BUK (0x1 << 3) |
#define | MD_PLN (0x2 << 3) |
#define | MD_PDN (0x3 << 3) |
#define | MD_EHS (0x1 << 5) |
#define | MD_EZI (0x1 << 6) |
#define | MD_ZI (0x1 << 7) |
#define | MD_EHD0 (0x1 << 8) |
#define | MD_EHD1 (0x1 << 8) |
#define | MD_PLN_FAST (MD_PLN | MD_EZI | MD_ZI | MD_EHS) |
#define | I2C0_STANDARD_FAST_MODE (1 << 3 | 1 << 11) |
#define | I2C0_FAST_MODE_PLUS (2 << 1 | 1 << 3 | 1 << 7 | 1 << 10 | 1 << 11) |
#define | FUNC0 0x0 /** Pin function 0 */ |
#define | FUNC1 0x1 /** Pin function 1 */ |
#define | FUNC2 0x2 /** Pin function 2 */ |
#define | FUNC3 0x3 /** Pin function 3 */ |
#define | FUNC4 0x4 /** Pin function 4 */ |
#define | FUNC5 0x5 /** Pin function 5 */ |
#define | FUNC6 0x6 /** Pin function 6 */ |
#define | FUNC7 0x7 /** Pin function 7 */ |
#define | LPC_SCU_PIN(LPC_SCU_BASE, po, pi) (*(volatile int *) ((LPC_SCU_BASE) + ((po) * 0x80) + ((pi) * 0x4)) |
#define | LPC_SCU_CLK(LPC_SCU_BASE, c) (*(volatile int *) ((LPC_SCU_BASE) +0xC00 + ((c) * 0x4))) |
#define | PINMUX_CLK 0xFF |
Functions | |
void | Chip_SCU_PinMux (uint8_t port, uint8_t pin, uint8_t mode, uint8_t func) |
Configure pin function. | |
void | Chip_SCU_GPIOIntPinSel (uint8_t PortSel, uint8_t PortNum, uint8_t PinNum) |
GPIO Interrupt Pin Select. | |
STATIC INLINE void | Chip_SCU_I2C0PinConfig (uint32_t I2C0Mode) |
I2C Pin Configuration. | |
STATIC INLINE void | Chip_SCU_ADC_Channel_Config (uint32_t ADC_ID, uint8_t channel) |
ADC Pin Configuration. | |