mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
bb2e7a189f
this can be enabled when needed to investigate stack space remaining
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* This file is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This file is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
* See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "hal.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void stm32_timer_set_input_filter(stm32_tim_t *tim, uint8_t channel, uint8_t filter_mode);
|
|
|
|
/*
|
|
invalidate data cache following a DMA transfer into memory.
|
|
*/
|
|
void dma_invalidate(void *buf, uint32_t size);
|
|
|
|
/*
|
|
flush data cache into RAM before a DMA transfer
|
|
*/
|
|
void dma_flush(const void *buf, uint32_t size);
|
|
|
|
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
|
|
// print stack usage
|
|
void show_stack_usage(void);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|