2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
20 #define RESOURCE_INDEX(x) (x + 1)
60 extern const char * const ownerNames
[OWNER_TOTAL_COUNT
];
62 // Currently TIMER should be shared resource (softserial dualtimer and timerqueue needs to allocate timer channel, but pin can be used for other function)
63 // with mode switching (shared serial ports, ...) this will need some improvement
66 RESOURCE_INPUT
, RESOURCE_OUTPUT
, RESOURCE_IO
,
68 RESOURCE_UART_TX
, RESOURCE_UART_RX
, RESOURCE_UART_TXRX
,
70 RESOURCE_I2C_SCL
, RESOURCE_I2C_SDA
,
71 RESOURCE_SPI_SCK
, RESOURCE_SPI_MOSI
, RESOURCE_SPI_MISO
, RESOURCE_SPI_CS
,
72 RESOURCE_QUADSPI_CLK
, RESOURCE_QUADSPI_BK1IO0
, RESOURCE_QUADSPI_BK1IO1
,
73 RESOURCE_QUADSPI_BK1IO2
, RESOURCE_QUADSPI_BK1IO3
, RESOURCE_QUADSPI_BK1CS
,
74 RESOURCE_QUADSPI_BK2IO0
, RESOURCE_QUADSPI_BK2IO1
, RESOURCE_QUADSPI_BK2IO2
,
75 RESOURCE_QUADSPI_BK2IO3
, RESOURCE_QUADSPI_BK2CS
,
76 RESOURCE_ADC_CH1
, RESOURCE_ADC_CH2
, RESOURCE_ADC_CH3
, RESOURCE_ADC_CH4
,
81 extern const char * const resourceNames
[RESOURCE_TOTAL_COUNT
];