git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8421 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
f9d0b6a227
commit
9d11e2e030
|
@ -47,7 +47,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="1" ></pin3>
|
||||
Alternate="1" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
|
|
@ -647,20 +647,20 @@
|
|||
*
|
||||
* PE0 - PIN0 (input pullup).
|
||||
* PE1 - PIN1 (input pullup).
|
||||
* PE2 - PIN2 (input floating).
|
||||
* PE2 - PIN2 (input pullup).
|
||||
* PE3 - PIN3 (input pullup).
|
||||
* PE4 - PIN4 (input floating).
|
||||
* PE5 - PIN5 (input floating).
|
||||
* PE6 - PIN6 (input floating).
|
||||
* PE7 - PIN7 (input floating).
|
||||
* PE8 - PIN8 (input floating).
|
||||
* PE9 - PIN9 (input floating).
|
||||
* PE10 - PIN10 (input floating).
|
||||
* PE11 - PIN11 (input floating).
|
||||
* PE12 - PIN12 (input floating).
|
||||
* PE13 - PIN13 (input floating).
|
||||
* PE14 - PIN14 (input floating).
|
||||
* PE15 - PIN15 (input floating).
|
||||
* PE4 - PIN4 (input pullup).
|
||||
* PE5 - PIN5 (input pullup).
|
||||
* PE6 - PIN6 (input pullup).
|
||||
* PE7 - PIN7 (input pullup).
|
||||
* PE8 - PIN8 (input pullup).
|
||||
* PE9 - PIN9 (input pullup).
|
||||
* PE10 - PIN10 (input pullup).
|
||||
* PE11 - PIN11 (input pullup).
|
||||
* PE12 - PIN12 (input pullup).
|
||||
* PE13 - PIN13 (input pullup).
|
||||
* PE14 - PIN14 (input pullup).
|
||||
* PE15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOE_MODER (PIN_MODE_INPUT(GPIOE_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOE_PIN1) | \
|
||||
|
@ -712,20 +712,20 @@
|
|||
PIN_OSPEED_100M(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_PUPDR (PIN_PUPDR_PULLUP(GPIOE_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_ODR (PIN_ODR_HIGH(GPIOE_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN2) | \
|
||||
|
@ -762,22 +762,22 @@
|
|||
/*
|
||||
* GPIOF setup:
|
||||
*
|
||||
* PF0 - PIN0 (input floating).
|
||||
* PF1 - PIN1 (input floating).
|
||||
* PF2 - PIN2 (input floating).
|
||||
* PF3 - PIN3 (input floating).
|
||||
* PF4 - PIN4 (input floating).
|
||||
* PF5 - PIN5 (input floating).
|
||||
* PF6 - PIN6 (input floating).
|
||||
* PF7 - PIN7 (input floating).
|
||||
* PF8 - PIN8 (input floating).
|
||||
* PF9 - PIN9 (input floating).
|
||||
* PF10 - PIN10 (input floating).
|
||||
* PF11 - PIN11 (input floating).
|
||||
* PF12 - PIN12 (input floating).
|
||||
* PF13 - PIN13 (input floating).
|
||||
* PF14 - PIN14 (input floating).
|
||||
* PF15 - PIN15 (input floating).
|
||||
* PF0 - PIN0 (input pullup).
|
||||
* PF1 - PIN1 (input pullup).
|
||||
* PF2 - PIN2 (input pullup).
|
||||
* PF3 - PIN3 (input pullup).
|
||||
* PF4 - PIN4 (input pullup).
|
||||
* PF5 - PIN5 (input pullup).
|
||||
* PF6 - PIN6 (input pullup).
|
||||
* PF7 - PIN7 (input pullup).
|
||||
* PF8 - PIN8 (input pullup).
|
||||
* PF9 - PIN9 (input pullup).
|
||||
* PF10 - PIN10 (input pullup).
|
||||
* PF11 - PIN11 (input pullup).
|
||||
* PF12 - PIN12 (input pullup).
|
||||
* PF13 - PIN13 (input pullup).
|
||||
* PF14 - PIN14 (input pullup).
|
||||
* PF15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOF_MODER (PIN_MODE_INPUT(GPIOF_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOF_PIN1) | \
|
||||
|
@ -827,22 +827,22 @@
|
|||
PIN_OSPEED_100M(GPIOF_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_FLOATING(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_PULLUP(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_ODR (PIN_ODR_HIGH(GPIOF_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN2) | \
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="7" ></pin3>
|
||||
Alternate="7" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
@ -557,7 +557,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -573,7 +573,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -581,7 +581,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -589,7 +589,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -597,7 +597,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -605,7 +605,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -613,7 +613,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -621,7 +621,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -629,7 +629,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -637,7 +637,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -645,7 +645,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -653,7 +653,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -661,7 +661,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOE>
|
||||
|
@ -671,7 +671,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -679,7 +679,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -687,7 +687,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -695,7 +695,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -703,7 +703,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -711,7 +711,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -719,7 +719,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -727,7 +727,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -735,7 +735,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -743,7 +743,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -751,7 +751,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -759,7 +759,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -767,7 +767,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -775,7 +775,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -783,7 +783,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -791,7 +791,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOF>
|
||||
|
|
|
@ -647,20 +647,20 @@
|
|||
*
|
||||
* PE0 - PIN0 (input pullup).
|
||||
* PE1 - PIN1 (input pullup).
|
||||
* PE2 - PIN2 (input floating).
|
||||
* PE2 - PIN2 (input pullup).
|
||||
* PE3 - PIN3 (input pullup).
|
||||
* PE4 - PIN4 (input floating).
|
||||
* PE5 - PIN5 (input floating).
|
||||
* PE6 - PIN6 (input floating).
|
||||
* PE7 - PIN7 (input floating).
|
||||
* PE8 - PIN8 (input floating).
|
||||
* PE9 - PIN9 (input floating).
|
||||
* PE10 - PIN10 (input floating).
|
||||
* PE11 - PIN11 (input floating).
|
||||
* PE12 - PIN12 (input floating).
|
||||
* PE13 - PIN13 (input floating).
|
||||
* PE14 - PIN14 (input floating).
|
||||
* PE15 - PIN15 (input floating).
|
||||
* PE4 - PIN4 (input pullup).
|
||||
* PE5 - PIN5 (input pullup).
|
||||
* PE6 - PIN6 (input pullup).
|
||||
* PE7 - PIN7 (input pullup).
|
||||
* PE8 - PIN8 (input pullup).
|
||||
* PE9 - PIN9 (input pullup).
|
||||
* PE10 - PIN10 (input pullup).
|
||||
* PE11 - PIN11 (input pullup).
|
||||
* PE12 - PIN12 (input pullup).
|
||||
* PE13 - PIN13 (input pullup).
|
||||
* PE14 - PIN14 (input pullup).
|
||||
* PE15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOE_MODER (PIN_MODE_INPUT(GPIOE_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOE_PIN1) | \
|
||||
|
@ -712,20 +712,20 @@
|
|||
PIN_OSPEED_100M(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_PUPDR (PIN_PUPDR_PULLUP(GPIOE_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_ODR (PIN_ODR_HIGH(GPIOE_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN2) | \
|
||||
|
@ -762,22 +762,22 @@
|
|||
/*
|
||||
* GPIOF setup:
|
||||
*
|
||||
* PF0 - PIN0 (input floating).
|
||||
* PF1 - PIN1 (input floating).
|
||||
* PF2 - PIN2 (input floating).
|
||||
* PF3 - PIN3 (input floating).
|
||||
* PF4 - PIN4 (input floating).
|
||||
* PF5 - PIN5 (input floating).
|
||||
* PF6 - PIN6 (input floating).
|
||||
* PF7 - PIN7 (input floating).
|
||||
* PF8 - PIN8 (input floating).
|
||||
* PF9 - PIN9 (input floating).
|
||||
* PF10 - PIN10 (input floating).
|
||||
* PF11 - PIN11 (input floating).
|
||||
* PF12 - PIN12 (input floating).
|
||||
* PF13 - PIN13 (input floating).
|
||||
* PF14 - PIN14 (input floating).
|
||||
* PF15 - PIN15 (input floating).
|
||||
* PF0 - PIN0 (input pullup).
|
||||
* PF1 - PIN1 (input pullup).
|
||||
* PF2 - PIN2 (input pullup).
|
||||
* PF3 - PIN3 (input pullup).
|
||||
* PF4 - PIN4 (input pullup).
|
||||
* PF5 - PIN5 (input pullup).
|
||||
* PF6 - PIN6 (input pullup).
|
||||
* PF7 - PIN7 (input pullup).
|
||||
* PF8 - PIN8 (input pullup).
|
||||
* PF9 - PIN9 (input pullup).
|
||||
* PF10 - PIN10 (input pullup).
|
||||
* PF11 - PIN11 (input pullup).
|
||||
* PF12 - PIN12 (input pullup).
|
||||
* PF13 - PIN13 (input pullup).
|
||||
* PF14 - PIN14 (input pullup).
|
||||
* PF15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOF_MODER (PIN_MODE_INPUT(GPIOF_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOF_PIN1) | \
|
||||
|
@ -827,22 +827,22 @@
|
|||
PIN_OSPEED_100M(GPIOF_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_FLOATING(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_PULLUP(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_ODR (PIN_ODR_HIGH(GPIOF_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN2) | \
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="7" ></pin3>
|
||||
Alternate="7" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
@ -557,7 +557,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -573,7 +573,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -581,7 +581,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -589,7 +589,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -597,7 +597,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -605,7 +605,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -613,7 +613,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -621,7 +621,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -629,7 +629,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -637,7 +637,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -645,7 +645,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -653,7 +653,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -661,7 +661,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOE>
|
||||
|
@ -671,7 +671,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -679,7 +679,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -687,7 +687,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -695,7 +695,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -703,7 +703,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -711,7 +711,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -719,7 +719,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -727,7 +727,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -735,7 +735,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -743,7 +743,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -751,7 +751,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -759,7 +759,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -767,7 +767,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -775,7 +775,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -783,7 +783,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -791,7 +791,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOF>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#define BOARD_ST_NUCLEO_F401RE
|
||||
#define BOARD_NAME "STMicroelectronics NUCLEO-F401RE"
|
||||
|
||||
|
||||
/*
|
||||
* Board oscillators-related settings.
|
||||
* NOTE: LSE not fitted.
|
||||
|
@ -703,20 +702,20 @@
|
|||
*
|
||||
* PE0 - PIN0 (input pullup).
|
||||
* PE1 - PIN1 (input pullup).
|
||||
* PE2 - PIN2 (input floating).
|
||||
* PE2 - PIN2 (input pullup).
|
||||
* PE3 - PIN3 (input pullup).
|
||||
* PE4 - PIN4 (input floating).
|
||||
* PE5 - PIN5 (input floating).
|
||||
* PE6 - PIN6 (input floating).
|
||||
* PE7 - PIN7 (input floating).
|
||||
* PE8 - PIN8 (input floating).
|
||||
* PE9 - PIN9 (input floating).
|
||||
* PE10 - PIN10 (input floating).
|
||||
* PE11 - PIN11 (input floating).
|
||||
* PE12 - PIN12 (input floating).
|
||||
* PE13 - PIN13 (input floating).
|
||||
* PE14 - PIN14 (input floating).
|
||||
* PE15 - PIN15 (input floating).
|
||||
* PE4 - PIN4 (input pullup).
|
||||
* PE5 - PIN5 (input pullup).
|
||||
* PE6 - PIN6 (input pullup).
|
||||
* PE7 - PIN7 (input pullup).
|
||||
* PE8 - PIN8 (input pullup).
|
||||
* PE9 - PIN9 (input pullup).
|
||||
* PE10 - PIN10 (input pullup).
|
||||
* PE11 - PIN11 (input pullup).
|
||||
* PE12 - PIN12 (input pullup).
|
||||
* PE13 - PIN13 (input pullup).
|
||||
* PE14 - PIN14 (input pullup).
|
||||
* PE15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOE_MODER (PIN_MODE_INPUT(GPIOE_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOE_PIN1) | \
|
||||
|
@ -768,20 +767,20 @@
|
|||
PIN_OSPEED_100M(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_PUPDR (PIN_PUPDR_PULLUP(GPIOE_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_ODR (PIN_ODR_HIGH(GPIOE_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN2) | \
|
||||
|
@ -818,22 +817,22 @@
|
|||
/*
|
||||
* GPIOF setup:
|
||||
*
|
||||
* PF0 - PIN0 (input floating).
|
||||
* PF1 - PIN1 (input floating).
|
||||
* PF2 - PIN2 (input floating).
|
||||
* PF3 - PIN3 (input floating).
|
||||
* PF4 - PIN4 (input floating).
|
||||
* PF5 - PIN5 (input floating).
|
||||
* PF6 - PIN6 (input floating).
|
||||
* PF7 - PIN7 (input floating).
|
||||
* PF8 - PIN8 (input floating).
|
||||
* PF9 - PIN9 (input floating).
|
||||
* PF10 - PIN10 (input floating).
|
||||
* PF11 - PIN11 (input floating).
|
||||
* PF12 - PIN12 (input floating).
|
||||
* PF13 - PIN13 (input floating).
|
||||
* PF14 - PIN14 (input floating).
|
||||
* PF15 - PIN15 (input floating).
|
||||
* PF0 - PIN0 (input pullup).
|
||||
* PF1 - PIN1 (input pullup).
|
||||
* PF2 - PIN2 (input pullup).
|
||||
* PF3 - PIN3 (input pullup).
|
||||
* PF4 - PIN4 (input pullup).
|
||||
* PF5 - PIN5 (input pullup).
|
||||
* PF6 - PIN6 (input pullup).
|
||||
* PF7 - PIN7 (input pullup).
|
||||
* PF8 - PIN8 (input pullup).
|
||||
* PF9 - PIN9 (input pullup).
|
||||
* PF10 - PIN10 (input pullup).
|
||||
* PF11 - PIN11 (input pullup).
|
||||
* PF12 - PIN12 (input pullup).
|
||||
* PF13 - PIN13 (input pullup).
|
||||
* PF14 - PIN14 (input pullup).
|
||||
* PF15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOF_MODER (PIN_MODE_INPUT(GPIOF_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOF_PIN1) | \
|
||||
|
@ -883,22 +882,22 @@
|
|||
PIN_OSPEED_100M(GPIOF_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_FLOATING(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_PULLUP(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_ODR (PIN_ODR_HIGH(GPIOF_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN2) | \
|
||||
|
@ -935,22 +934,22 @@
|
|||
/*
|
||||
* GPIOG setup:
|
||||
*
|
||||
* PG0 - PIN0 (input floating).
|
||||
* PG1 - PIN1 (input floating).
|
||||
* PG2 - PIN2 (input floating).
|
||||
* PG3 - PIN3 (input floating).
|
||||
* PG4 - PIN4 (input floating).
|
||||
* PG5 - PIN5 (input floating).
|
||||
* PG6 - PIN6 (input floating).
|
||||
* PG7 - PIN7 (input floating).
|
||||
* PG8 - PIN8 (input floating).
|
||||
* PG9 - PIN9 (input floating).
|
||||
* PG10 - PIN10 (input floating).
|
||||
* PG11 - PIN11 (input floating).
|
||||
* PG12 - PIN12 (input floating).
|
||||
* PG13 - PIN13 (input floating).
|
||||
* PG14 - PIN14 (input floating).
|
||||
* PG15 - PIN15 (input floating).
|
||||
* PG0 - PIN0 (input pullup).
|
||||
* PG1 - PIN1 (input pullup).
|
||||
* PG2 - PIN2 (input pullup).
|
||||
* PG3 - PIN3 (input pullup).
|
||||
* PG4 - PIN4 (input pullup).
|
||||
* PG5 - PIN5 (input pullup).
|
||||
* PG6 - PIN6 (input pullup).
|
||||
* PG7 - PIN7 (input pullup).
|
||||
* PG8 - PIN8 (input pullup).
|
||||
* PG9 - PIN9 (input pullup).
|
||||
* PG10 - PIN10 (input pullup).
|
||||
* PG11 - PIN11 (input pullup).
|
||||
* PG12 - PIN12 (input pullup).
|
||||
* PG13 - PIN13 (input pullup).
|
||||
* PG14 - PIN14 (input pullup).
|
||||
* PG15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOG_MODER (PIN_MODE_INPUT(GPIOG_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOG_PIN1) | \
|
||||
|
@ -1000,22 +999,22 @@
|
|||
PIN_OSPEED_100M(GPIOG_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOG_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOG_PIN15))
|
||||
#define VAL_GPIOG_PUPDR (PIN_PUPDR_FLOATING(GPIOG_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN15))
|
||||
#define VAL_GPIOG_PUPDR (PIN_PUPDR_PULLUP(GPIOG_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN15))
|
||||
#define VAL_GPIOG_ODR (PIN_ODR_HIGH(GPIOG_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOG_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOG_PIN2) | \
|
||||
|
@ -1054,20 +1053,20 @@
|
|||
*
|
||||
* PH0 - OSC_IN (input floating).
|
||||
* PH1 - OSC_OUT (input floating).
|
||||
* PH2 - PIN2 (input floating).
|
||||
* PH3 - PIN3 (input floating).
|
||||
* PH4 - PIN4 (input floating).
|
||||
* PH5 - PIN5 (input floating).
|
||||
* PH6 - PIN6 (input floating).
|
||||
* PH7 - PIN7 (input floating).
|
||||
* PH8 - PIN8 (input floating).
|
||||
* PH9 - PIN9 (input floating).
|
||||
* PH10 - PIN10 (input floating).
|
||||
* PH11 - PIN11 (input floating).
|
||||
* PH12 - PIN12 (input floating).
|
||||
* PH13 - PIN13 (input floating).
|
||||
* PH14 - PIN14 (input floating).
|
||||
* PH15 - PIN15 (input floating).
|
||||
* PH2 - PIN2 (input pullup).
|
||||
* PH3 - PIN3 (input pullup).
|
||||
* PH4 - PIN4 (input pullup).
|
||||
* PH5 - PIN5 (input pullup).
|
||||
* PH6 - PIN6 (input pullup).
|
||||
* PH7 - PIN7 (input pullup).
|
||||
* PH8 - PIN8 (input pullup).
|
||||
* PH9 - PIN9 (input pullup).
|
||||
* PH10 - PIN10 (input pullup).
|
||||
* PH11 - PIN11 (input pullup).
|
||||
* PH12 - PIN12 (input pullup).
|
||||
* PH13 - PIN13 (input pullup).
|
||||
* PH14 - PIN14 (input pullup).
|
||||
* PH15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOH_MODER (PIN_MODE_INPUT(GPIOH_OSC_IN) | \
|
||||
PIN_MODE_INPUT(GPIOH_OSC_OUT) | \
|
||||
|
@ -1119,20 +1118,20 @@
|
|||
PIN_OSPEED_100M(GPIOH_PIN15))
|
||||
#define VAL_GPIOH_PUPDR (PIN_PUPDR_FLOATING(GPIOH_OSC_IN) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_OSC_OUT) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN15))
|
||||
#define VAL_GPIOH_ODR (PIN_ODR_HIGH(GPIOH_OSC_IN) | \
|
||||
PIN_ODR_HIGH(GPIOH_OSC_OUT) | \
|
||||
PIN_ODR_HIGH(GPIOH_PIN2) | \
|
||||
|
@ -1169,22 +1168,22 @@
|
|||
/*
|
||||
* GPIOI setup:
|
||||
*
|
||||
* PI0 - PIN0 (input floating).
|
||||
* PI1 - PIN1 (input floating).
|
||||
* PI2 - PIN2 (input floating).
|
||||
* PI3 - PIN3 (input floating).
|
||||
* PI4 - PIN4 (input floating).
|
||||
* PI5 - PIN5 (input floating).
|
||||
* PI6 - PIN6 (input floating).
|
||||
* PI7 - PIN7 (input floating).
|
||||
* PI8 - PIN8 (input floating).
|
||||
* PI9 - PIN9 (input floating).
|
||||
* PI10 - PIN10 (input floating).
|
||||
* PI11 - PIN11 (input floating).
|
||||
* PI12 - PIN12 (input floating).
|
||||
* PI13 - PIN13 (input floating).
|
||||
* PI14 - PIN14 (input floating).
|
||||
* PI15 - PIN15 (input floating).
|
||||
* PI0 - PIN0 (input pullup).
|
||||
* PI1 - PIN1 (input pullup).
|
||||
* PI2 - PIN2 (input pullup).
|
||||
* PI3 - PIN3 (input pullup).
|
||||
* PI4 - PIN4 (input pullup).
|
||||
* PI5 - PIN5 (input pullup).
|
||||
* PI6 - PIN6 (input pullup).
|
||||
* PI7 - PIN7 (input pullup).
|
||||
* PI8 - PIN8 (input pullup).
|
||||
* PI9 - PIN9 (input pullup).
|
||||
* PI10 - PIN10 (input pullup).
|
||||
* PI11 - PIN11 (input pullup).
|
||||
* PI12 - PIN12 (input pullup).
|
||||
* PI13 - PIN13 (input pullup).
|
||||
* PI14 - PIN14 (input pullup).
|
||||
* PI15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOI_MODER (PIN_MODE_INPUT(GPIOI_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOI_PIN1) | \
|
||||
|
@ -1234,22 +1233,22 @@
|
|||
PIN_OSPEED_100M(GPIOI_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOI_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOI_PIN15))
|
||||
#define VAL_GPIOI_PUPDR (PIN_PUPDR_FLOATING(GPIOI_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN15))
|
||||
#define VAL_GPIOI_PUPDR (PIN_PUPDR_PULLUP(GPIOI_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN15))
|
||||
#define VAL_GPIOI_ODR (PIN_ODR_HIGH(GPIOI_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOI_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOI_PIN2) | \
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="7" ></pin3>
|
||||
Alternate="7" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
@ -561,7 +561,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -577,7 +577,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -585,7 +585,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -593,7 +593,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -601,7 +601,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -609,7 +609,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -617,7 +617,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -625,7 +625,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -633,7 +633,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -641,7 +641,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -649,7 +649,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -657,7 +657,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -665,7 +665,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOE>
|
||||
|
@ -675,7 +675,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -683,7 +683,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -691,7 +691,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -699,7 +699,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -707,7 +707,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -715,7 +715,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -723,7 +723,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -731,7 +731,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -739,7 +739,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -747,7 +747,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -755,7 +755,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -763,7 +763,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -771,7 +771,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -779,7 +779,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -787,7 +787,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -795,7 +795,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOF>
|
||||
|
@ -805,7 +805,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -813,7 +813,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -821,7 +821,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -829,7 +829,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -837,7 +837,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -845,7 +845,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -853,7 +853,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -861,7 +861,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -869,7 +869,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -877,7 +877,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -885,7 +885,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -893,7 +893,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -901,7 +901,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -909,7 +909,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -917,7 +917,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -925,7 +925,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOG>
|
||||
|
@ -951,15 +951,15 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" ></pin2>
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -967,7 +967,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -975,7 +975,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -983,7 +983,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -991,7 +991,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -999,7 +999,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -1007,7 +1007,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -1015,7 +1015,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -1023,7 +1023,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -1031,7 +1031,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -1039,7 +1039,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -1047,7 +1047,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -1055,7 +1055,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOH>
|
||||
|
@ -1065,7 +1065,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -1073,7 +1073,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -1081,7 +1081,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -1089,7 +1089,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -1097,7 +1097,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -1105,7 +1105,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -1113,7 +1113,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -1121,7 +1121,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -1129,7 +1129,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -1137,7 +1137,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -1145,7 +1145,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -1153,7 +1153,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -1161,7 +1161,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -1169,7 +1169,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -1177,7 +1177,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -1185,7 +1185,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOI>
|
||||
|
|
|
@ -308,7 +308,7 @@
|
|||
PIN_PUPDR_PULLUP(GPIOA_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOA_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOA_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOA_OTG_FS_DM) | \
|
||||
PIN_PUPDR_FLOATING(GPIOA_OTG_FS_DM) | \
|
||||
PIN_PUPDR_FLOATING(GPIOA_OTG_FS_DP) | \
|
||||
PIN_PUPDR_PULLUP(GPIOA_SWDIO) | \
|
||||
PIN_PUPDR_PULLDOWN(GPIOA_SWCLK) | \
|
||||
|
@ -702,20 +702,20 @@
|
|||
*
|
||||
* PE0 - PIN0 (input pullup).
|
||||
* PE1 - PIN1 (input pullup).
|
||||
* PE2 - PIN2 (input floating).
|
||||
* PE2 - PIN2 (input pullup).
|
||||
* PE3 - PIN3 (input pullup).
|
||||
* PE4 - PIN4 (input floating).
|
||||
* PE5 - PIN5 (input floating).
|
||||
* PE6 - PIN6 (input floating).
|
||||
* PE7 - PIN7 (input floating).
|
||||
* PE8 - PIN8 (input floating).
|
||||
* PE9 - PIN9 (input floating).
|
||||
* PE10 - PIN10 (input floating).
|
||||
* PE11 - PIN11 (input floating).
|
||||
* PE12 - PIN12 (input floating).
|
||||
* PE13 - PIN13 (input floating).
|
||||
* PE14 - PIN14 (input floating).
|
||||
* PE15 - PIN15 (input floating).
|
||||
* PE4 - PIN4 (input pullup).
|
||||
* PE5 - PIN5 (input pullup).
|
||||
* PE6 - PIN6 (input pullup).
|
||||
* PE7 - PIN7 (input pullup).
|
||||
* PE8 - PIN8 (input pullup).
|
||||
* PE9 - PIN9 (input pullup).
|
||||
* PE10 - PIN10 (input pullup).
|
||||
* PE11 - PIN11 (input pullup).
|
||||
* PE12 - PIN12 (input pullup).
|
||||
* PE13 - PIN13 (input pullup).
|
||||
* PE14 - PIN14 (input pullup).
|
||||
* PE15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOE_MODER (PIN_MODE_INPUT(GPIOE_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOE_PIN1) | \
|
||||
|
@ -767,20 +767,20 @@
|
|||
PIN_OSPEED_100M(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_PUPDR (PIN_PUPDR_PULLUP(GPIOE_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_ODR (PIN_ODR_HIGH(GPIOE_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN2) | \
|
||||
|
@ -817,22 +817,22 @@
|
|||
/*
|
||||
* GPIOF setup:
|
||||
*
|
||||
* PF0 - PIN0 (input floating).
|
||||
* PF1 - PIN1 (input floating).
|
||||
* PF2 - PIN2 (input floating).
|
||||
* PF3 - PIN3 (input floating).
|
||||
* PF4 - PIN4 (input floating).
|
||||
* PF5 - PIN5 (input floating).
|
||||
* PF6 - PIN6 (input floating).
|
||||
* PF7 - PIN7 (input floating).
|
||||
* PF8 - PIN8 (input floating).
|
||||
* PF9 - PIN9 (input floating).
|
||||
* PF10 - PIN10 (input floating).
|
||||
* PF11 - PIN11 (input floating).
|
||||
* PF12 - PIN12 (input floating).
|
||||
* PF13 - PIN13 (input floating).
|
||||
* PF14 - PIN14 (input floating).
|
||||
* PF15 - PIN15 (input floating).
|
||||
* PF0 - PIN0 (input pullup).
|
||||
* PF1 - PIN1 (input pullup).
|
||||
* PF2 - PIN2 (input pullup).
|
||||
* PF3 - PIN3 (input pullup).
|
||||
* PF4 - PIN4 (input pullup).
|
||||
* PF5 - PIN5 (input pullup).
|
||||
* PF6 - PIN6 (input pullup).
|
||||
* PF7 - PIN7 (input pullup).
|
||||
* PF8 - PIN8 (input pullup).
|
||||
* PF9 - PIN9 (input pullup).
|
||||
* PF10 - PIN10 (input pullup).
|
||||
* PF11 - PIN11 (input pullup).
|
||||
* PF12 - PIN12 (input pullup).
|
||||
* PF13 - PIN13 (input pullup).
|
||||
* PF14 - PIN14 (input pullup).
|
||||
* PF15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOF_MODER (PIN_MODE_INPUT(GPIOF_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOF_PIN1) | \
|
||||
|
@ -882,22 +882,22 @@
|
|||
PIN_OSPEED_100M(GPIOF_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_FLOATING(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_PULLUP(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_ODR (PIN_ODR_HIGH(GPIOF_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN2) | \
|
||||
|
@ -934,22 +934,22 @@
|
|||
/*
|
||||
* GPIOG setup:
|
||||
*
|
||||
* PG0 - PIN0 (input floating).
|
||||
* PG1 - PIN1 (input floating).
|
||||
* PG2 - PIN2 (input floating).
|
||||
* PG3 - PIN3 (input floating).
|
||||
* PG4 - PIN4 (input floating).
|
||||
* PG5 - PIN5 (input floating).
|
||||
* PG6 - PIN6 (input floating).
|
||||
* PG7 - PIN7 (input floating).
|
||||
* PG8 - PIN8 (input floating).
|
||||
* PG9 - PIN9 (input floating).
|
||||
* PG10 - PIN10 (input floating).
|
||||
* PG11 - PIN11 (input floating).
|
||||
* PG12 - PIN12 (input floating).
|
||||
* PG13 - PIN13 (input floating).
|
||||
* PG14 - PIN14 (input floating).
|
||||
* PG15 - PIN15 (input floating).
|
||||
* PG0 - PIN0 (input pullup).
|
||||
* PG1 - PIN1 (input pullup).
|
||||
* PG2 - PIN2 (input pullup).
|
||||
* PG3 - PIN3 (input pullup).
|
||||
* PG4 - PIN4 (input pullup).
|
||||
* PG5 - PIN5 (input pullup).
|
||||
* PG6 - PIN6 (input pullup).
|
||||
* PG7 - PIN7 (input pullup).
|
||||
* PG8 - PIN8 (input pullup).
|
||||
* PG9 - PIN9 (input pullup).
|
||||
* PG10 - PIN10 (input pullup).
|
||||
* PG11 - PIN11 (input pullup).
|
||||
* PG12 - PIN12 (input pullup).
|
||||
* PG13 - PIN13 (input pullup).
|
||||
* PG14 - PIN14 (input pullup).
|
||||
* PG15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOG_MODER (PIN_MODE_INPUT(GPIOG_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOG_PIN1) | \
|
||||
|
@ -999,22 +999,22 @@
|
|||
PIN_OSPEED_100M(GPIOG_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOG_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOG_PIN15))
|
||||
#define VAL_GPIOG_PUPDR (PIN_PUPDR_FLOATING(GPIOG_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOG_PIN15))
|
||||
#define VAL_GPIOG_PUPDR (PIN_PUPDR_PULLUP(GPIOG_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOG_PIN15))
|
||||
#define VAL_GPIOG_ODR (PIN_ODR_HIGH(GPIOG_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOG_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOG_PIN2) | \
|
||||
|
@ -1053,20 +1053,20 @@
|
|||
*
|
||||
* PH0 - OSC_IN (input floating).
|
||||
* PH1 - OSC_OUT (input floating).
|
||||
* PH2 - PIN2 (input floating).
|
||||
* PH3 - PIN3 (input floating).
|
||||
* PH4 - PIN4 (input floating).
|
||||
* PH5 - PIN5 (input floating).
|
||||
* PH6 - PIN6 (input floating).
|
||||
* PH7 - PIN7 (input floating).
|
||||
* PH8 - PIN8 (input floating).
|
||||
* PH9 - PIN9 (input floating).
|
||||
* PH10 - PIN10 (input floating).
|
||||
* PH11 - PIN11 (input floating).
|
||||
* PH12 - PIN12 (input floating).
|
||||
* PH13 - PIN13 (input floating).
|
||||
* PH14 - PIN14 (input floating).
|
||||
* PH15 - PIN15 (input floating).
|
||||
* PH2 - PIN2 (input pullup).
|
||||
* PH3 - PIN3 (input pullup).
|
||||
* PH4 - PIN4 (input pullup).
|
||||
* PH5 - PIN5 (input pullup).
|
||||
* PH6 - PIN6 (input pullup).
|
||||
* PH7 - PIN7 (input pullup).
|
||||
* PH8 - PIN8 (input pullup).
|
||||
* PH9 - PIN9 (input pullup).
|
||||
* PH10 - PIN10 (input pullup).
|
||||
* PH11 - PIN11 (input pullup).
|
||||
* PH12 - PIN12 (input pullup).
|
||||
* PH13 - PIN13 (input pullup).
|
||||
* PH14 - PIN14 (input pullup).
|
||||
* PH15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOH_MODER (PIN_MODE_INPUT(GPIOH_OSC_IN) | \
|
||||
PIN_MODE_INPUT(GPIOH_OSC_OUT) | \
|
||||
|
@ -1118,20 +1118,20 @@
|
|||
PIN_OSPEED_100M(GPIOH_PIN15))
|
||||
#define VAL_GPIOH_PUPDR (PIN_PUPDR_FLOATING(GPIOH_OSC_IN) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_OSC_OUT) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOH_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOH_PIN15))
|
||||
#define VAL_GPIOH_ODR (PIN_ODR_HIGH(GPIOH_OSC_IN) | \
|
||||
PIN_ODR_HIGH(GPIOH_OSC_OUT) | \
|
||||
PIN_ODR_HIGH(GPIOH_PIN2) | \
|
||||
|
@ -1168,22 +1168,22 @@
|
|||
/*
|
||||
* GPIOI setup:
|
||||
*
|
||||
* PI0 - PIN0 (input floating).
|
||||
* PI1 - PIN1 (input floating).
|
||||
* PI2 - PIN2 (input floating).
|
||||
* PI3 - PIN3 (input floating).
|
||||
* PI4 - PIN4 (input floating).
|
||||
* PI5 - PIN5 (input floating).
|
||||
* PI6 - PIN6 (input floating).
|
||||
* PI7 - PIN7 (input floating).
|
||||
* PI8 - PIN8 (input floating).
|
||||
* PI9 - PIN9 (input floating).
|
||||
* PI10 - PIN10 (input floating).
|
||||
* PI11 - PIN11 (input floating).
|
||||
* PI12 - PIN12 (input floating).
|
||||
* PI13 - PIN13 (input floating).
|
||||
* PI14 - PIN14 (input floating).
|
||||
* PI15 - PIN15 (input floating).
|
||||
* PI0 - PIN0 (input pullup).
|
||||
* PI1 - PIN1 (input pullup).
|
||||
* PI2 - PIN2 (input pullup).
|
||||
* PI3 - PIN3 (input pullup).
|
||||
* PI4 - PIN4 (input pullup).
|
||||
* PI5 - PIN5 (input pullup).
|
||||
* PI6 - PIN6 (input pullup).
|
||||
* PI7 - PIN7 (input pullup).
|
||||
* PI8 - PIN8 (input pullup).
|
||||
* PI9 - PIN9 (input pullup).
|
||||
* PI10 - PIN10 (input pullup).
|
||||
* PI11 - PIN11 (input pullup).
|
||||
* PI12 - PIN12 (input pullup).
|
||||
* PI13 - PIN13 (input pullup).
|
||||
* PI14 - PIN14 (input pullup).
|
||||
* PI15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOI_MODER (PIN_MODE_INPUT(GPIOI_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOI_PIN1) | \
|
||||
|
@ -1233,22 +1233,22 @@
|
|||
PIN_OSPEED_100M(GPIOI_PIN13) | \
|
||||
PIN_OSPEED_100M(GPIOI_PIN14) | \
|
||||
PIN_OSPEED_100M(GPIOI_PIN15))
|
||||
#define VAL_GPIOI_PUPDR (PIN_PUPDR_FLOATING(GPIOI_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOI_PIN15))
|
||||
#define VAL_GPIOI_PUPDR (PIN_PUPDR_PULLUP(GPIOI_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOI_PIN15))
|
||||
#define VAL_GPIOI_ODR (PIN_ODR_HIGH(GPIOI_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOI_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOI_PIN2) | \
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="7" ></pin3>
|
||||
Alternate="7" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
@ -561,7 +561,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -577,7 +577,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -585,7 +585,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -593,7 +593,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -601,7 +601,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -609,7 +609,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -617,7 +617,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -625,7 +625,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -633,7 +633,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -641,7 +641,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -649,7 +649,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -657,7 +657,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -665,7 +665,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOE>
|
||||
|
@ -675,7 +675,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -683,7 +683,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -691,7 +691,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -699,7 +699,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -707,7 +707,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -715,7 +715,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -723,7 +723,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -731,7 +731,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -739,7 +739,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -747,7 +747,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -755,7 +755,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -763,7 +763,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -771,7 +771,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -779,7 +779,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -787,7 +787,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -795,7 +795,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOF>
|
||||
|
@ -805,7 +805,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -813,7 +813,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -821,7 +821,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -829,7 +829,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -837,7 +837,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -845,7 +845,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -853,7 +853,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -861,7 +861,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -869,7 +869,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -877,7 +877,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -885,7 +885,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -893,7 +893,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -901,7 +901,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -909,7 +909,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -917,7 +917,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -925,7 +925,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOG>
|
||||
|
@ -951,15 +951,15 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" ></pin2>
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -967,7 +967,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -975,7 +975,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -983,7 +983,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -991,7 +991,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -999,7 +999,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -1007,7 +1007,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -1015,7 +1015,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -1023,7 +1023,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -1031,7 +1031,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -1039,7 +1039,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -1047,7 +1047,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -1055,7 +1055,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOH>
|
||||
|
@ -1065,7 +1065,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -1073,7 +1073,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -1081,7 +1081,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -1089,7 +1089,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -1097,7 +1097,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -1105,7 +1105,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -1113,7 +1113,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -1121,7 +1121,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -1129,7 +1129,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -1137,7 +1137,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -1145,7 +1145,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -1153,7 +1153,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -1161,7 +1161,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -1169,7 +1169,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -1177,7 +1177,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -1185,7 +1185,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOI>
|
||||
|
|
|
@ -543,7 +543,7 @@
|
|||
Resistor="Floating"
|
||||
Level="High"
|
||||
Mode="Input"
|
||||
Alternate="0"></pin0>
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
ID="OSC_OUT"
|
||||
Type="PushPull"
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="7" ></pin3>
|
||||
Alternate="7" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
@ -937,7 +937,7 @@
|
|||
Resistor="Floating"
|
||||
Level="High"
|
||||
Mode="Input"
|
||||
Alternate="0"></pin0>
|
||||
Alternate="0"/>
|
||||
<pin1
|
||||
ID="OSC_OUT"
|
||||
Type="PushPull"
|
||||
|
|
|
@ -345,7 +345,7 @@
|
|||
* PB10 - PIN10 (input pullup).
|
||||
* PB11 - PIN11 (input pullup).
|
||||
* PB12 - PIN12 (input pullup).
|
||||
* PB13 - PIN13 (input floating).
|
||||
* PB13 - PIN13 (input pullup).
|
||||
* PB14 - PIN14 (input pullup).
|
||||
* PB15 - PIN15 (input pullup).
|
||||
*/
|
||||
|
@ -410,7 +410,7 @@
|
|||
PIN_PUPDR_PULLUP(GPIOB_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOB_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOB_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOB_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOB_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOB_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOB_PIN15))
|
||||
#define VAL_GPIOB_ODR (PIN_ODR_HIGH(GPIOB_PIN0) | \
|
||||
|
@ -685,20 +685,20 @@
|
|||
*
|
||||
* PE0 - PIN0 (input pullup).
|
||||
* PE1 - PIN1 (input pullup).
|
||||
* PE2 - PIN2 (input floating).
|
||||
* PE2 - PIN2 (input pullup).
|
||||
* PE3 - PIN3 (input pullup).
|
||||
* PE4 - PIN4 (input floating).
|
||||
* PE5 - PIN5 (input floating).
|
||||
* PE6 - PIN6 (input floating).
|
||||
* PE7 - PIN7 (input floating).
|
||||
* PE8 - PIN8 (input floating).
|
||||
* PE9 - PIN9 (input floating).
|
||||
* PE10 - PIN10 (input floating).
|
||||
* PE11 - PIN11 (input floating).
|
||||
* PE12 - PIN12 (input floating).
|
||||
* PE13 - PIN13 (input floating).
|
||||
* PE14 - PIN14 (input floating).
|
||||
* PE15 - PIN15 (input floating).
|
||||
* PE4 - PIN4 (input pullup).
|
||||
* PE5 - PIN5 (input pullup).
|
||||
* PE6 - PIN6 (input pullup).
|
||||
* PE7 - PIN7 (input pullup).
|
||||
* PE8 - PIN8 (input pullup).
|
||||
* PE9 - PIN9 (input pullup).
|
||||
* PE10 - PIN10 (input pullup).
|
||||
* PE11 - PIN11 (input pullup).
|
||||
* PE12 - PIN12 (input pullup).
|
||||
* PE13 - PIN13 (input pullup).
|
||||
* PE14 - PIN14 (input pullup).
|
||||
* PE15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOE_MODER (PIN_MODE_INPUT(GPIOE_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOE_PIN1) | \
|
||||
|
@ -750,20 +750,20 @@
|
|||
PIN_OSPEED_HS(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_PUPDR (PIN_PUPDR_PULLUP(GPIOE_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOE_PIN15))
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOE_PIN15))
|
||||
#define VAL_GPIOE_ODR (PIN_ODR_HIGH(GPIOE_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOE_PIN2) | \
|
||||
|
@ -800,22 +800,22 @@
|
|||
/*
|
||||
* GPIOF setup:
|
||||
*
|
||||
* PF0 - PIN0 (input floating).
|
||||
* PF1 - PIN1 (input floating).
|
||||
* PF2 - PIN2 (input floating).
|
||||
* PF3 - PIN3 (input floating).
|
||||
* PF4 - PIN4 (input floating).
|
||||
* PF5 - PIN5 (input floating).
|
||||
* PF6 - PIN6 (input floating).
|
||||
* PF7 - PIN7 (input floating).
|
||||
* PF8 - PIN8 (input floating).
|
||||
* PF9 - PIN9 (input floating).
|
||||
* PF10 - PIN10 (input floating).
|
||||
* PF11 - PIN11 (input floating).
|
||||
* PF12 - PIN12 (input floating).
|
||||
* PF13 - PIN13 (input floating).
|
||||
* PF14 - PIN14 (input floating).
|
||||
* PF15 - PIN15 (input floating).
|
||||
* PF0 - PIN0 (input pullup).
|
||||
* PF1 - PIN1 (input pullup).
|
||||
* PF2 - PIN2 (input pullup).
|
||||
* PF3 - PIN3 (input pullup).
|
||||
* PF4 - PIN4 (input pullup).
|
||||
* PF5 - PIN5 (input pullup).
|
||||
* PF6 - PIN6 (input pullup).
|
||||
* PF7 - PIN7 (input pullup).
|
||||
* PF8 - PIN8 (input pullup).
|
||||
* PF9 - PIN9 (input pullup).
|
||||
* PF10 - PIN10 (input pullup).
|
||||
* PF11 - PIN11 (input pullup).
|
||||
* PF12 - PIN12 (input pullup).
|
||||
* PF13 - PIN13 (input pullup).
|
||||
* PF14 - PIN14 (input pullup).
|
||||
* PF15 - PIN15 (input pullup).
|
||||
*/
|
||||
#define VAL_GPIOF_MODER (PIN_MODE_INPUT(GPIOF_PIN0) | \
|
||||
PIN_MODE_INPUT(GPIOF_PIN1) | \
|
||||
|
@ -865,22 +865,22 @@
|
|||
PIN_OSPEED_HS(GPIOF_PIN13) | \
|
||||
PIN_OSPEED_HS(GPIOF_PIN14) | \
|
||||
PIN_OSPEED_HS(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_FLOATING(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_FLOATING(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_PUPDR (PIN_PUPDR_PULLUP(GPIOF_PIN0) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN1) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN2) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN3) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN4) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN5) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN6) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN7) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN8) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN9) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN10) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN11) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN12) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN13) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN14) | \
|
||||
PIN_PUPDR_PULLUP(GPIOF_PIN15))
|
||||
#define VAL_GPIOF_ODR (PIN_ODR_HIGH(GPIOF_PIN0) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN1) | \
|
||||
PIN_ODR_HIGH(GPIOF_PIN2) | \
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
Speed="High"
|
||||
Resistor="Floating"
|
||||
Mode="Alternate"
|
||||
Alternate="7" ></pin3>
|
||||
Alternate="7" />
|
||||
<pin4
|
||||
ID=""
|
||||
Type="PushPull"
|
||||
|
@ -260,7 +260,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -562,7 +562,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -578,7 +578,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -586,7 +586,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -594,7 +594,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -602,7 +602,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -610,7 +610,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -618,7 +618,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -626,7 +626,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -634,7 +634,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -642,7 +642,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -650,7 +650,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -658,7 +658,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -666,7 +666,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOE>
|
||||
|
@ -676,7 +676,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
|
@ -684,7 +684,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin2
|
||||
|
@ -692,7 +692,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin3
|
||||
|
@ -700,7 +700,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin4
|
||||
|
@ -708,7 +708,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin5
|
||||
|
@ -716,7 +716,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin6
|
||||
|
@ -724,7 +724,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin7
|
||||
|
@ -732,7 +732,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin8
|
||||
|
@ -740,7 +740,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin9
|
||||
|
@ -748,7 +748,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin10
|
||||
|
@ -756,7 +756,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin11
|
||||
|
@ -764,7 +764,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin12
|
||||
|
@ -772,7 +772,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin13
|
||||
|
@ -780,7 +780,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin14
|
||||
|
@ -788,7 +788,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
<pin15
|
||||
|
@ -796,7 +796,7 @@
|
|||
Type="PushPull"
|
||||
Level="High"
|
||||
Speed="Maximum"
|
||||
Resistor="Floating"
|
||||
Resistor="PullUp"
|
||||
Mode="Input"
|
||||
Alternate="0" />
|
||||
</GPIOF>
|
||||
|
@ -938,7 +938,7 @@
|
|||
Resistor="Floating"
|
||||
Level="High"
|
||||
Mode="Input"
|
||||
Alternate="0"></pin0>
|
||||
Alternate="0" />
|
||||
<pin1
|
||||
ID="OSC_OUT"
|
||||
Type="PushPull"
|
||||
|
|
Loading…
Reference in New Issue