libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.

Port Drive Strength Enable Registers. More...

Collaboration diagram for DSR register mapping.:

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

Detailed Description

Port Drive Strength Enable Registers.

Macro Definition Documentation

◆ CCS_DSR

#define CCS_DSR (   base)    MMIO32(base + 0x54)

Definition at line 192 of file ccs.h.

◆ CCS_DSR_DS_VAL

#define CCS_DSR_DS_VAL (   pin,
  ds 
)    (((ds)&CCS_DSR_MASK) << ((pin)*4))

Definition at line 202 of file ccs.h.

◆ CCS_DSR_MASK

#define CCS_DSR_MASK   0x7

Definition at line 200 of file ccs.h.

◆ CCS_DSR_MASK_PIN

#define CCS_DSR_MASK_PIN (   pin)    (CCS_DSR_MASK << ((pin) * 4))

Definition at line 201 of file ccs.h.

◆ CCS_DSR_SCHMIDT_PIN

#define CCS_DSR_SCHMIDT_PIN (   pin)    (BIT0 << (((pin)*4) + 3))

Definition at line 203 of file ccs.h.

◆ CCS_PADSR

#define CCS_PADSR   CCS_DSR(CCS_PORTA)

Definition at line 193 of file ccs.h.

◆ CCS_PBDSR

#define CCS_PBDSR   CCS_DSR(CCS_PORTB)

Definition at line 194 of file ccs.h.

◆ CCS_PCDSR

#define CCS_PCDSR   CCS_DSR(CCS_PORTC)

Definition at line 195 of file ccs.h.

◆ CCS_PDDSR

#define CCS_PDDSR   CCS_DSR(CCS_PORTD)

Definition at line 196 of file ccs.h.

◆ CCS_PEDSR

#define CCS_PEDSR   CCS_DSR(CCS_PORTE)

Definition at line 197 of file ccs.h.

◆ CCS_PFDSR

#define CCS_PFDSR   CCS_DSR(CCS_PORTF)

Definition at line 198 of file ccs.h.

◆ CCS_PGDSR

#define CCS_PGDSR   CCS_DSR(CCS_PORTG)

Definition at line 199 of file ccs.h.

Enumeration Type Documentation

◆ ccs_drive_strength_t

Drive strength enumeration for type specificity.

Enumerator
CCS_DSR_DS_6MA 
CCS_DSR_DS_8MA 
CCS_DSR_DS_11MA 
CCS_DSR_DS_14MA 
CCS_DSR_DS_17MA 
CCS_DSR_DS_20MA 
CCS_DSR_DS_22MA 
CCS_DSR_DS_25MA 

Definition at line 206 of file ccs.h.