mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Initial preparation for cleaning up multiple files per MCU (#2500)
* Initial preparation for cleaning up multiple files per MCU * Combined DSHOT for F3 and F4 (F7 todo) * Build fixes (mixed some adjustments needed in transponder_ir.c) * Fix F7 warnings/bugs * Updated timer periods for transponder. Fixed FURY including old pwm_output files. * Added method to calculate prescaler and period on the fly for varying clock speeds. This can be used for overclocking :) * Consolidated led_strip * Moved led strip to use system clock for timing (allowing overclocking) * Fixed incorrect channel, and removed comparison warning. * More cleanup * Fix KIWIF4 target * Cleaned up target.mk files
This commit is contained in:
parent
67ac6dfefa
commit
792941606f
30 changed files with 204 additions and 653 deletions
|
@ -118,7 +118,7 @@ uint8_t dmaGetResourceIndex(dmaIdentifier_e identifier)
|
|||
dmaIdentifier_e dmaGetIdentifier(const DMA_Stream_TypeDef* stream)
|
||||
{
|
||||
for (int i = 0; i < DMA_MAX_DESCRIPTORS; i++) {
|
||||
if (dmaDescriptors[i].stream == stream) {
|
||||
if (dmaDescriptors[i].ref == stream) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ dmaIdentifier_e dmaGetIdentifier(const DMA_Stream_TypeDef* stream)
|
|||
dmaChannelDescriptor_t* getDmaDescriptor(const DMA_Stream_TypeDef* stream)
|
||||
{
|
||||
for (int i = 0; i < DMA_MAX_DESCRIPTORS; i++) {
|
||||
if (dmaDescriptors[i].stream == stream) {
|
||||
if (dmaDescriptors[i].ref == stream) {
|
||||
return &dmaDescriptors[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue