libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Port Drive Strength Enable Registers. More...
Macros | |
#define | CCS_DSR(base) MMIO32(base + 0x54) |
#define | CCS_PADSR CCS_DSR(CCS_PORTA) |
#define | CCS_PBDSR CCS_DSR(CCS_PORTB) |
#define | CCS_PCDSR CCS_DSR(CCS_PORTC) |
#define | CCS_PDDSR CCS_DSR(CCS_PORTD) |
#define | CCS_PEDSR CCS_DSR(CCS_PORTE) |
#define | CCS_PFDSR CCS_DSR(CCS_PORTF) |
#define | CCS_PGDSR CCS_DSR(CCS_PORTG) |
#define | CCS_DSR_MASK 0x7 |
#define | CCS_DSR_MASK_PIN(pin) (CCS_DSR_MASK << ((pin) * 4)) |
#define | CCS_DSR_DS_VAL(pin, ds) (((ds)&CCS_DSR_MASK) << ((pin)*4)) |
#define | CCS_DSR_SCHMIDT_PIN(pin) (BIT0 << (((pin)*4) + 3)) |
Enumerations | |
enum | ccs_drive_strength_t { CCS_DSR_DS_6MA = 0x00 , CCS_DSR_DS_8MA = 0x01 , CCS_DSR_DS_11MA = 0x02 , CCS_DSR_DS_14MA = 0x03 , CCS_DSR_DS_17MA = 0x04 , CCS_DSR_DS_20MA = 0x05 , CCS_DSR_DS_22MA = 0x06 , CCS_DSR_DS_25MA = 0x07 } |
Drive strength enumeration for type specificity. More... | |
Port Drive Strength Enable Registers.
#define CCS_DSR_DS_VAL | ( | pin, | |
ds | |||
) | (((ds)&CCS_DSR_MASK) << ((pin)*4)) |
#define CCS_DSR_MASK_PIN | ( | pin | ) | (CCS_DSR_MASK << ((pin) * 4)) |
enum ccs_drive_strength_t |