Added LDO control pin, new flash variants and support functions for the LDO control pin.
This commit is contained in:
parent
9ef5b7d118
commit
f7e735b492
@ -23,14 +23,3 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "supervisor/board.h"
|
||||
#include "nrf_gpio.h"
|
||||
|
||||
#define PORTPIN(x, y) (x * 32 + y)
|
||||
|
||||
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
|
||||
void board_init(void) {
|
||||
nrf_gpio_cfg_output(PORTPIN(1, 9));
|
||||
nrf_gpio_pin_write(PORTPIN(1, 9), 1);
|
||||
}
|
||||
|
14
ports/nrf/boards/challenger_840/challenger_840.py
Normal file
14
ports/nrf/boards/challenger_840/challenger_840.py
Normal file
@ -0,0 +1,14 @@
|
||||
import board
|
||||
import digitalio
|
||||
|
||||
_LDO_PIN = digitalio.DigitalInOut(board.LDO_CONTROL)
|
||||
_LDO_PIN.direction = digitalio.Direction.OUTPUT
|
||||
_LDO_PIN.value = True
|
||||
|
||||
def ldo_on():
|
||||
global _LDO_PIN
|
||||
_LDO_PIN.value = True
|
||||
|
||||
def ldo_off():
|
||||
global _LDO_PIN
|
||||
_LDO_PIN.value = False
|
@ -6,4 +6,8 @@ USB_MANUFACTURER = "Invector Labs AB"
|
||||
MCU_CHIP = nrf52840
|
||||
|
||||
SPI_FLASH_FILESYSTEM = 1
|
||||
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ,W25Q32FV,W25Q64FV"
|
||||
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ,W25Q32FV,W25Q32JVxQ,W25Q64FV,W25Q64JVxQ"
|
||||
|
||||
FROZEN_MPY_DIRS += $(TOP)/ports/nrf/boards/challenger_840
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BLE
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||
|
Loading…
Reference in New Issue
Block a user