You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by we...@apache.org on 2016/09/03 00:34:07 UTC
incubator-mynewt-core git commit: Remove debug code from nrf52
hal_spi.c
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/sterly_refactor ed45a0bbe -> e0864b5e8
Remove debug code from nrf52 hal_spi.c
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/e0864b5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e0864b5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e0864b5e
Branch: refs/heads/sterly_refactor
Commit: e0864b5e8be50fcfc33e06d9b9739d9e324398fc
Parents: ed45a0b
Author: William San Filippo <wi...@runtime.io>
Authored: Fri Sep 2 17:33:37 2016 -0700
Committer: William San Filippo <wi...@runtime.io>
Committed: Fri Sep 2 17:33:56 2016 -0700
----------------------------------------------------------------------
hw/mcu/nordic/nrf52xxx/src/hal_spi.c | 17 -----------------
1 file changed, 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e0864b5e/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_spi.c b/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
index abe57db..ec3e8bf 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
@@ -132,12 +132,6 @@ nrf52_irqm_handler(struct nrf52_hal_spi *spi)
}
}
-/* WWW */
-uint32_t SlaveAcqIRQs;
-uint32_t SlaveEndIRQs;
-uint32_t SlaveReleases;
-/* WWW */
-
static void
nrf52_irqs_handler(struct nrf52_hal_spi *spi)
{
@@ -150,10 +144,6 @@ nrf52_irqs_handler(struct nrf52_hal_spi *spi)
if (nrf_spis_event_check(p_spis, NRF_SPIS_EVENT_ACQUIRED)) {
nrf_spis_event_clear(p_spis, NRF_SPIS_EVENT_ACQUIRED);
- /* WWW */
- ++SlaveAcqIRQs;
- /* WWW */
-
if (spi->slave_state == HAL_SPI_SLAVE_STATE_ACQ_SEM) {
if (spi->slave_txbuf == NULL) {
nrf_spis_tx_buffer_set(p_spis, 0, 0);
@@ -166,9 +156,6 @@ nrf52_irqs_handler(struct nrf52_hal_spi *spi)
} else {
nrf_spis_rx_buffer_set(p_spis, spi->slave_rxbuf, spi->slave_buflen);
}
- /* WWW */
- ++SlaveReleases;
- /* WWW */
nrf_spis_task_trigger(p_spis, NRF_SPIS_TASK_RELEASE);
spi->slave_state = HAL_SPI_SLAVE_STATE_READY;
}
@@ -177,10 +164,6 @@ nrf52_irqs_handler(struct nrf52_hal_spi *spi)
/* SPI transaction complete */
if (nrf_spis_event_check(p_spis, NRF_SPIS_EVENT_END)) {
nrf_spis_event_clear(p_spis, NRF_SPIS_EVENT_END);
- /* WWW */
- ++SlaveEndIRQs;
- /* WWW */
-
if (spi->slave_state == HAL_SPI_SLAVE_STATE_READY) {
if (spi->spi_cfg.txrx_cb_func) {
/* Get transfer length */