Skip to content

Commit a423844

Browse files
committed
【完善】pin 高低电平中断
1 parent fe699c3 commit a423844

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

port/genhdr/qstrdefs.generated.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,4 +766,6 @@ QDEF(MP_QSTR_file_crc32, (const byte*)"\x6f\x0a" "file_crc32")
766766
QDEF(MP_QSTR_list_device, (const byte*)"\x20\x0b" "list_device")
767767
QDEF(MP_QSTR_show_image, (const byte*)"\xde\x0a" "show_image")
768768
QDEF(MP_QSTR_IRQ, (const byte*)"\xaf\x03" "IRQ")
769+
QDEF(MP_QSTR_IRQ_HIGH_LEVEL, (const byte*)"\x57\x0e" "IRQ_HIGH_LEVEL")
770+
QDEF(MP_QSTR_IRQ_LOW_LEVEL, (const byte*)"\x8d\x0d" "IRQ_LOW_LEVEL")
769771
// This file was automatically generated by makeqstrdata.py

port/modules/machine/machine_pin.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ STATIC const mp_rom_map_elem_t machine_pin_locals_dict_table[] = {
275275
{ MP_ROM_QSTR(MP_QSTR_IRQ_RISING), MP_ROM_INT(PIN_IRQ_MODE_RISING) },
276276
{ MP_ROM_QSTR(MP_QSTR_IRQ_FALLING), MP_ROM_INT(PIN_IRQ_MODE_FALLING) },
277277
{ MP_ROM_QSTR(MP_QSTR_IRQ_RISING_FALLING), MP_ROM_INT(PIN_IRQ_MODE_RISING_FALLING) },
278+
{ MP_ROM_QSTR(MP_QSTR_IRQ_LOW_LEVEL), MP_ROM_INT(PIN_IRQ_MODE_LOW_LEVEL) },
279+
{ MP_ROM_QSTR(MP_QSTR_IRQ_HIGH_LEVEL), MP_ROM_INT(PIN_IRQ_MODE_HIGH_LEVEL) },
278280
};
279281

280282
STATIC MP_DEFINE_CONST_DICT(machine_pin_locals_dict, machine_pin_locals_dict_table);

0 commit comments

Comments
 (0)