fix nrf52832 build

This commit is contained in:
hathach 2018-09-04 20:54:36 +07:00
parent 1fe3ed87eb
commit b9e8e3cd1f
1 changed files with 4 additions and 0 deletions

View File

@ -206,7 +206,11 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
// the LEDs and if you are not using the EasyDMA feature.
__disable_irq();
#ifdef NRF52840_XXAA
NRF_GPIO_Type* port = ( digitalinout->pin->port ? NRF_P1 : NRF_P0 );
#else
NRF_GPIO_Type* port = NRF_P0;
#endif
uint32_t pinMask = ( 1UL << digitalinout->pin->pin );
uint32_t CYCLES_X00 = CYCLES_800;