Hey @avtolstoy
I’m working on some code with PPI (nrfx_ppi to be exact) and noticed that it’s trying to reference the pin definition for CHG instead of the register address of the same name.
Creating /Users/jaredwolff/Circuit_Dojo/dreamstar-cabinet/target/1.4.0/xenon/platform_user_ram.ld ...
In file included from ../hal/src/nRF52840/pinmap_impl.h:58:0,
from ../hal/inc/pinmap_hal.h:64,
from ../hal/inc/interrupts_hal.h:39,
from ../wiring/inc/spark_wiring.h:29,
from ./inc/application.h:40,
from /Users/jaredwolff/Circuit_Dojo/dreamstar-cabinet//src/dreamstar-cabinet.cpp:5:
../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal/nrf_ppi.h: In function 'void nrf_ppi_channel_include_in_group(nrf_ppi_channel_t, nrf_ppi_channel_group_t)':
../hal/src/xenon/pinmap_defines.h:83:13: error: expected unqualified-id before numeric constant
#define CHG 26
^
../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal/nrf_ppi.h:456:14: note: in expansion of macro 'CHG'
NRF_PPI->CHG[(uint32_t) channel_group] =
I saw you were using PPI elsewhere in the code so I’m figuring you probably ran in to the same problem. Any suggestions? I’ve renamed CHG for now in my local testing but it’s going to be more tough once these devices get deployed. 
