You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by gi...@git.apache.org on 2017/09/27 10:31:23 UTC
[GitHub] rymanluk commented on a change in pull request #576: [MYNEWT-783] nimble/phy: Fix T_IFS on coded phy
rymanluk commented on a change in pull request #576: [MYNEWT-783] nimble/phy: Fix T_IFS on coded phy
URL: https://github.com/apache/mynewt-core/pull/576#discussion_r141304535
##########
File path: hw/drivers/nimble/nrf52/src/ble_phy.c
##########
@@ -1009,6 +1010,59 @@ ble_phy_isr(void)
STATS_INC(ble_phy_stats, phy_isrs);
}
+#if MYNEWT_VAL(BLE_PHY_DBG_TIME_TXRXEN_READY_PIN) >= 0 || \
+ MYNEWT_VAL(BLE_PHY_DBG_TIME_ADDRESS_END_PIN) >= 0 || \
+ MYNEWT_VAL(BLE_PHY_DBG_TIME_WFR_PIN) >= 0
+static inline void
+ble_phy_dbg_time_setup_gpiote(int index, int pin)
+{
+ hal_gpio_init_out(pin, 0);
+
+ NRF_GPIOTE->CONFIG[index] =
+ (GPIOTE_CONFIG_MODE_Task << GPIOTE_CONFIG_MODE_Pos) |
+ ((pin & 0x1F) << GPIOTE_CONFIG_PSEL_Pos) |
+ ((pin > 31) << GPIOTE_CONFIG_PORT_Pos);
+}
+#endif
+
+static void
+ble_phy_dbg_time_setup(void)
+{
+#if MYNEWT_VAL(BLE_PHY_DBG_TIME_TXRXEN_READY_PIN) >= 0
+ ble_phy_dbg_time_setup_gpiote(0,
Review comment:
It is disabled for now but as discussed instead of hardcoded `index`, hal_gpio_irq_init should be used in order to not overwrite application
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services