<?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>Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40386/question-about-current-in-low-power-mode</link><description>Hi softdevice uses s130 The board is using nrf51 dk. The example uses the ble_app_beacon example from sdk12.3. if (switch_hit ()) { // NRF_POWER-&amp;gt; SYSTEMOFF = 1; // sd_power_system_off (); sd_ble_gap_adv_stop (); power_manage (); } I measured the current</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Nov 2018 01:28:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40386/question-about-current-in-low-power-mode" /><item><title>RE: Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/thread/157188?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 01:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0eee082-ad63-4a63-82dc-48299a9bd2b2</guid><dc:creator>psj</dc:creator><description>&lt;div class="g-section" id="gt-c"&gt;
&lt;div id="gt-form-c"&gt;
&lt;div id="gt-text-all"&gt;
&lt;div id="gt-main"&gt;
&lt;div id="gt-text-c"&gt;
&lt;div id="gt-text-top"&gt;
&lt;div class="g-unit" id="gt-res-c"&gt;
&lt;div id="gt-res-p"&gt;
&lt;div id="gt-res-data"&gt;
&lt;div id="gt-res-wrap"&gt;
&lt;div id="gt-res-content"&gt;
&lt;div class="trans-verified-button-large" id="gt-res-dir-ctr" dir="ltr"&gt;&lt;span class="short_text" id="result_box" lang="en"&gt;&lt;span&gt;Thank you. That was the problem.&lt;/span&gt;&lt;/span&gt;&lt;span class="trans-verified-button goog-toolbar-button" id="t-served-community-button"&gt;&lt;span class="jfk-button-img"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/thread/157035?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 10:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4ca161-7e74-40a5-b389-2b779d13df2e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you are using GPIOTE IN interrupt, the current consumption will be around 1mA as the function require the HFCLK. If you want lower power , please use GPIOTE PORT interrupt instead.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/thread/156970?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 00:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c00fb943-eefe-470f-9e97-1ce09904b8e4</guid><dc:creator>psj</dc:creator><description>&lt;div class="g-section" id="gt-c"&gt;
&lt;div id="gt-form-c"&gt;
&lt;div id="gt-text-all"&gt;
&lt;div id="gt-main"&gt;
&lt;div id="gt-text-c"&gt;
&lt;div id="gt-text-top"&gt;
&lt;div class="g-unit" id="gt-res-c"&gt;
&lt;div id="gt-res-p"&gt;
&lt;div id="gt-res-data"&gt;
&lt;div id="gt-res-wrap"&gt;
&lt;div id="gt-res-content"&gt;
&lt;div class="trans-verified-button-large" id="gt-res-dir-ctr" dir="ltr"&gt;&lt;span class="short_text" id="result_box" lang="en"&gt;&lt;span&gt;If it is a power reset, do you mean to just turn it off and on?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/thread/156969?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 00:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38bc6e14-ceaa-4c25-acec-2b27d2052a69</guid><dc:creator>psj</dc:creator><description>&lt;p&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdint.h&amp;gt;&lt;br /&gt;#include &amp;quot;ble_advdata.h&amp;quot;&lt;br /&gt;#include &amp;quot;nordic_common.h&amp;quot;&lt;br /&gt;#include &amp;quot;softdevice_handler.h&amp;quot;&lt;br /&gt;#include &amp;quot;bsp.h&amp;quot;&lt;br /&gt;#include &amp;quot;app_timer.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log_ctrl.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_drv_gpiote.h&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#define CENTRAL_LINK_COUNT 0 /**&amp;lt; Number of central links used by the application. When changing this number remember to adjust the RAM settings*/&lt;br /&gt;#define PERIPHERAL_LINK_COUNT 0 /**&amp;lt; Number of peripheral links used by the application. When changing this number remember to adjust the RAM settings*/&lt;/p&gt;
&lt;p&gt;#define IS_SRVC_CHANGED_CHARACT_PRESENT 0 /**&amp;lt; Include or not the service_changed characteristic. if not enabled, the server&amp;#39;s database cannot be changed for the lifetime of the device*/&lt;/p&gt;
&lt;p&gt;#define APP_CFG_NON_CONN_ADV_TIMEOUT 0 /**&amp;lt; Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout. */&lt;br /&gt;#define NON_CONNECTABLE_ADV_INTERVAL MSEC_TO_UNITS(100, UNIT_0_625_MS) /**&amp;lt; The advertising interval for non-connectable advertisement (100 ms). This value can vary between 100ms to 10.24s). */&lt;/p&gt;
&lt;p&gt;#define APP_BEACON_INFO_LENGTH 0x17 /**&amp;lt; Total length of information advertised by the Beacon. */&lt;br /&gt;#define APP_ADV_DATA_LENGTH 0x15 /**&amp;lt; Length of manufacturer specific data in the advertisement. */&lt;br /&gt;#define APP_DEVICE_TYPE 0x02 /**&amp;lt; 0x02 refers to Beacon. */&lt;br /&gt;#define APP_MEASURED_RSSI 0xC3 /**&amp;lt; The Beacon&amp;#39;s measured RSSI at 1 meter distance in dBm. */&lt;br /&gt;#define APP_COMPANY_IDENTIFIER 0x0059 /**&amp;lt; Company identifier for Nordic Semiconductor ASA. as per www.bluetooth.org. */&lt;br /&gt;#define APP_MAJOR_VALUE 0x01, 0x02 /**&amp;lt; Major value used to identify Beacons. */&lt;br /&gt;#define APP_MINOR_VALUE 0x03, 0x04 /**&amp;lt; Minor value used to identify Beacons. */&lt;br /&gt;#define APP_BEACON_UUID 0x01, 0x12, 0x23, 0x34, \&lt;br /&gt; 0x45, 0x56, 0x67, 0x78, \&lt;br /&gt; 0x89, 0x9a, 0xab, 0xbc, \&lt;br /&gt; 0xcd, 0xde, 0xef, 0xf0 /**&amp;lt; Proprietary UUID for Beacon. */&lt;/p&gt;
&lt;p&gt;#define DEAD_BEEF 0xDEADBEEF /**&amp;lt; Value used as error code on stack dump, can be used to identify stack location on stack unwind. */&lt;/p&gt;
&lt;p&gt;#define APP_TIMER_PRESCALER 0 /**&amp;lt; Value of the RTC1 PRESCALER register. */&lt;br /&gt;#define APP_TIMER_OP_QUEUE_SIZE 4 /**&amp;lt; Size of timer operation queues. */&lt;/p&gt;
&lt;p&gt;#if defined(USE_UICR_FOR_MAJ_MIN_VALUES)&lt;br /&gt;#define MAJ_VAL_OFFSET_IN_BEACON_INFO 18 /**&amp;lt; Position of the MSB of the Major Value in m_beacon_info array. */&lt;br /&gt;#define UICR_ADDRESS 0x10001080 /**&amp;lt; Address of the UICR register used by this example. The major and minor versions to be encoded into the advertising data will be picked up from this location. */&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;static ble_gap_adv_params_t m_adv_params; /**&amp;lt; Parameters to be passed to the stack when starting advertising. */&lt;br /&gt;static uint8_t m_beacon_info[APP_BEACON_INFO_LENGTH] = /**&amp;lt; Information advertised by the Beacon. */&lt;br /&gt;{&lt;br /&gt; APP_DEVICE_TYPE, // Manufacturer specific information. Specifies the device type in this&lt;br /&gt; // implementation.&lt;br /&gt; APP_ADV_DATA_LENGTH, // Manufacturer specific information. Specifies the length of the&lt;br /&gt; // manufacturer specific data in this implementation.&lt;br /&gt; APP_BEACON_UUID, // 128 bit UUID value.&lt;br /&gt; APP_MAJOR_VALUE, // Major arbitrary value that can be used to distinguish between Beacons.&lt;br /&gt; APP_MINOR_VALUE, // Minor arbitrary value that can be used to distinguish between Beacons.&lt;br /&gt; APP_MEASURED_RSSI // Manufacturer specific information. The Beacon&amp;#39;s measured TX power in&lt;br /&gt; // this implementation.&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;/**@brief Callback function for asserts in the SoftDevice.&lt;br /&gt; *&lt;br /&gt; * @details This function will be called in case of an assert in the SoftDevice.&lt;br /&gt; *&lt;br /&gt; * @warning This handler is an example only and does not fit a final product. You need to analyze&lt;br /&gt; * how your product is supposed to react in case of Assert.&lt;br /&gt; * @warning On assert from the SoftDevice, the system can only recover on reset.&lt;br /&gt; *&lt;br /&gt; * @param[in] line_num Line number of the failing ASSERT call.&lt;br /&gt; * @param[in] file_name File name of the failing ASSERT call.&lt;br /&gt; */&lt;br /&gt;void assert_nrf_callback(uint16_t line_num, const uint8_t * p_file_name)&lt;br /&gt;{&lt;br /&gt; app_error_handler(DEAD_BEEF, line_num, p_file_name);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;/**@brief Function for initializing the Advertising functionality.&lt;br /&gt; *&lt;br /&gt; * @details Encodes the required advertising data and passes it to the stack.&lt;br /&gt; * Also builds a structure to be passed to the stack when starting advertising.&lt;br /&gt; */&lt;br /&gt;static void advertising_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; ble_advdata_t advdata;&lt;br /&gt; uint8_t flags = BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED;&lt;/p&gt;
&lt;p&gt;ble_advdata_manuf_data_t manuf_specific_data;&lt;/p&gt;
&lt;p&gt;manuf_specific_data.company_identifier = APP_COMPANY_IDENTIFIER;&lt;/p&gt;
&lt;p&gt;#if defined(USE_UICR_FOR_MAJ_MIN_VALUES)&lt;br /&gt; // If USE_UICR_FOR_MAJ_MIN_VALUES is defined, the major and minor values will be read from the&lt;br /&gt; // UICR instead of using the default values. The major and minor values obtained from the UICR&lt;br /&gt; // are encoded into advertising data in big endian order (MSB First).&lt;br /&gt; // To set the UICR used by this example to a desired value, write to the address 0x10001080&lt;br /&gt; // using the nrfjprog tool. The command to be used is as follows.&lt;br /&gt; // nrfjprog --snr &amp;lt;Segger-chip-Serial-Number&amp;gt; --memwr 0x10001080 --val &amp;lt;your major/minor value&amp;gt;&lt;br /&gt; // For example, for a major value and minor value of 0xabcd and 0x0102 respectively, the&lt;br /&gt; // the following command should be used.&lt;br /&gt; // nrfjprog --snr &amp;lt;Segger-chip-Serial-Number&amp;gt; --memwr 0x10001080 --val 0xabcd0102&lt;br /&gt; uint16_t major_value = ((*(uint32_t *)UICR_ADDRESS) &amp;amp; 0xFFFF0000) &amp;gt;&amp;gt; 16;&lt;br /&gt; uint16_t minor_value = ((*(uint32_t *)UICR_ADDRESS) &amp;amp; 0x0000FFFF);&lt;/p&gt;
&lt;p&gt;uint8_t index = MAJ_VAL_OFFSET_IN_BEACON_INFO;&lt;/p&gt;
&lt;p&gt;m_beacon_info[index++] = MSB_16(major_value);&lt;br /&gt; m_beacon_info[index++] = LSB_16(major_value);&lt;/p&gt;
&lt;p&gt;m_beacon_info[index++] = MSB_16(minor_value);&lt;br /&gt; m_beacon_info[index++] = LSB_16(minor_value);&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;manuf_specific_data.data.p_data = (uint8_t *) m_beacon_info;&lt;br /&gt; manuf_specific_data.data.size = APP_BEACON_INFO_LENGTH;&lt;/p&gt;
&lt;p&gt;// Build and set advertising data.&lt;br /&gt; memset(&amp;amp;advdata, 0, sizeof(advdata));&lt;/p&gt;
&lt;p&gt;advdata.name_type = BLE_ADVDATA_NO_NAME;&lt;br /&gt; advdata.flags = flags;&lt;br /&gt; advdata.p_manuf_specific_data = &amp;amp;manuf_specific_data;&lt;/p&gt;
&lt;p&gt;err_code = ble_advdata_set(&amp;amp;advdata, NULL);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;// Initialize advertising parameters (used when starting advertising).&lt;br /&gt; memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));&lt;/p&gt;
&lt;p&gt;m_adv_params.type = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;&lt;br /&gt; m_adv_params.p_peer_addr = NULL; // Undirected advertisement.&lt;br /&gt; m_adv_params.fp = BLE_GAP_ADV_FP_ANY;&lt;br /&gt; m_adv_params.interval = NON_CONNECTABLE_ADV_INTERVAL;&lt;br /&gt; m_adv_params.timeout = APP_CFG_NON_CONN_ADV_TIMEOUT;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;/**@brief Function for starting advertising.&lt;br /&gt; */&lt;br /&gt;static void advertising_start(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_adv_start(&amp;amp;m_adv_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;/**@brief Function for initializing the BLE stack.&lt;br /&gt; *&lt;br /&gt; * @details Initializes the SoftDevice and the BLE event interrupt.&lt;br /&gt; */&lt;br /&gt;static void ble_stack_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;/p&gt;
&lt;p&gt;nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;&lt;/p&gt;
&lt;p&gt;// Initialize the SoftDevice handler module.&lt;br /&gt; SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);&lt;/p&gt;
&lt;p&gt;ble_enable_params_t ble_enable_params;&lt;br /&gt; err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,&lt;br /&gt; PERIPHERAL_LINK_COUNT,&lt;br /&gt; &amp;amp;ble_enable_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;//Check the ram settings against the used number of links&lt;br /&gt; CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);&lt;/p&gt;
&lt;p&gt;// Enable BLE stack.&lt;br /&gt; err_code = softdevice_enable(&amp;amp;ble_enable_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;/**@brief Function for doing power management.&lt;br /&gt; */&lt;br /&gt;static void power_manage(void)&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;uint32_t err_code = sd_app_evt_wait();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;void in_pin_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)&lt;br /&gt;{ &lt;br /&gt; //nrf_drv_gpiote_out_toggle(21);&lt;br /&gt; nrf_gpio_pin_toggle(24);&lt;br /&gt; advertising_start();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;static void gpio_init(void)&lt;br /&gt;{&lt;br /&gt; nrf_gpio_cfg_input(17,NRF_GPIO_PIN_PULLUP);&lt;br /&gt; nrf_gpio_cfg_input(19,NRF_GPIO_PIN_PULLUP);&lt;br /&gt; nrf_gpio_cfg_output(24);&lt;br /&gt; &lt;br /&gt; ret_code_t err_code;&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_gpiote_init();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; &lt;br /&gt; nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);&lt;br /&gt; in_config.pull = NRF_GPIO_PIN_PULLUP;&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_gpiote_in_init(18, &amp;amp;in_config, in_pin_handler);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_event_enable(18, true);&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;uint8_t switch_hit(void)&lt;br /&gt;{&lt;br /&gt; static uint8_t prev_state = 1;&lt;br /&gt; uint8_t cur_state;&lt;br /&gt; &lt;br /&gt; // cur_state = nrf_gpio_pin_read(17);&lt;br /&gt; cur_state = nrf_gpio_pin_read(17);&lt;br /&gt; if(prev_state != cur_state)&lt;br /&gt; {&lt;br /&gt; prev_state = cur_state;&lt;br /&gt; if(!cur_state)&lt;br /&gt; return 1;&lt;br /&gt; else&lt;br /&gt; return 0;&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;uint8_t switch_hit1(void)&lt;br /&gt;{&lt;br /&gt; static uint8_t prev_state = 1;&lt;br /&gt; uint8_t cur_state;&lt;br /&gt; &lt;br /&gt; // cur_state = nrf_gpio_pin_read(17);&lt;br /&gt; cur_state = nrf_gpio_pin_read(19);&lt;br /&gt; if(prev_state != cur_state)&lt;br /&gt; {&lt;br /&gt; prev_state = cur_state;&lt;br /&gt; if(!cur_state)&lt;br /&gt; return 1;&lt;br /&gt; else&lt;br /&gt; return 0;&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; return 0;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt; * @brief Function for application main entry.&lt;br /&gt; */&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; // Initialize.&lt;br /&gt; err_code = NRF_LOG_INIT(NULL);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);&lt;br /&gt; // err_code = bsp_init(BSP_INIT_LED, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), NULL);&lt;br /&gt; // APP_ERROR_CHECK(err_code);&lt;br /&gt; ble_stack_init();&lt;br /&gt; advertising_init();&lt;/p&gt;
&lt;p&gt;// Start execution.&lt;br /&gt; NRF_LOG_INFO(&amp;quot;BLE Beacon started\r\n&amp;quot;);&lt;br /&gt; gpio_init();&lt;br /&gt; advertising_start();&lt;br /&gt; err_code = sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; err_code = sd_power_mode_set(NRF_POWER_MODE_LOWPWR);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; // Enter main loop.&lt;br /&gt; for (;; )&lt;br /&gt; {&lt;br /&gt; //power_manage();&lt;br /&gt; if (NRF_LOG_PROCESS() == false)&lt;br /&gt; {&lt;br /&gt; //power_manage();&lt;br /&gt; }&lt;br /&gt; if(switch_hit())&lt;br /&gt; {&lt;br /&gt; //NRF_POWER-&amp;gt;SYSTEMOFF = 1;&lt;br /&gt; // sd_power_system_off();&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; sd_ble_gap_adv_stop();&lt;br /&gt; power_manage();&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; if(switch_hit1())&lt;br /&gt; {&lt;br /&gt; nrf_gpio_pin_toggle(24);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;/**&lt;br /&gt; * @}&lt;br /&gt; */&lt;/p&gt;
&lt;div class="g-section" id="gt-c"&gt;
&lt;div id="gt-form-c"&gt;
&lt;div id="gt-text-all"&gt;
&lt;div id="gt-main"&gt;
&lt;div id="gt-text-c"&gt;
&lt;div id="gt-text-top"&gt;
&lt;div class="g-unit" id="gt-res-c"&gt;
&lt;div id="gt-res-p"&gt;
&lt;div id="gt-res-data"&gt;
&lt;div id="gt-res-wrap"&gt;
&lt;div id="gt-res-content"&gt;
&lt;div class="trans-verified-button-large" id="gt-res-dir-ctr" dir="ltr"&gt;
&lt;div class="g-section" id="gt-c"&gt;
&lt;div id="gt-form-c"&gt;
&lt;div id="gt-text-all"&gt;
&lt;div id="gt-main"&gt;
&lt;div id="gt-text-c"&gt;
&lt;div id="gt-text-top"&gt;
&lt;div class="g-unit" id="gt-res-c"&gt;
&lt;div id="gt-res-p"&gt;
&lt;div id="gt-res-data"&gt;
&lt;div id="gt-res-wrap"&gt;
&lt;div id="gt-res-content"&gt;
&lt;div class="trans-verified-button-large" id="gt-res-dir-ctr" dir="ltr"&gt;&lt;span class="short_text" id="result_box" lang="en"&gt;&lt;span&gt;I added gpio related code to the beacon example&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/thread/156840?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 10:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3f0a606-6013-42c6-a78b-adff3fdf97b1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Paek: Also please make sure you do a power reset before you do measurement, this is due to the NRF51 staying in debug mode after programming and will draw more current.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about current in low power mode.</title><link>https://devzone.nordicsemi.com/thread/156826?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 09:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f450fc8a-f8a7-4076-84e1-e42b1deee5ef</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Show us more code. Some peripherials will keep HFCLK or HFINT running - this includes the debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>