File tree Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 18
18
#include "mbed_assert.h"
19
19
#include "pinmap.h"
20
20
#include "PortNames.h"
21
+ #include "PeripheralNames.h"
21
22
#include "mbed_error.h"
22
23
#include "partition_M2351.h"
23
24
#include "hal_secure.h"
@@ -77,6 +78,21 @@ void pin_mode(PinName pin, PinMode mode)
77
78
*/
78
79
}
79
80
81
+ /* List of peripherals excluded from testing */
82
+ const PeripheralList * pinmap_restricted_peripherals ()
83
+ {
84
+ static const int perifs [] = {
85
+ STDIO_UART // Dedicated to USB VCOM
86
+ };
87
+
88
+ static const PeripheralList peripheral_list = {
89
+ sizeof (perifs ) / sizeof (perifs [0 ]),
90
+ perifs
91
+ };
92
+
93
+ return & peripheral_list ;
94
+ }
95
+
80
96
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
81
97
__NONSECURE_ENTRY
82
98
void pin_function_s (int32_t pin , int32_t data )
Original file line number Diff line number Diff line change 17
17
#include "mbed_assert.h"
18
18
#include "pinmap.h"
19
19
#include "PortNames.h"
20
+ #include "PeripheralNames.h"
20
21
#include "mbed_error.h"
21
22
22
23
/**
@@ -90,3 +91,18 @@ void pin_mode(PinName pin, PinMode mode)
90
91
* 2. PushPullOutput/PIN_INPUT
91
92
*/
92
93
}
94
+
95
+ /* List of peripherals excluded from testing */
96
+ const PeripheralList * pinmap_restricted_peripherals ()
97
+ {
98
+ static const int perifs [] = {
99
+ STDIO_UART // Dedicated to USB VCOM
100
+ };
101
+
102
+ static const PeripheralList peripheral_list = {
103
+ sizeof (perifs ) / sizeof (perifs [0 ]),
104
+ perifs
105
+ };
106
+
107
+ return & peripheral_list ;
108
+ }
Original file line number Diff line number Diff line change 17
17
#include "mbed_assert.h"
18
18
#include "pinmap.h"
19
19
#include "PortNames.h"
20
+ #include "PeripheralNames.h"
20
21
#include "mbed_error.h"
21
22
22
23
/**
@@ -80,3 +81,18 @@ void pin_mode(PinName pin, PinMode mode)
80
81
* 2. PushPullOutput/PIN_INPUT
81
82
*/
82
83
}
84
+
85
+ /* List of peripherals excluded from testing */
86
+ const PeripheralList * pinmap_restricted_peripherals ()
87
+ {
88
+ static const int perifs [] = {
89
+ STDIO_UART // Dedicated to USB VCOM
90
+ };
91
+
92
+ static const PeripheralList peripheral_list = {
93
+ sizeof (perifs ) / sizeof (perifs [0 ]),
94
+ perifs
95
+ };
96
+
97
+ return & peripheral_list ;
98
+ }
Original file line number Diff line number Diff line change 17
17
#include "mbed_assert.h"
18
18
#include "pinmap.h"
19
19
#include "PortNames.h"
20
+ #include "PeripheralNames.h"
20
21
#include "mbed_error.h"
21
22
22
23
/**
@@ -76,3 +77,18 @@ void pin_mode(PinName pin, PinMode mode)
76
77
* 2. PushPullOutput/PIN_INPUT
77
78
*/
78
79
}
80
+
81
+ /* List of peripherals excluded from testing */
82
+ const PeripheralList * pinmap_restricted_peripherals ()
83
+ {
84
+ static const int perifs [] = {
85
+ STDIO_UART // Dedicated to USB VCOM
86
+ };
87
+
88
+ static const PeripheralList peripheral_list = {
89
+ sizeof (perifs ) / sizeof (perifs [0 ]),
90
+ perifs
91
+ };
92
+
93
+ return & peripheral_list ;
94
+ }
Original file line number Diff line number Diff line change 17
17
#include "mbed_assert.h"
18
18
#include "pinmap.h"
19
19
#include "PortNames.h"
20
+ #include "PeripheralNames.h"
20
21
#include "mbed_error.h"
21
22
22
23
/**
@@ -90,3 +91,18 @@ void pin_mode(PinName pin, PinMode mode)
90
91
* 2. PushPullOutput/PIN_INPUT
91
92
*/
92
93
}
94
+
95
+ /* List of peripherals excluded from testing */
96
+ const PeripheralList * pinmap_restricted_peripherals ()
97
+ {
98
+ static const int perifs [] = {
99
+ STDIO_UART // Dedicated to USB VCOM
100
+ };
101
+
102
+ static const PeripheralList peripheral_list = {
103
+ sizeof (perifs ) / sizeof (perifs [0 ]),
104
+ perifs
105
+ };
106
+
107
+ return & peripheral_list ;
108
+ }
You can’t perform that action at this time.
0 commit comments