File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* mbed Microcontroller Library
2
- * Copyright (c) 2015-2016 Nuvoton
2
+ * Copyright (c) 2015-2020 Nuvoton
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -140,3 +140,11 @@ void gpio_dir(gpio_t *obj, PinDirection direction)
140
140
141
141
pin_mode (obj -> pin , obj -> mode );
142
142
}
143
+
144
+ void gpio_get_capabilities (gpio_t * obj , gpio_capabilities_t * cap )
145
+ {
146
+ // Pull modes not supported.
147
+ cap -> pull_none = 0 ;
148
+ cap -> pull_down = 0 ;
149
+ cap -> pull_up = 0 ;
150
+ }
Original file line number Diff line number Diff line change 1
1
/* mbed Microcontroller Library
2
- * Copyright (c) 2015-2017 Nuvoton
2
+ * Copyright (c) 2015-2020 Nuvoton
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -121,3 +121,11 @@ void gpio_dir(gpio_t *obj, PinDirection direction)
121
121
122
122
pin_mode (obj -> pin , obj -> mode );
123
123
}
124
+
125
+ void gpio_get_capabilities (gpio_t * obj , gpio_capabilities_t * cap )
126
+ {
127
+ // Pull modes not supported.
128
+ cap -> pull_none = 0 ;
129
+ cap -> pull_down = 0 ;
130
+ cap -> pull_up = 0 ;
131
+ }
Original file line number Diff line number Diff line change 1
1
/* mbed Microcontroller Library
2
- * Copyright (c) 2015-2016 Nuvoton
2
+ * Copyright (c) 2015-2020 Nuvoton
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -140,3 +140,11 @@ void gpio_dir(gpio_t *obj, PinDirection direction)
140
140
141
141
pin_mode (obj -> pin , obj -> mode );
142
142
}
143
+
144
+ void gpio_get_capabilities (gpio_t * obj , gpio_capabilities_t * cap )
145
+ {
146
+ // Pull modes not supported.
147
+ cap -> pull_none = 0 ;
148
+ cap -> pull_down = 0 ;
149
+ cap -> pull_up = 0 ;
150
+ }
You can’t perform that action at this time.
0 commit comments