Skip to content

Commit a1856ea

Browse files
committed
Renaming module from adcbuffer to analogbufio
1 parent 478b40e commit a1856ea

File tree

11 files changed

+89
-89
lines changed

11 files changed

+89
-89
lines changed

ports/raspberrypi/common-hal/adcbuffer/__init__.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

ports/raspberrypi/common-hal/adcbuffer/BufferedInput.c renamed to ports/raspberrypi/common-hal/analogbufio/BufferedIn.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
*/
3333

3434
#include <stdio.h>
35-
#include "common-hal/adcbuffer/BufferedInput.h"
36-
#include "shared-bindings/adcbuffer/BufferedInput.h"
35+
#include "common-hal/analogbufio/BufferedIn.h"
36+
#include "shared-bindings/analogbufio/BufferedIn.h"
3737
#include "shared-bindings/microcontroller/Pin.h"
3838
#include "py/runtime.h"
3939
#include "supervisor/shared/translate/translate.h"
@@ -44,7 +44,7 @@
4444
#define ADC_FIRST_PIN_NUMBER 26
4545
#define ADC_PIN_COUNT 4
4646

47-
void common_hal_adcbuffer_bufferedinput_construct(adcbuffer_bufferedinput_obj_t *self, const mcu_pin_obj_t *pin, uint8_t *buffer, uint32_t len, uint8_t bytes_per_sample, bool samples_signed, uint32_t sample_rate) {
47+
void common_hal_analogbufio_bufferedin_construct(analogbufio_bufferedin_obj_t *self, const mcu_pin_obj_t *pin, uint8_t *buffer, uint32_t len, uint8_t bytes_per_sample, bool samples_signed, uint32_t sample_rate) {
4848

4949
// Make sure pin number is in range for ADC
5050
if (pin->number < ADC_FIRST_PIN_NUMBER || pin->number >= (ADC_FIRST_PIN_NUMBER + ADC_PIN_COUNT)) {
@@ -131,12 +131,12 @@ void common_hal_adcbuffer_bufferedinput_construct(adcbuffer_bufferedinput_obj_t
131131
adc_run(false);
132132
}
133133

134-
bool common_hal_adcbuffer_bufferedinput_deinited(adcbuffer_bufferedinput_obj_t *self) {
134+
bool common_hal_analogbufio_bufferedin_deinited(analogbufio_bufferedin_obj_t *self) {
135135
return self->pin == NULL;
136136
}
137137

138-
void common_hal_adcbuffer_bufferedinput_deinit(adcbuffer_bufferedinput_obj_t *self) {
139-
if (common_hal_adcbuffer_bufferedinput_deinited(self)) {
138+
void common_hal_analogbufio_bufferedin_deinit(analogbufio_bufferedin_obj_t *self) {
139+
if (common_hal_analogbufio_bufferedin_deinited(self)) {
140140
return;
141141
}
142142

@@ -148,7 +148,7 @@ void common_hal_adcbuffer_bufferedinput_deinit(adcbuffer_bufferedinput_obj_t *se
148148
dma_channel_unclaim(self->dma_chan);
149149
}
150150

151-
void common_hal_adcbuffer_bufferedinput_read(adcbuffer_bufferedinput_obj_t *self) {
151+
void common_hal_analogbufio_bufferedin_read(analogbufio_bufferedin_obj_t *self) {
152152

153153
uint32_t cdl = self->len / self->bytes_per_sample;
154154

ports/raspberrypi/common-hal/adcbuffer/BufferedInput.h renamed to ports/raspberrypi/common-hal/analogbufio/BufferedIn.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
* THE SOFTWARE.
3232
*/
3333

34-
#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ADCBUFFER_BUFFEREDINPUT_H
35-
#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ADCBUFFER_BUFFEREDINPUT_H
34+
#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H
35+
#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H
3636

3737
#include "common-hal/microcontroller/Pin.h"
3838
#include "src/rp2_common/hardware_dma/include/hardware/dma.h"
3939

4040
#include "py/obj.h"
4141

42-
// This is the adcbuffer object
42+
// This is the analogbufio object
4343
typedef struct {
4444
mp_obj_base_t base;
4545
const mcu_pin_obj_t *pin;
@@ -51,8 +51,8 @@ typedef struct {
5151
uint8_t chan;
5252
uint dma_chan;
5353
dma_channel_config cfg;
54-
} adcbuffer_bufferedinput_obj_t;
54+
} analogbuf_bufferedin_obj_t;
5555

56-
void bufferedinput_init(void);
56+
void bufferedin_init(void);
5757

58-
#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ADCBUFFER_BUFFEREDINPUT_H
58+
#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// No analogbufio module functions.

ports/raspberrypi/mpconfigport.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CIRCUITPY_NVM = 1
2626
CIRCUITPY_PULSEIO ?= 1
2727
CIRCUITPY_WATCHDOG ?= 1
2828

29-
# Use of adcbuffer
30-
CIRCUITPY_ADCBUFFER = 1
29+
# Use of analogbufio
30+
CIRCUITPY_ANALOGBUFIO = 1
3131

3232
# Audio via PWM
3333
CIRCUITPY_AUDIOIO = 0

py/circuitpy_defns.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ endif
102102
###
103103
# Select which builtin modules to compile and include.
104104

105-
ifeq ($(CIRCUITPY_ADCBUFFER),1)
106-
SRC_PATTERNS += adcbuffer/%
107-
endif
108105
ifeq ($(CIRCUITPY_AESIO),1)
109106
SRC_PATTERNS += aesio/%
110107
endif
111108
ifeq ($(CIRCUITPY_ALARM),1)
112109
SRC_PATTERNS += alarm/%
113110
endif
111+
ifeq ($(CIRCUITPY_ANALOGBUFIO),1)
112+
SRC_PATTERNS += analogbufio/%
113+
endif
114114
ifeq ($(CIRCUITPY_ANALOGIO),1)
115115
SRC_PATTERNS += analogio/%
116116
endif
@@ -387,13 +387,13 @@ SRC_COMMON_HAL_ALL = \
387387
_bleio/__init__.c \
388388
_pew/PewPew.c \
389389
_pew/__init__.c \
390-
adcbuffer/BufferedInput.c \
391-
adcbuffer/__init__.c \
392390
alarm/SleepMemory.c \
393391
alarm/__init__.c \
394392
alarm/pin/PinAlarm.c \
395393
alarm/time/TimeAlarm.c \
396394
alarm/touch/TouchAlarm.c \
395+
analogbufio/BufferedIn.c \
396+
analogbufio/__init__.c \
397397
analogio/AnalogIn.c \
398398
analogio/AnalogOut.c \
399399
analogio/__init__.c \

py/circuitpy_mpconfig.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ CFLAGS += -DCIRCUITPY_AESIO=$(CIRCUITPY_AESIO)
6262
CIRCUITPY_ALARM ?= 0
6363
CFLAGS += -DCIRCUITPY_ALARM=$(CIRCUITPY_ALARM)
6464

65+
CIRCUITPY_ANALOGBUFIO ?= 0
66+
CFLAGS += -DCIRCUITPY_ANALOGBUFIO=$(CIRCUITPY_ANALOGBUFIO)
67+
6568
CIRCUITPY_ANALOGIO ?= 1
6669
CFLAGS += -DCIRCUITPY_ANALOGIO=$(CIRCUITPY_ANALOGIO)
6770

68-
CIRCUITPY_ADCBUFFER ?= 0
69-
CFLAGS += -DCIRCUITPY_ADCBUFFER=$(CIRCUITPY_ADCBUFFER)
70-
7171
CIRCUITPY_ATEXIT ?= $(CIRCUITPY_FULL_BUILD)
7272
CFLAGS += -DCIRCUITPY_ATEXIT=$(CIRCUITPY_ATEXIT)
7373

shared-bindings/adcbuffer/BufferedInput.c renamed to shared-bindings/analogbufio/BufferedIn.c

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
#include "py/objproperty.h"
3535
#include "py/runtime.h"
3636
#include "shared-bindings/microcontroller/Pin.h"
37-
#include "shared-bindings/adcbuffer/BufferedInput.h"
37+
#include "shared-bindings/analogbufio/BufferedIn.h"
3838
#include "shared-bindings/util.h"
3939

40-
//| class BufferedInput:
40+
//| class BufferedIn:
4141
//| """Capture multiple analog voltage levels to the supplied buffer"""
4242
//|
4343
//| def __init__(self, pin: microcontroller.Pin, buffer: WriteableBuffer, *, sample_rate: int = 500000) -> None:
44-
//| """Create a `BufferedInput` on the given pin. ADC values will be read
44+
//| """Create a `BufferedIn` on the given pin. ADC values will be read
4545
//| into the given buffer at the supplied sample_rate. Depending on the
4646
//| buffer typecode, 'b', 'B', 'h', 'H', samples are 8-bit byte-arrays or
4747
//| 16-bit half-words and are signed or unsigned.
@@ -55,13 +55,13 @@
5555
//| Usage::
5656
//|
5757
//| import board
58-
//| import adcbuffer
58+
//| import analogbufio
5959
//| import array
6060
//|
6161
//| length = 1000
62-
//| mybuffer = array.array("H", [0] * length)
62+
//| mybuffer = array.array("H", 0x0000 for i in range(length))
6363
//| rate = 500000
64-
//| adcbuf = adcbuffer.BufferedInput(board.GP26, mybuffer, rate)
64+
//| adcbuf = analogbufio.BufferedIn(board.GP26, mybuffer, rate)
6565
//| adcbuf.read()
6666
//| adcbuf.deinit()
6767
//| for i in range(length):
@@ -72,7 +72,7 @@
7272
//| (TODO) Provide mechanism to read CPU Temperature."""
7373
//| ...
7474
//|
75-
STATIC mp_obj_t adcbuffer_bufferedinput_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
75+
STATIC mp_obj_t analogbufio_bufferedin_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
7676
enum { ARG_pin, ARG_buffer, ARG_sample_rate };
7777
static const mp_arg_t allowed_args[] = {
7878
{ MP_QSTR_pin, MP_ARG_OBJ | MP_ARG_REQUIRED },
@@ -104,11 +104,11 @@ STATIC mp_obj_t adcbuffer_bufferedinput_make_new(const mp_obj_type_t *type, size
104104
uint32_t sample_rate = (uint32_t)mp_arg_validate_int_range(args[ARG_sample_rate].u_int, 1, 500000, MP_QSTR_sample_rate);
105105

106106
// Create local object
107-
adcbuffer_bufferedinput_obj_t *self = m_new_obj(adcbuffer_bufferedinput_obj_t);
108-
self->base.type = &adcbuffer_bufferedinput_type;
107+
analogbufio_bufferedin_obj_t *self = m_new_obj(analogbufio_bufferedin_obj_t);
108+
self->base.type = &analogbufio_bufferedin_type;
109109

110-
// Call local intereface in ports/common-hal/adcbuffer
111-
common_hal_adcbuffer_bufferedinput_construct(self,
110+
// Call local intereface in ports/common-hal/analogbufio
111+
common_hal_analogbufio_bufferedin_construct(self,
112112
pin,
113113
((uint8_t *)bufinfo.buf),
114114
bufinfo.len,
@@ -121,18 +121,18 @@ STATIC mp_obj_t adcbuffer_bufferedinput_make_new(const mp_obj_type_t *type, size
121121
}
122122

123123
//| def deinit(self) -> None:
124-
//| """Shut down the `BufferedInput` and release the pin for other use."""
124+
//| """Shut down the `BufferedIn` and release the pin for other use."""
125125
//| ...
126126
//|
127-
STATIC mp_obj_t adcbuffer_bufferedinput_deinit(mp_obj_t self_in) {
128-
adcbuffer_bufferedinput_obj_t *self = MP_OBJ_TO_PTR(self_in);
129-
common_hal_adcbuffer_bufferedinput_deinit(self);
127+
STATIC mp_obj_t analogbufio_bufferedin_deinit(mp_obj_t self_in) {
128+
analogbufio_bufferedin_obj_t *self = MP_OBJ_TO_PTR(self_in);
129+
common_hal_analogbufio_bufferedin_deinit(self);
130130
return mp_const_none;
131131
}
132-
MP_DEFINE_CONST_FUN_OBJ_1(adcbuffer_bufferedinput_deinit_obj, adcbuffer_bufferedinput_deinit);
132+
MP_DEFINE_CONST_FUN_OBJ_1(analogbufio_bufferedin_deinit_obj, analogbufio_bufferedin_deinit);
133133

134-
STATIC void check_for_deinit(adcbuffer_bufferedinput_obj_t *self) {
135-
if (common_hal_adcbuffer_bufferedinput_deinited(self)) {
134+
STATIC void check_for_deinit(analogbufio_bufferedin_obj_t *self) {
135+
if (common_hal_analogbufio_bufferedin_deinited(self)) {
136136
raise_deinited_error();
137137
}
138138
}
@@ -144,38 +144,38 @@ STATIC void check_for_deinit(adcbuffer_bufferedinput_obj_t *self) {
144144
//| :ref:`lifetime-and-contextmanagers` for more info."""
145145
//| ...
146146
//|
147-
STATIC mp_obj_t adcbuffer_bufferedinput___exit__(size_t n_args, const mp_obj_t *args) {
147+
STATIC mp_obj_t analogbufio_bufferedin___exit__(size_t n_args, const mp_obj_t *args) {
148148
(void)n_args;
149-
common_hal_adcbuffer_bufferedinput_deinit(args[0]);
149+
common_hal_analogbufio_bufferedin_deinit(args[0]);
150150
return mp_const_none;
151151
}
152-
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(adcbuffer_bufferedinput___exit___obj, 4, 4, adcbuffer_bufferedinput___exit__);
152+
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(analogbufio_bufferedin___exit___obj, 4, 4, analogbufio_bufferedin___exit__);
153153

154154
//|
155155
//| def read(self) -> None:
156156
//| """Fills the provided buffer with ADC voltage values."""
157157
//|
158-
STATIC mp_obj_t adcbuffer_bufferedinput_obj_read(mp_obj_t self_in) {
159-
adcbuffer_bufferedinput_obj_t *self = MP_OBJ_TO_PTR(self_in);
158+
STATIC mp_obj_t analogbufio_bufferedin_obj_read(mp_obj_t self_in) {
159+
analogbufio_bufferedin_obj_t *self = MP_OBJ_TO_PTR(self_in);
160160
check_for_deinit(self);
161-
common_hal_adcbuffer_bufferedinput_read(self);
161+
common_hal_analogbufio_bufferedin_read(self);
162162
return mp_const_none;
163163
}
164-
MP_DEFINE_CONST_FUN_OBJ_1(adcbuffer_bufferedinput_read_obj, adcbuffer_bufferedinput_obj_read);
164+
MP_DEFINE_CONST_FUN_OBJ_1(analogbufio_bufferedin_read_obj, analogbufio_bufferedin_obj_read);
165165

166-
STATIC const mp_rom_map_elem_t adcbuffer_bufferedinput_locals_dict_table[] = {
167-
{ MP_ROM_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&adcbuffer_bufferedinput_deinit_obj) },
166+
STATIC const mp_rom_map_elem_t analogbufio_bufferedin_locals_dict_table[] = {
167+
{ MP_ROM_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&analogbufio_bufferedin_deinit_obj) },
168168
{ MP_ROM_QSTR(MP_QSTR___enter__), MP_ROM_PTR(&default___enter___obj) },
169-
{ MP_ROM_QSTR(MP_QSTR___exit__), MP_ROM_PTR(&adcbuffer_bufferedinput___exit___obj) },
170-
{ MP_ROM_QSTR(MP_QSTR_read), MP_ROM_PTR(&adcbuffer_bufferedinput_read_obj)},
169+
{ MP_ROM_QSTR(MP_QSTR___exit__), MP_ROM_PTR(&analogbufio_bufferedin___exit___obj) },
170+
{ MP_ROM_QSTR(MP_QSTR_read), MP_ROM_PTR(&analogbufio_bufferedin_read_obj)},
171171

172172
};
173173

174-
STATIC MP_DEFINE_CONST_DICT(adcbuffer_bufferedinput_locals_dict, adcbuffer_bufferedinput_locals_dict_table);
174+
STATIC MP_DEFINE_CONST_DICT(analogbufio_bufferedin_locals_dict, analogbufio_bufferedin_locals_dict_table);
175175

176-
const mp_obj_type_t adcbuffer_bufferedinput_type = {
176+
const mp_obj_type_t analogbufio_bufferedin_type = {
177177
{ &mp_type_type },
178-
.name = MP_QSTR_BufferedInput,
179-
.make_new = adcbuffer_bufferedinput_make_new,
180-
.locals_dict = (mp_obj_t)&adcbuffer_bufferedinput_locals_dict,
178+
.name = MP_QSTR_BufferedIn,
179+
.make_new = analogbufio_bufferedin_make_new,
180+
.locals_dict = (mp_obj_t)&analogbufio_bufferedin_locals_dict,
181181
};

shared-bindings/adcbuffer/BufferedInput.h renamed to shared-bindings/analogbufio/BufferedIn.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ADCBUFFER_BUFFEREDINPUT_H
28-
#define MICROPY_INCLUDED_SHARED_BINDINGS_ADCBUFFER_BUFFEREDINPUT_H
27+
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO_BUFFEREDIN_H
28+
#define MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO_BUFFEREDIN_H
2929

3030
#include "common-hal/microcontroller/Pin.h"
31-
#include "common-hal/adcbuffer/BufferedInput.h"
31+
#include "common-hal/analogbufio/BufferedIn.h"
3232

33-
extern const mp_obj_type_t adcbuffer_bufferedinput_type;
33+
extern const mp_obj_type_t analogbufio_bufferedin_type;
3434

35-
void common_hal_adcbuffer_bufferedinput_construct(adcbuffer_bufferedinput_obj_t *self, const mcu_pin_obj_t *pin, uint8_t *buffer, uint32_t len, uint8_t bytes_per_sample, bool samples_signed, uint32_t sample_rate);
36-
void common_hal_adcbuffer_bufferedinput_deinit(adcbuffer_bufferedinput_obj_t *self);
37-
bool common_hal_adcbuffer_bufferedinput_deinited(adcbuffer_bufferedinput_obj_t *self);
38-
void common_hal_adcbuffer_bufferedinput_read(adcbuffer_bufferedinput_obj_t *self);
35+
void common_hal_analogbufio_bufferedin_construct(analogbufio_bufferedin_obj_t *self, const mcu_pin_obj_t *pin, uint8_t *buffer, uint32_t len, uint8_t bytes_per_sample, bool samples_signed, uint32_t sample_rate);
36+
void common_hal_analogbufio_bufferedin_deinit(analogbufio_bufferedin_obj_t *self);
37+
bool common_hal_analogbufio_bufferedin_deinited(analogbufio_bufferedin_obj_t *self);
38+
void common_hal_analogbufio_bufferedin_read(analogbufio_bufferedin_obj_t *self);
3939

40-
#endif // __MICROPY_INCLUDED_SHARED_BINDINGS_ADCBUFFER_BUFFEREDINPUT_H__
40+
#endif // __MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO_BUFFEREDIN_H__

shared-bindings/adcbuffer/__init__.c renamed to shared-bindings/analogbufio/__init__.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
#include "py/obj.h"
2828
#include "py/runtime.h"
2929
#include "shared-bindings/microcontroller/Pin.h"
30-
#include "shared-bindings/adcbuffer/__init__.h"
31-
#include "shared-bindings/adcbuffer/BufferedInput.h"
30+
#include "shared-bindings/analogbufio/__init__.h"
31+
#include "shared-bindings/analogbufio/BufferedIn.h"
3232

33-
//| """Analog buffered hardware support
33+
//| """Analog Buffered IO Hardware Support
3434
//|
35-
//| The `adcbuffer` module contains classes to provide access to analog-to-digital
35+
//| The `analogbufio` module contains classes to provide access to analog-to-digital
3636
//| conversion and digital-to-analog (DAC) for multiple value transfer.
3737
//|
3838
//| All classes change hardware state and should be deinitialized when they
@@ -42,38 +42,38 @@
4242
//|
4343
//| For example::
4444
//|
45-
//| import adcbuffer
45+
//| import analogbufio
4646
//| import array
4747
//| from board import *
4848
//|
4949
//| length = 5000000
50-
//| mybuffer = array.array("H", [0] * length)
51-
//| adc_in = adcbuffer.BufferedInput(GP26, mybuffer, length)
52-
//| adcbuffer.read()
50+
//| mybuffer = array.array("H", 0x0000 for i in range(length))
51+
//| adc_in = analogbufio.BufferedIn(GP26, mybuffer, length)
52+
//| analogbufio.read()
5353
//| print(*mybuffer)
5454
//| adc_in.deinit()
5555
//|
5656
//| This example will initialize the the device, read and fill
57-
//| :py:data:`~adcbuffer.BufferedInPut` to mybuffer
57+
//| :py:data:`~analogbufio.BufferedIn` to mybuffer
5858
//|
59-
//| TODO: For the essentials of `adcbuffer`, see the `CircuitPython Essentials
60-
//| Learn guide <https://learn.adafruit.com/circuitpython-essentials/circuitpython-adcbuffer>`_
59+
//| TODO: For the essentials of `analogbufio`, see the `CircuitPython Essentials
60+
//| Learn guide <https://learn.adafruit.com/circuitpython-essentials/circuitpython-analogbufio>`_
6161
//|
62-
//| TODO: For more information on using `adcbuffer`, see `this additional Learn guide
62+
//| TODO: For more information on using `analogbufio`, see `this additional Learn guide
6363
//| <https://learn.adafruit.com/circuitpython-advanced-analog-inputs-and-outputs>`_
6464
//| """
6565
//|
6666

67-
STATIC const mp_rom_map_elem_t adcbuffer_module_globals_table[] = {
68-
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_adcbuffer) },
69-
{ MP_ROM_QSTR(MP_QSTR_BufferedInput), MP_ROM_PTR(&adcbuffer_bufferedinput_type) },
67+
STATIC const mp_rom_map_elem_t analogbufio_module_globals_table[] = {
68+
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_analogbufio) },
69+
{ MP_ROM_QSTR(MP_QSTR_BufferedIn), MP_ROM_PTR(&analogbufio_bufferedin_type) },
7070
};
7171

72-
STATIC MP_DEFINE_CONST_DICT(adcbuffer_module_globals, adcbuffer_module_globals_table);
72+
STATIC MP_DEFINE_CONST_DICT(analogbufio_module_globals, analogbufio_module_globals_table);
7373

74-
const mp_obj_module_t adcbuffer_module = {
74+
const mp_obj_module_t analogbufio_module = {
7575
.base = { &mp_type_module },
76-
.globals = (mp_obj_dict_t *)&adcbuffer_module_globals,
76+
.globals = (mp_obj_dict_t *)&analogbufio_module_globals,
7777
};
7878

79-
MP_REGISTER_MODULE(MP_QSTR_adcbuffer, adcbuffer_module, CIRCUITPY_ADCBUFFER);
79+
MP_REGISTER_MODULE(MP_QSTR_analogbufio, analogbufio_module, CIRCUITPY_ANALOGBUFIO);

0 commit comments

Comments
 (0)