Skip to content

Commit 55c002f

Browse files
fpistmxC0000005
authored andcommitted
PR 364 Review (stm32duino#1)
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 752e7fd commit 55c002f

File tree

3 files changed

+63
-53
lines changed

3 files changed

+63
-53
lines changed

Diff for: variants/ARMED_V1/ldscript.ld

+26-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,32 @@
1818
** Distribution: The file is distributed as is, without any warranty
1919
** of any kind.
2020
**
21-
** (c)Copyright Ac6.
22-
** You may use this file as-is or modify it according to the needs of your
23-
** project. Distribution of this file (unmodified or modified) is not
24-
** permitted. Ac6 permit registered System Workbench for MCU users the
25-
** rights to distribute the assembled, compiled & linked contents of this
26-
** file as part of an application binary file, provided that it is built
27-
** using the System Workbench for MCU toolchain.
21+
*****************************************************************************
22+
** @attention
23+
**
24+
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
25+
**
26+
** Redistribution and use in source and binary forms, with or without modification,
27+
** are permitted provided that the following conditions are met:
28+
** 1. Redistributions of source code must retain the above copyright notice,
29+
** this list of conditions and the following disclaimer.
30+
** 2. Redistributions in binary form must reproduce the above copyright notice,
31+
** this list of conditions and the following disclaimer in the documentation
32+
** and/or other materials provided with the distribution.
33+
** 3. Neither the name of Ac6 nor the names of its contributors
34+
** may be used to endorse or promote products derived from this software
35+
** without specific prior written permission.
36+
**
37+
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38+
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39+
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40+
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41+
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42+
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43+
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44+
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45+
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46+
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2847
**
2948
*****************************************************************************
3049
*/

Diff for: variants/ARMED_V1/variant.cpp

+32-37
Original file line numberDiff line numberDiff line change
@@ -41,53 +41,53 @@ const PinName digitalPin[] = {
4141
PA_14, //D14
4242
PA_15, //D15
4343
PB_0, //D16
44-
PB_1, //D17
45-
PB_2, //D18
46-
PB_3, //D19
44+
PB_1, //D17
45+
PB_2, //D18
46+
PB_3, //D19
4747
PB_4, //D20
48-
PB_5, //D21
48+
PB_5, //D21
4949
PB_6, //D22
5050
PB_7, //D23
5151
PB_8, //D24
5252
PB_9, //D25
53-
PB_10, //D26
54-
PB_11, //D27
55-
PB_12, //D28
56-
PB_13, //D29
57-
PB_14, //D30
58-
PB_15, //D31
59-
PC_0, //D32
60-
PC_1, //D33
61-
PC_2, //D34
62-
PC_3, //D35
53+
PB_10, //D26
54+
PB_11, //D27
55+
PB_12, //D28
56+
PB_13, //D29
57+
PB_14, //D30
58+
PB_15, //D31
59+
PC_0, //D32/A0
60+
PC_1, //D33/A1
61+
PC_2, //D34/A2
62+
PC_3, //D35
6363
PC_4, //D36
6464
PC_5, //D37
6565
PC_6, //D38
6666
PC_7, //D39
6767
PC_8, //D40
6868
PC_9, //D41
69-
PC_10, //D42
70-
PC_11, //D43
71-
PC_12, //D44
72-
PC_13, //D45
73-
PC_14, //D46
74-
PC_15, //D47
69+
PC_10, //D42
70+
PC_11, //D43
71+
PC_12, //D44
72+
PC_13, //D45
73+
PC_14, //D46
74+
PC_15, //D47
7575
PD_0, //D48
76-
PD_1, //D49
77-
PD_2, //D50
78-
PD_3, //D51
79-
PD_4, //D52
80-
PD_5, //D53
81-
PD_6, //D54
76+
PD_1, //D49
77+
PD_2, //D50
78+
PD_3, //D51
79+
PD_4, //D52
80+
PD_5, //D53
81+
PD_6, //D54
8282
PD_7, //D55
83-
PD_8, //D56
84-
PD_9, //D57
83+
PD_8, //D56
84+
PD_9, //D57
8585
PD_10, //D58
86-
PD_11, //D59
86+
PD_11, //D59
8787
PD_12, //D60
8888
PD_13, //D61
89-
PD_14, //D62
90-
PD_15, //D63
89+
PD_14, //D62
90+
PD_15, //D63
9191
PE_0, //D64
9292
PE_1, //D65
9393
PE_2, //D66
@@ -103,12 +103,7 @@ const PinName digitalPin[] = {
103103
PE_12, //D76
104104
PE_13, //D77
105105
PE_14, //D78
106-
PE_15, //D79
107-
//Duplicated to have A0-A2 as F407 do not have Uno like connector
108-
// and to be aligned with PinMap_ADC
109-
PC_0,//D80/A0 = D32
110-
PC_1,//D81/A1 = D33
111-
PC_2 //D82/A2 = D34
106+
PE_15 //D79
112107
};
113108

114109
#ifdef __cplusplus

Diff for: variants/ARMED_V1/variant.h

+5-9
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ extern const PinName digitalPin[];
6565
#define PB13 29 //D29
6666
#define PB14 30 //D30
6767
#define PB15 31 //D31
68-
#define PC0 32 //D32
69-
#define PC1 33 //D33
70-
#define PC2 34 //D34
68+
#define PC0 32 //D32/A0
69+
#define PC1 33 //D33/A1
70+
#define PC2 34 //D34/A2
7171
#define PC3 35 //D35
7272
#define PC4 36 //D36
7373
#define PC5 37 //D37
@@ -118,7 +118,7 @@ extern const PinName digitalPin[];
118118
#define NUM_DIGITAL_PINS 83
119119
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
120120
#define NUM_ANALOG_INPUTS 3
121-
#define NUM_ANALOG_FIRST 80
121+
#define NUM_ANALOG_FIRST 32
122122

123123
// PWM resolution
124124
#define PWM_RESOLUTION 8
@@ -129,9 +129,6 @@ extern const PinName digitalPin[];
129129
#define LED_BUILTIN PB7
130130
#define LED_HEARTBEAT LED_BUILTIN
131131

132-
// On-board user button
133-
// #define USER_BTN 2
134-
135132
// SPI Definitions
136133
#define PIN_SPI_SS PE7
137134
#define PIN_SPI_MOSI PA7
@@ -178,8 +175,7 @@ extern const PinName digitalPin[];
178175
//
179176
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
180177
// pins are NOT connected to anything by default.
181-
#define SERIAL_PORT_MONITOR Serial // Require connections for ST-LINK VCP on U2 pin 12 and 13.
182-
// See UM �6.1.3 ST-LINK/V2-A VCP configuration)
178+
#define SERIAL_PORT_MONITOR Serial
183179
#define SERIAL_PORT_HARDWARE_OPEN Serial
184180
#endif
185181

0 commit comments

Comments
 (0)