<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to undefined LEDs and Buttons in custom code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21726/how-to-undefined-leds-and-buttons-in-custom-code</link><description>Hi, 
 In my application, using BMD301 i have made one custom PCB. I am using SDK 12.0.0. In my PCB I have not used all the four LEDs. I have assigned p0.19 to the BSP_LED_0 which is required for advertising indication. all the Other BSP_LEDs i am not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 May 2017 09:20:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21726/how-to-undefined-leds-and-buttons-in-custom-code" /><item><title>RE: How to undefined LEDs and Buttons in custom code?</title><link>https://devzone.nordicsemi.com/thread/85345?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 09:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2cd5e74-054e-4051-bbb9-845721cbf2c9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can either create your own board file, or modify an existing one in order to add support for your custom board in the BSP module. Take a look at this &lt;a href="https://devzone.nordicsemi.com/question/110526/supporting-a-custom-board-with-nrf5-sdk-examples/?answer=110536#post-id-110536"&gt;answer&lt;/a&gt; on how to create your own board file.&lt;/p&gt;
&lt;p&gt;You can start by modifying the LED definitions in pca10040.h board file to support only one LED:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define LEDS_NUMBER    1

#define LED_START      19
#define LED_1          19
#define LED_STOP       19

#define LEDS_ACTIVE_STATE 0

#define LEDS_INV_MASK  LEDS_MASK

#define LEDS_LIST { LED_1}

#define BSP_LED_0      LED_1
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to undefined LEDs and Buttons in custom code?</title><link>https://devzone.nordicsemi.com/thread/85344?ContentTypeID=1</link><pubDate>Sat, 29 Apr 2017 05:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a058412f-fbd5-4038-8173-fb58211d405d</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;In my custom PCB board I have assignes P0.20 as SPI clk for ADXL 362 acceleromter.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  #define ADXL_SCK              20
  #define ADXL_MOSI             0
  #define ADXL_MISO             1
  #define ADXL_CS               18
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But proper configuration is not happening. Same thing I tried on eval kit and I faced same issue. Then simply changed ADXL_SCK to 3 then SPI configurations worked fine.&lt;/p&gt;
&lt;p&gt;What is the issue with p0.20.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>