circuitpython/ports/nrf/modules
Glenn Ruben Bakke 6e8a605500 nrf/modules/machine/pin: Add support for IRQ on Pin's
This patch ads irq method to the pin object. Handlers
registered in the irq method will be kept as part of the
ROOT_POINTERS.

In order to resolve which pin object is the root of the
IRQ, the pin_find has been extended to also be able to
search up Pin objects based on mp_int_t pin number.
This also implies that the Pin.new API is now also supporting
creation of Pin objects based on the integer value of the
pin instead of old style mandating string name of the Pin.

All boards have been updated to use real pin number from
0-48 instead of pin_Pxx for UART/SPI and music module pins.

UART/SPI/modmusic has also been updated to use pin number
provided directly or look up the Pin object based on the
integer value of the pin (modmusic).

Pin generation has been updated to create a list of pins, where
the board/cpu dicts are now refering to an index in this list
instead of having one const declaration for each pin. This new
const table makes it possible to iterate through all pins generated
in order to locate the correct Pin object.
2018-07-18 17:12:26 +10:00
..
ble nrf: Update usage of mp_obj_new_str by removing last parameter. 2018-07-18 17:12:25 +10:00
machine nrf/modules/machine/pin: Add support for IRQ on Pin's 2018-07-18 17:12:26 +10:00
music nrf/modules/machine/pin: Add support for IRQ on Pin's 2018-07-18 17:12:26 +10:00
pyb nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
random nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
ubluepy nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
uos nrf: Make linker scripts more modular. 2018-07-18 17:12:26 +10:00
utime nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00