From a3bab9126da162f9ebfd93be57e415cee512861c Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 10 Dec 2015 20:13:27 -0800 Subject: [PATCH] Remove commented, dead code. --- firmware/baseband/baseband_dma.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/firmware/baseband/baseband_dma.cpp b/firmware/baseband/baseband_dma.cpp index 520365d1..f3002b28 100644 --- a/firmware/baseband/baseband_dma.cpp +++ b/firmware/baseband/baseband_dma.cpp @@ -99,16 +99,12 @@ constexpr size_t msg_count = transfers_per_buffer - 1; static std::array lli_loop; static constexpr auto& gpdma_channel_sgpio = gpdma::channels[portapack::sgpio_gpdma_channel_number]; -//static Mailbox mailbox; -//static std::array messages; static Semaphore semaphore; static volatile const gpdma::channel::LLI* next_lli = nullptr; static void transfer_complete() { next_lli = gpdma_channel_sgpio.next_lli(); - /* TODO: Is Mailbox the proper synchronization mechanism for this? */ - //chMBPostI(&mailbox, 0); chSemSignalI(&semaphore); } @@ -117,7 +113,6 @@ static void dma_error() { } void init() { - //chMBInit(&mailbox, messages.data(), messages.size()); chSemInit(&semaphore, 0); gpdma_channel_sgpio.set_handlers(transfer_complete, dma_error); @@ -144,7 +139,6 @@ void enable(const baseband::Direction direction) { const auto gpdma_config = config(direction); gpdma_channel_sgpio.configure(lli_loop[0], gpdma_config); - //chMBReset(&mailbox); chSemReset(&semaphore, 0); gpdma_channel_sgpio.enable(); @@ -159,8 +153,6 @@ void disable() { } baseband::buffer_t wait_for_rx_buffer() { - //msg_t msg; - //const auto status = chMBFetch(&mailbox, &msg, TIME_INFINITE); const auto status = chSemWait(&semaphore); if( status == RDY_OK ) { const auto next = next_lli;