Skip to content

Commit 7122cdc

Browse files
committed
Format all bindings according to black_bindings.py
1 parent 20e1722 commit 7122cdc

File tree

228 files changed

+1411
-2027
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+1411
-2027
lines changed

ports/atmel-samd/bindings/samd/Clock.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@
3333
//| class Clock:
3434
//| """Identifies a clock on the microcontroller.
3535
//|
36-
//| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37-
//| ``samd.clock`` to reference the desired clock."""
38-
//|
39-
36+
//| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37+
//| ``samd.clock`` to reference the desired clock."""
4038
STATIC void samd_clock_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
4139
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
4240

@@ -45,7 +43,6 @@ STATIC void samd_clock_print(const mp_print_t *print, mp_obj_t self_in, mp_print
4543

4644
//| enabled: bool
4745
//| """Is the clock enabled? (read-only)"""
48-
//|
4946
STATIC mp_obj_t samd_clock_get_enabled(mp_obj_t self_in) {
5047
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
5148
return mp_obj_new_bool(clock_get_enabled(self->type, self->index));
@@ -58,7 +55,6 @@ MP_PROPERTY_GETTER(samd_clock_enabled_obj,
5855

5956
//| parent: Union[Clock, None]
6057
//| """Clock parent. (read-only)"""
61-
//|
6258
STATIC mp_obj_t samd_clock_get_parent(mp_obj_t self_in) {
6359
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
6460
uint8_t p_type, p_index;
@@ -83,7 +79,6 @@ MP_PROPERTY_GETTER(samd_clock_parent_obj,
8379

8480
//| frequency: int
8581
//| """Clock frequency in Herz. (read-only)"""
86-
//|
8782
STATIC mp_obj_t samd_clock_get_frequency(mp_obj_t self_in) {
8883
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
8984
return mp_obj_new_int_from_uint(clock_get_frequency(self->type, self->index));
@@ -96,7 +91,6 @@ MP_PROPERTY_GETTER(samd_clock_frequency_obj,
9691

9792
//| calibration: int
9893
//| """Clock calibration. Not all clocks can be calibrated."""
99-
//|
10094
STATIC mp_obj_t samd_clock_get_calibration(mp_obj_t self_in) {
10195
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
10296
return mp_obj_new_int_from_uint(clock_get_calibration(self->type, self->index));

ports/atmel-samd/bindings/samd/__init__.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "bindings/samd/Clock.h"
3232

3333
//| """SAMD implementation settings"""
34-
34+
//|
3535
//| """:mod:`samd.clock` --- samd clock names
3636
//| --------------------------------------------------------
3737
//|
@@ -40,7 +40,6 @@
4040
//| :platform: SAMD21
4141
//|
4242
//| References to clocks as named by the microcontroller"""
43-
//|
4443
const mp_obj_module_t samd_clock_module = {
4544
.base = { &mp_type_module },
4645
.globals = (mp_obj_dict_t *)&samd_clock_globals,

ports/broadcom/bindings/videocore/Framebuffer.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
//|
4747
//| A Framebuffer is often used in conjunction with a
4848
//| `framebufferio.FramebufferDisplay`."""
49-
//|
50-
5149
STATIC mp_obj_t videocore_framebuffer_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
5250
enum { ARG_width, ARG_height, };
5351
static const mp_arg_t allowed_args[] = {
@@ -72,7 +70,6 @@ STATIC mp_obj_t videocore_framebuffer_make_new(const mp_obj_type_t *type, size_t
7270
//| rgbmatrix instance. After deinitialization, no further operations
7371
//| may be performed."""
7472
//| ...
75-
//|
7673
STATIC mp_obj_t videocore_framebuffer_deinit(mp_obj_t self_in) {
7774
videocore_framebuffer_obj_t *self = (videocore_framebuffer_obj_t *)self_in;
7875
common_hal_videocore_framebuffer_deinit(self);
@@ -89,7 +86,6 @@ static void check_for_deinit(videocore_framebuffer_obj_t *self) {
8986

9087
//| width: int
9188
//| """The width of the display, in pixels"""
92-
//|
9389
STATIC mp_obj_t videocore_framebuffer_get_width(mp_obj_t self_in) {
9490
videocore_framebuffer_obj_t *self = (videocore_framebuffer_obj_t *)self_in;
9591
check_for_deinit(self);
@@ -101,7 +97,6 @@ MP_PROPERTY_GETTER(videocore_framebuffer_width_obj,
10197

10298
//| height: int
10399
//| """The height of the display, in pixels"""
104-
//|
105100
STATIC mp_obj_t videocore_framebuffer_get_height(mp_obj_t self_in) {
106101
videocore_framebuffer_obj_t *self = (videocore_framebuffer_obj_t *)self_in;
107102
check_for_deinit(self);

ports/broadcom/bindings/videocore/__init__.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#include "bindings/videocore/Framebuffer.h"
3333

3434
//| """Low-level routines for interacting with the Broadcom VideoCore GPU"""
35-
//|
36-
3735
STATIC const mp_rom_map_elem_t videocore_module_globals_table[] = {
3836
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_videocore) },
3937
{ MP_ROM_QSTR(MP_QSTR_Framebuffer), MP_ROM_PTR(&videocore_framebuffer_type) },

0 commit comments

Comments
 (0)