all: Remove unnecessary locals_dict cast.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2022-06-24 16:27:46 +10:00 committed by Damien George
parent b7d6ee9b75
commit 9dce82776d
185 changed files with 226 additions and 226 deletions

View File

@ -737,7 +737,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
mp_machine_soft_i2c_make_new,
print, mp_machine_soft_i2c_print,
protocol, &mp_machine_soft_i2c_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_i2c_locals_dict
locals_dict, &mp_machine_i2c_locals_dict
);
#endif // MICROPY_PY_MACHINE_SOFTI2C

View File

@ -179,7 +179,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
signal_make_new,
call, signal_call,
protocol, &signal_pin_p,
locals_dict, (void *)&signal_locals_dict
locals_dict, &signal_locals_dict
);
#endif // MICROPY_PY_MACHINE

View File

@ -258,7 +258,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
mp_machine_soft_spi_make_new,
print, mp_machine_soft_spi_print,
protocol, &mp_machine_soft_spi_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_spi_locals_dict
locals_dict, &mp_machine_spi_locals_dict
);
#endif // MICROPY_PY_MACHINE_SOFTSPI

View File

@ -981,7 +981,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_BLE,
MP_TYPE_FLAG_NONE,
bluetooth_ble_make_new,
locals_dict, (void *)&bluetooth_ble_locals_dict
locals_dict, &bluetooth_ble_locals_dict
);
STATIC const mp_rom_map_elem_t mp_module_bluetooth_globals_table[] = {

View File

@ -330,7 +330,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
iternext, btree_iternext,
binary_op, btree_binary_op,
subscr, btree_subscr,
locals_dict, (void *)&btree_locals_dict
locals_dict, &btree_locals_dict
);
#endif

View File

@ -835,7 +835,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
framebuf_make_new,
buffer, framebuf_get_buffer,
locals_dict, (mp_obj_dict_t *)&framebuf_locals_dict
locals_dict, &framebuf_locals_dict
);
#endif

View File

@ -182,7 +182,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_slip,
MP_TYPE_FLAG_NONE,
lwip_slip_make_new,
locals_dict, (mp_obj_dict_t *)&lwip_slip_locals_dict
locals_dict, &lwip_slip_locals_dict
);
#endif // MICROPY_PY_LWIP_SLIP
@ -1602,7 +1602,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
lwip_socket_make_new,
print, lwip_socket_print,
protocol, &lwip_socket_stream_p,
locals_dict, (mp_obj_dict_t *)&lwip_socket_locals_dict
locals_dict, &lwip_socket_locals_dict
);
/******************************************************************************/

View File

@ -149,7 +149,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_TaskQueue,
MP_TYPE_FLAG_NONE,
task_queue_make_new,
locals_dict, (mp_obj_dict_t *)&task_queue_locals_dict
locals_dict, &task_queue_locals_dict
);
/******************************************************************************/

View File

@ -353,7 +353,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_aes,
MP_TYPE_FLAG_NONE,
ucryptolib_aes_make_new,
locals_dict, (void *)&ucryptolib_aes_locals_dict
locals_dict, &ucryptolib_aes_locals_dict
);
STATIC const mp_rom_map_elem_t mp_module_ucryptolib_globals_table[] = {

View File

@ -162,7 +162,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_sha256,
MP_TYPE_FLAG_NONE,
uhashlib_sha256_make_new,
locals_dict, (void *)&uhashlib_sha256_locals_dict
locals_dict, &uhashlib_sha256_locals_dict
);
#endif
@ -256,7 +256,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_sha1,
MP_TYPE_FLAG_NONE,
uhashlib_sha1_make_new,
locals_dict, (void *)&uhashlib_sha1_locals_dict
locals_dict, &uhashlib_sha1_locals_dict
);
#endif
@ -350,7 +350,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_md5,
MP_TYPE_FLAG_NONE,
uhashlib_md5_make_new,
locals_dict, (void *)&uhashlib_md5_locals_dict
locals_dict, &uhashlib_md5_locals_dict
);
#endif // MICROPY_PY_UHASHLIB_MD5

View File

@ -185,7 +185,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
print, match_print,
locals_dict, (void *)&match_locals_dict
locals_dict, &match_locals_dict
);
#endif
@ -419,7 +419,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
print, re_print,
locals_dict, (void *)&re_locals_dict
locals_dict, &re_locals_dict
);
#endif

View File

@ -343,7 +343,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_NULL_MAKE_NEW,
getiter, mp_identity_getiter,
iternext, poll_iternext,
locals_dict, (void *)&poll_locals_dict
locals_dict, &poll_locals_dict
);
// poll()

View File

@ -534,7 +534,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
socket_make_new,
protocol, &socket_stream_p,
locals_dict, (mp_obj_dict_t *)&socket_locals_dict,
locals_dict, &socket_locals_dict,
print, socket_print
);

View File

@ -324,7 +324,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
getiter, NULL,
iternext, NULL,
protocol, &ussl_socket_stream_p,
locals_dict, (void *)&ussl_socket_locals_dict
locals_dict, &ussl_socket_locals_dict
);
STATIC mp_obj_t mod_ssl_wrap_socket(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

View File

@ -402,7 +402,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
getiter, NULL,
iternext, NULL,
protocol, &ussl_socket_stream_p,
locals_dict, (void *)&ussl_socket_locals_dict
locals_dict, &ussl_socket_locals_dict
);
STATIC mp_obj_t mod_ssl_wrap_socket(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

View File

@ -215,7 +215,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
utimeq_make_new,
unary_op, utimeq_unary_op,
locals_dict, (void *)&utimeq_locals_dict
locals_dict, &utimeq_locals_dict
);
STATIC const mp_rom_map_elem_t mp_module_utimeq_globals_table[] = {

View File

@ -296,7 +296,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
websocket_make_new,
protocol, &websocket_stream_p,
locals_dict, (void *)&websocket_locals_dict
locals_dict, &websocket_locals_dict
);
STATIC const mp_rom_map_elem_t uwebsocket_module_globals_table[] = {

View File

@ -146,7 +146,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
decompio_make_new,
protocol, &decompio_stream_p,
locals_dict, (void *)&decompio_locals_dict
locals_dict, &decompio_locals_dict
);
#endif

View File

@ -348,7 +348,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
webrepl_make_new,
protocol, &webrepl_stream_p,
locals_dict, (mp_obj_dict_t *)&webrepl_locals_dict
locals_dict, &webrepl_locals_dict
);
STATIC const mp_rom_map_elem_t webrepl_module_globals_table[] = {

View File

@ -502,7 +502,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
network_cyw43_make_new,
print, network_cyw43_print,
locals_dict, (mp_obj_dict_t *)&network_cyw43_locals_dict
locals_dict, &network_cyw43_locals_dict
);
#endif // MICROPY_PY_NETWORK_CYW43

View File

@ -437,7 +437,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
fat_vfs_make_new,
protocol, &fat_vfs_proto,
locals_dict, (mp_obj_dict_t *)&fat_vfs_locals_dict
locals_dict, &fat_vfs_locals_dict
);
#endif // MICROPY_VFS_FAT

View File

@ -185,7 +185,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &vfs_fat_fileio_stream_p,
locals_dict, (mp_obj_dict_t *)&vfs_fat_rawfile_locals_dict
locals_dict, &vfs_fat_rawfile_locals_dict
);
STATIC const mp_stream_p_t vfs_fat_textio_stream_p = {
@ -204,7 +204,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &vfs_fat_textio_stream_p,
locals_dict, (mp_obj_dict_t *)&vfs_fat_rawfile_locals_dict
locals_dict, &vfs_fat_rawfile_locals_dict
);
// Factory function for I/O stream classes

View File

@ -514,7 +514,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_VFS_LFSx(make_new),
protocol, &MP_VFS_LFSx(proto),
locals_dict, (mp_obj_dict_t *)&MP_VFS_LFSx(locals_dict)
locals_dict, &MP_VFS_LFSx(locals_dict)
);
#undef VFS_LFSx_QSTR

View File

@ -229,7 +229,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &MP_VFS_LFSx(fileio_stream_p),
locals_dict, (mp_obj_dict_t *)&MP_VFS_LFSx(file_locals_dict)
locals_dict, &MP_VFS_LFSx(file_locals_dict)
);
STATIC const mp_stream_p_t MP_VFS_LFSx(textio_stream_p) = {
@ -248,5 +248,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &MP_VFS_LFSx(textio_stream_p),
locals_dict, (mp_obj_dict_t *)&MP_VFS_LFSx(file_locals_dict)
locals_dict, &MP_VFS_LFSx(file_locals_dict)
);

View File

@ -404,7 +404,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
vfs_posix_make_new,
protocol, &vfs_posix_proto,
locals_dict, (mp_obj_dict_t *)&vfs_posix_locals_dict
locals_dict, &vfs_posix_locals_dict
);
#endif // MICROPY_VFS_POSIX

View File

@ -258,7 +258,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &vfs_posix_fileio_stream_p,
locals_dict, (mp_obj_dict_t *)&vfs_posix_rawfile_locals_dict
locals_dict, &vfs_posix_rawfile_locals_dict
);
STATIC const mp_stream_p_t vfs_posix_textio_stream_p = {
@ -277,7 +277,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &vfs_posix_textio_stream_p,
locals_dict, (mp_obj_dict_t *)&vfs_posix_rawfile_locals_dict
locals_dict, &vfs_posix_rawfile_locals_dict
);
const mp_obj_vfs_posix_file_t mp_sys_stdin_obj = {{&mp_type_vfs_posix_textio}, STDIN_FILENO};

View File

@ -196,7 +196,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
call, mp_irq_call,
locals_dict, (mp_obj_t)&mp_irq_locals_dict
locals_dict, &mp_irq_locals_dict
);
MP_REGISTER_ROOT_POINTER(mp_obj_list_t mp_irq_obj_list);

View File

@ -176,6 +176,6 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_Server,
MP_TYPE_FLAG_NONE,
network_server_make_new,
locals_dict, (mp_obj_t)&network_server_locals_dict
locals_dict, &network_server_locals_dict
);
#endif

View File

@ -182,7 +182,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_sha1,
MP_TYPE_FLAG_NONE,
hash_make_new,
locals_dict, (mp_obj_t)&hash_locals_dict
locals_dict, &hash_locals_dict
);
STATIC MP_DEFINE_CONST_OBJ_TYPE(
@ -190,7 +190,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_sha256,
MP_TYPE_FLAG_NONE,
hash_make_new,
locals_dict, (mp_obj_t)&hash_locals_dict
locals_dict, &hash_locals_dict
);
STATIC const mp_rom_map_elem_t mp_module_hashlib_globals_table[] = {

View File

@ -765,7 +765,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
socket_make_new,
protocol, &socket_stream_p,
locals_dict, (mp_obj_t)&socket_locals_dict
locals_dict, &socket_locals_dict
);
/******************************************************************************/

View File

@ -68,7 +68,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
getiter, NULL,
iternext, NULL,
protocol, &socket_stream_p,
locals_dict, (mp_obj_t)&socket_locals_dict
locals_dict, &socket_locals_dict
);
STATIC mp_obj_t mod_ssl_wrap_socket(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

View File

@ -1290,7 +1290,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WLAN,
MP_TYPE_FLAG_NONE,
wlan_make_new,
locals_dict, (mp_obj_t)&wlan_locals_dict
locals_dict, &wlan_locals_dict
);
const mod_network_nic_type_t mod_network_nic_type_wlan = {

View File

@ -239,7 +239,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
adc_make_new,
print, adc_print,
locals_dict, (mp_obj_t)&adc_locals_dict
locals_dict, &adc_locals_dict
);
STATIC void adc_channel_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
@ -308,5 +308,5 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_NULL_MAKE_NEW,
print, adc_channel_print,
call, adc_channel_call,
locals_dict, (mp_obj_t)&adc_channel_locals_dict
locals_dict, &adc_channel_locals_dict
);

View File

@ -89,7 +89,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_Flash,
MP_TYPE_FLAG_NONE,
pyb_flash_make_new,
locals_dict, (mp_obj_t)&pyb_flash_locals_dict
locals_dict, &pyb_flash_locals_dict
);
void pyb_flash_init_vfs(fs_user_mount_t *vfs) {

View File

@ -527,5 +527,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
pyb_i2c_make_new,
print, pyb_i2c_print,
locals_dict, (mp_obj_t)&pyb_i2c_locals_dict
locals_dict, &pyb_i2c_locals_dict
);

View File

@ -938,7 +938,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
pin_make_new,
print, pin_print,
call, pin_call,
locals_dict, (mp_obj_t)&pin_locals_dict
locals_dict, &pin_locals_dict
);
STATIC const mp_irq_methods_t pin_irq_methods = {
@ -959,6 +959,6 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
print, pin_named_pins_obj_print,
locals_dict, (mp_obj_t)&pin_board_pins_locals_dict
locals_dict, &pin_board_pins_locals_dict
);

View File

@ -474,7 +474,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_RTC,
MP_TYPE_FLAG_NONE,
pyb_rtc_make_new,
locals_dict, (mp_obj_t)&pyb_rtc_locals_dict
locals_dict, &pyb_rtc_locals_dict
);
STATIC const mp_irq_methods_t pyb_rtc_irq_methods = {

View File

@ -217,5 +217,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_SD,
MP_TYPE_FLAG_NONE,
pyb_sd_make_new,
locals_dict, (mp_obj_t)&pyb_sd_locals_dict
locals_dict, &pyb_sd_locals_dict
);

View File

@ -383,5 +383,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
pyb_spi_make_new,
print, pyb_spi_print,
locals_dict, (mp_obj_t)&pyb_spi_locals_dict
locals_dict, &pyb_spi_locals_dict
);

View File

@ -465,7 +465,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
pyb_timer_make_new,
print, pyb_timer_print,
locals_dict, (mp_obj_t)&pyb_timer_locals_dict
locals_dict, &pyb_timer_locals_dict
);
STATIC const mp_irq_methods_t pyb_timer_channel_irq_methods = {
@ -728,7 +728,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
print, pyb_timer_channel_print,
locals_dict, (mp_obj_t)&pyb_timer_channel_locals_dict
locals_dict, &pyb_timer_channel_locals_dict
);
MP_REGISTER_ROOT_POINTER(mp_obj_list_t pyb_timer_channel_obj_list);

View File

@ -694,7 +694,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &uart_stream_p,
locals_dict, (mp_obj_t)&pyb_uart_locals_dict
locals_dict, &pyb_uart_locals_dict
);
MP_REGISTER_ROOT_POINTER(struct _pyb_uart_obj_t *pyb_uart_objs[2]);

View File

@ -155,6 +155,6 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WDT,
MP_TYPE_FLAG_NONE,
pyb_wdt_make_new,
locals_dict, (mp_obj_t)&pybwdt_locals_dict
locals_dict, &pybwdt_locals_dict
);

View File

@ -147,5 +147,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
esp32_nvs_make_new,
print, esp32_nvs_print,
locals_dict, (mp_obj_dict_t *)&esp32_nvs_locals_dict
locals_dict, &esp32_nvs_locals_dict
);

View File

@ -290,5 +290,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
esp32_partition_make_new,
print, esp32_partition_print,
locals_dict, (mp_obj_dict_t *)&esp32_partition_locals_dict
locals_dict, &esp32_partition_locals_dict
);

View File

@ -378,5 +378,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
esp32_rmt_make_new,
print, esp32_rmt_print,
locals_dict, (mp_obj_dict_t *)&esp32_rmt_locals_dict
locals_dict, &esp32_rmt_locals_dict
);

View File

@ -96,7 +96,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_ULP,
MP_TYPE_FLAG_NONE,
esp32_ulp_make_new,
locals_dict, (mp_obj_t)&esp32_ulp_locals_dict
locals_dict, &esp32_ulp_locals_dict
);
#endif // CONFIG_IDF_TARGET_ESP32

View File

@ -262,5 +262,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
madc_make_new,
print, madc_print,
locals_dict, (mp_obj_t)&madc_locals_dict
locals_dict, &madc_locals_dict
);

View File

@ -200,5 +200,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
madcblock_make_new,
print, madcblock_print,
locals_dict, (mp_obj_dict_t *)&madcblock_locals_dict
locals_dict, &madcblock_locals_dict
);

View File

@ -110,7 +110,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
mdac_make_new,
print, mdac_print,
locals_dict, (mp_obj_t)&mdac_locals_dict
locals_dict, &mdac_locals_dict
);
#endif // MICROPY_PY_MACHINE_DAC

View File

@ -552,5 +552,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_hw_spi_make_new,
print, machine_hw_spi_print,
protocol, &machine_hw_spi_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_spi_locals_dict
locals_dict, &mp_machine_spi_locals_dict
);

View File

@ -199,5 +199,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_hw_i2c_make_new,
print, machine_hw_i2c_print,
protocol, &machine_hw_i2c_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_i2c_locals_dict
locals_dict, &mp_machine_i2c_locals_dict
);

View File

@ -838,7 +838,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &i2s_stream_p,
locals_dict, (mp_obj_dict_t *)&machine_i2s_locals_dict
locals_dict, &machine_i2s_locals_dict
);
MP_REGISTER_ROOT_POINTER(struct _machine_i2s_obj_t *machine_i2s_obj[I2S_NUM_MAX]);

View File

@ -537,7 +537,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
print, machine_pin_print,
call, machine_pin_call,
protocol, &pin_pin_p,
locals_dict, (mp_obj_t)&machine_pin_locals_dict
locals_dict, &machine_pin_locals_dict
);
/******************************************************************************/
@ -730,7 +730,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
call, machine_pin_irq_call,
locals_dict, (mp_obj_dict_t *)&machine_pin_irq_locals_dict
locals_dict, &machine_pin_irq_locals_dict
);
MP_REGISTER_ROOT_POINTER(mp_obj_t machine_pin_irq_handler[40]);

View File

@ -178,5 +178,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_RTC,
MP_TYPE_FLAG_NONE,
machine_rtc_make_new,
locals_dict, (mp_obj_t)&machine_rtc_locals_dict
locals_dict, &machine_rtc_locals_dict
);

View File

@ -404,7 +404,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_SDCard,
MP_TYPE_FLAG_NONE,
machine_sdcard_make_new,
locals_dict, (mp_obj_dict_t *)&machine_sdcard_locals_dict
locals_dict, &machine_sdcard_locals_dict
);
#endif // MICROPY_HW_ENABLE_SDCARD

View File

@ -283,7 +283,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
machine_timer_make_new,
print, machine_timer_print,
locals_dict, (mp_obj_t)&machine_timer_locals_dict
locals_dict, &machine_timer_locals_dict
);
MP_REGISTER_ROOT_POINTER(struct _machine_timer_obj_t *machine_timer_obj_head);

View File

@ -139,7 +139,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_TouchPad,
MP_TYPE_FLAG_NONE,
mtp_make_new,
locals_dict, (mp_obj_t)&mtp_locals_dict
locals_dict, &mtp_locals_dict
);
#endif // CONFIG_IDF_TARGET_ESP32

View File

@ -539,5 +539,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &uart_stream_p,
locals_dict, (mp_obj_dict_t *)&machine_uart_locals_dict
locals_dict, &machine_uart_locals_dict
);

View File

@ -88,5 +88,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WDT,
MP_TYPE_FLAG_NONE,
machine_wdt_make_new,
locals_dict, (mp_obj_t)&machine_wdt_locals_dict
locals_dict, &machine_wdt_locals_dict
);

View File

@ -791,7 +791,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
socket_make_new,
protocol, &socket_stream_p,
locals_dict, (mp_obj_t)&socket_locals_dict
locals_dict, &socket_locals_dict
);
STATIC mp_obj_t esp_socket_getaddrinfo(size_t n_args, const mp_obj_t *args) {

View File

@ -307,7 +307,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_LAN,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t *)&lan_if_locals_dict
locals_dict, &lan_if_locals_dict
);
#endif

View File

@ -283,5 +283,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_PPP,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t *)&ppp_if_locals_dict
locals_dict, &ppp_if_locals_dict
);

View File

@ -620,7 +620,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WLAN,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t *)&wlan_if_locals_dict
locals_dict, &wlan_if_locals_dict
);
STATIC const wlan_if_obj_t wlan_sta_obj = {{&wlan_if_type}, WIFI_IF_STA};

View File

@ -95,5 +95,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
machine_adc_make_new,
print, machine_adc_print,
locals_dict, (mp_obj_dict_t *)&machine_adc_locals_dict
locals_dict, &machine_adc_locals_dict
);

View File

@ -182,7 +182,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_hspi_make_new,
print, machine_hspi_print,
protocol, &machine_hspi_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_spi_locals_dict
locals_dict, &mp_machine_spi_locals_dict
);
#endif // MICROPY_PY_MACHINE_SPI

View File

@ -458,7 +458,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
print, pyb_pin_print,
call, pyb_pin_call,
protocol, &pin_pin_p,
locals_dict, (mp_obj_dict_t *)&pyb_pin_locals_dict
locals_dict, &pyb_pin_locals_dict
);
/******************************************************************************/
@ -516,7 +516,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
call, pin_irq_call,
locals_dict, (mp_obj_dict_t *)&pin_irq_locals_dict
locals_dict, &pin_irq_locals_dict
);
MP_REGISTER_ROOT_POINTER(mp_obj_t pin_irq_handler[16]);

View File

@ -267,5 +267,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_RTC,
MP_TYPE_FLAG_NONE,
pyb_rtc_make_new,
locals_dict, (mp_obj_dict_t *)&pyb_rtc_locals_dict
locals_dict, &pyb_rtc_locals_dict
);

View File

@ -352,7 +352,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &uart_stream_p,
locals_dict, (mp_obj_dict_t *)&pyb_uart_locals_dict
locals_dict, &pyb_uart_locals_dict
);
MP_REGISTER_ROOT_POINTER(byte * uart0_rxbuf);

View File

@ -74,5 +74,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WDT,
MP_TYPE_FLAG_NONE,
machine_wdt_make_new,
locals_dict, (mp_obj_dict_t *)&machine_wdt_locals_dict
locals_dict, &machine_wdt_locals_dict
);

View File

@ -343,7 +343,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
esp_timer_make_new,
print, esp_timer_print,
locals_dict, (mp_obj_dict_t *)&esp_timer_locals_dict
locals_dict, &esp_timer_locals_dict
);
// this bit is unused in the Xtensa PS register

View File

@ -515,7 +515,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WLAN,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t *)&wlan_if_locals_dict
locals_dict, &wlan_if_locals_dict
);
STATIC mp_obj_t esp_phy_mode(size_t n_args, const mp_obj_t *args) {

View File

@ -123,7 +123,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
adc_obj_make_new,
print, adc_obj_print,
locals_dict, (mp_obj_dict_t *)&adc_locals_dict
locals_dict, &adc_locals_dict
);
void machine_adc_init(void) {

View File

@ -204,5 +204,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_i2c_make_new,
print, machine_i2c_print,
protocol, &machine_i2c_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_i2c_locals_dict
locals_dict, &mp_machine_i2c_locals_dict
);

View File

@ -1222,7 +1222,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &i2s_stream_p,
locals_dict, (mp_obj_dict_t *)&machine_i2s_locals_dict
locals_dict, &machine_i2s_locals_dict
);
MP_REGISTER_ROOT_POINTER(struct _machine_i2s_obj_t *machine_i2s_obj[MICROPY_HW_I2S_NUM]);

View File

@ -86,7 +86,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
led_obj_make_new,
print, led_obj_print,
locals_dict, (mp_obj_dict_t *)&led_locals_dict
locals_dict, &led_locals_dict
);
#endif

View File

@ -63,7 +63,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_cpu,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_t)&machine_pin_cpu_pins_locals_dict
locals_dict, &machine_pin_cpu_pins_locals_dict
);
MP_DEFINE_CONST_OBJ_TYPE(
@ -71,7 +71,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_board,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_t)&machine_pin_board_pins_locals_dict
locals_dict, &machine_pin_board_pins_locals_dict
);
STATIC const mp_irq_methods_t machine_pin_irq_methods;
@ -428,7 +428,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
print, machine_pin_obj_print,
call, machine_pin_obj_call,
protocol, &machine_pin_obj_protocol,
locals_dict, (mp_obj_dict_t *)&machine_pin_locals_dict
locals_dict, &machine_pin_locals_dict
);
// FIXME: Create actual pin_af type!!!
@ -438,7 +438,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
mp_pin_make_new,
print, machine_pin_obj_print,
locals_dict, (mp_obj_dict_t *)&machine_pin_locals_dict
locals_dict, &machine_pin_locals_dict
);
STATIC mp_uint_t machine_pin_irq_trigger(mp_obj_t self_in, mp_uint_t new_trigger) {

View File

@ -171,5 +171,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_RTC,
MP_TYPE_FLAG_NONE,
machine_rtc_make_new,
locals_dict, (mp_obj_t)&machine_rtc_locals_dict
locals_dict, &machine_rtc_locals_dict
);

View File

@ -213,7 +213,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_SDCard,
MP_TYPE_FLAG_NONE,
sdcard_obj_make_new,
locals_dict, (mp_obj_dict_t *)&sdcard_locals_dict
locals_dict, &sdcard_locals_dict
);
void machine_sdcard_init0(void) {

View File

@ -258,5 +258,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_spi_make_new,
print, machine_spi_print,
protocol, &machine_spi_p,
locals_dict, (mp_obj_dict_t *)&mp_machine_spi_locals_dict
locals_dict, &mp_machine_spi_locals_dict
);

View File

@ -217,7 +217,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
machine_timer_make_new,
print, machine_timer_print,
locals_dict, (mp_obj_dict_t *)&machine_timer_locals_dict
locals_dict, &machine_timer_locals_dict
);
MP_REGISTER_ROOT_POINTER(struct _machine_timer_obj_t *timer_table[MICROPY_HW_PIT_NUM_CHANNELS]);

View File

@ -478,5 +478,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &uart_stream_p,
locals_dict, (mp_obj_dict_t *)&machine_uart_locals_dict
locals_dict, &machine_uart_locals_dict
);

View File

@ -104,5 +104,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_WDT,
MP_TYPE_FLAG_NONE,
machine_wdt_make_new,
locals_dict, (mp_obj_dict_t *)&machine_wdt_locals_dict
locals_dict, &machine_wdt_locals_dict
);

View File

@ -220,5 +220,5 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_Flash,
MP_TYPE_FLAG_NONE,
mimxrt_flash_make_new,
locals_dict, (mp_obj_dict_t *)&mimxrt_flash_locals_dict
locals_dict, &mimxrt_flash_locals_dict
);

View File

@ -226,7 +226,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
network_lan_make_new,
print, network_lan_print,
locals_dict, (mp_obj_dict_t *)&network_lan_locals_dict
locals_dict, &network_lan_locals_dict
);

View File

@ -547,7 +547,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_MicroBitDisplay,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t*)&microbit_display_locals_dict
locals_dict, &microbit_display_locals_dict
);
microbit_display_obj_t microbit_display_obj = {

View File

@ -685,7 +685,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
microbit_image_make_new,
print, microbit_image_print,
binary_op, image_binary_op,
locals_dict, (mp_obj_dict_t*)&microbit_image_locals_dict
locals_dict, &microbit_image_locals_dict
);
typedef struct _scrolling_string_t {

View File

@ -200,7 +200,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
led_obj_make_new,
print, led_obj_print,
locals_dict, (mp_obj_dict_t*)&led_locals_dict
locals_dict, &led_locals_dict
);
#else

View File

@ -299,7 +299,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_ADC,
MP_TYPE_FLAG_NONE,
machine_adc_make_new,
locals_dict, (mp_obj_dict_t*)&machine_adc_locals_dict,
locals_dict, &machine_adc_locals_dict,
print, machine_adc_print
);

View File

@ -168,7 +168,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_hard_i2c_make_new,
print, machine_hard_i2c_print,
protocol, &machine_hard_i2c_p,
locals_dict, (mp_obj_dict_t*)&mp_machine_i2c_locals_dict
locals_dict, &mp_machine_i2c_locals_dict
);
#endif // MICROPY_PY_MACHINE_I2C

View File

@ -603,7 +603,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
pin_make_new,
print, pin_print,
call, pin_call,
locals_dict, (mp_obj_dict_t*)&pin_locals_dict
locals_dict, &pin_locals_dict
);
/// \moduleref machine
@ -678,7 +678,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
print, pin_af_obj_print,
locals_dict, (mp_obj_dict_t*)&pin_af_locals_dict
locals_dict, &pin_af_locals_dict
);
MP_REGISTER_ROOT_POINTER(mp_obj_t pin_class_mapper);

View File

@ -345,7 +345,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
machine_pwm_make_new,
print, machine_pwm_print,
locals_dict, (mp_obj_dict_t*)&machine_pwm_locals_dict
locals_dict, &machine_pwm_locals_dict
);
#endif // MICROPY_PY_MACHINE_HW_PWM

View File

@ -268,7 +268,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
machine_rtc_make_new,
print, rtc_print,
locals_dict, (mp_obj_dict_t*)&machine_rtc_locals_dict
locals_dict, &machine_rtc_locals_dict
);
#endif // MICROPY_PY_MACHINE_RTCOUNTER

View File

@ -434,7 +434,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
machine_spi_make_new,
print, machine_hard_spi_print,
protocol, &machine_hard_spi_p,
locals_dict, (mp_obj_dict_t*)&machine_spi_locals_dict
locals_dict, &machine_spi_locals_dict
);
#endif // MICROPY_PY_MACHINE_HW_SPI

View File

@ -117,7 +117,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_Temp,
MP_TYPE_FLAG_NONE,
machine_temp_make_new,
locals_dict, (mp_obj_dict_t*)&machine_temp_locals_dict,
locals_dict, &machine_temp_locals_dict,
print, machine_temp_print
);

View File

@ -240,7 +240,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
machine_timer_make_new,
print, timer_print,
locals_dict, (mp_obj_dict_t*)&machine_timer_locals_dict
locals_dict, &machine_timer_locals_dict
);
#endif // MICROPY_PY_MACHINE_TIMER

View File

@ -379,7 +379,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
getiter, mp_identity_getiter,
iternext, mp_stream_unbuffered_iter,
protocol, &uart_stream_p,
locals_dict, (mp_obj_dict_t*)&machine_hard_uart_locals_dict
locals_dict, &machine_hard_uart_locals_dict
);
#endif // MICROPY_PY_MACHINE_UART

View File

@ -189,7 +189,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
nrf_flashbdev_make_new,
print, nrf_flashbdev_print,
locals_dict, (mp_obj_dict_t *)&nrf_flashbdev_locals_dict
locals_dict, &nrf_flashbdev_locals_dict
);
void flashbdev_init(void) {

View File

@ -215,7 +215,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
ubluepy_characteristic_make_new,
print, ubluepy_characteristic_print,
locals_dict, (mp_obj_dict_t*)&ubluepy_characteristic_locals_dict
locals_dict, &ubluepy_characteristic_locals_dict
);
#endif // MICROPY_PY_UBLUEPY_PERIPHERAL || MICROPY_PY_UBLUEPY_CENTRAL

View File

@ -74,7 +74,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_ad_types,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t*)&ubluepy_constants_ad_types_locals_dict
locals_dict, &ubluepy_constants_ad_types_locals_dict
);
STATIC const mp_rom_map_elem_t ubluepy_constants_locals_dict_table[] = {
@ -97,7 +97,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_constants,
MP_TYPE_FLAG_NONE,
MP_TYPE_NULL_MAKE_NEW,
locals_dict, (mp_obj_dict_t*)&ubluepy_constants_locals_dict
locals_dict, &ubluepy_constants_locals_dict
);
#endif // MICROPY_PY_UBLUEPY

View File

@ -83,7 +83,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_FLAG_NONE,
ubluepy_delegate_make_new,
print, ubluepy_delegate_print,
locals_dict, (mp_obj_dict_t*)&ubluepy_delegate_locals_dict
locals_dict, &ubluepy_delegate_locals_dict
);
#endif // MICROPY_PY_UBLUEPY_PERIPHERAL || MICROPY_PY_UBLUEPY_CENTRAL

Some files were not shown because too many files have changed in this diff Show More