boards: bbc_microbit: Fix usage of GPIOTE channels
There are only 4 GPIOTE channels available in the nRF51 SoC that is used in the bbc_microbit board. After the display driver for the board has been reworked to use the nRF LED matrix display driver underneath (see commit 44585b7f), 3 of those are used for handling the display, so only 1 remains for other uses. This causes problems with handling of buttons (as it needs GPIO interrupts and by default the GPIO shim driver uses GPIOTE channels for their generation) and also the SW PWM driver fails to initialize in its default configuration (as it requires 3 GPIOTE channels for providing 3 PWM channels). And because of these problems, for example, the pong sample does not work. This commit addresses the problems by changing two things: - it configures the GPIO shim driver to use the sensing mechanism instead of GPIOTE channels for interrupt generation for all pins - it limits the number of available SW PWM channels to 1 (instead of the default 3) Signed-off-by:Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
Loading
Please sign in to comment