Added resource details for SIRIN TX.
This commit is contained in:
parent
93ca58fb85
commit
f0676b1b74
|
@ -56,7 +56,7 @@ const struct ioPortDef_s ioPortDefs[] = {
|
|||
const char * const ownerNames[OWNER_TOTAL_COUNT] = {
|
||||
"FREE", "PWM", "PPM", "MOTOR", "SERVO", "SOFTSERIAL", "ADC", "SERIAL", "DEBUG", "TIMER",
|
||||
"SONAR", "SYSTEM", "SPI", "I2C", "SDCARD", "FLASH", "USB", "BEEPER", "OSD",
|
||||
"BARO", "MPU", "INVERTER", "LED STRIP", "LED", "RECEIVER",
|
||||
"BARO", "MPU", "INVERTER", "LED STRIP", "LED", "RECEIVER", "TRANSMITTER"
|
||||
};
|
||||
|
||||
const char * const resourceNames[RESOURCE_TOTAL_COUNT] = {
|
||||
|
|
|
@ -29,6 +29,7 @@ typedef enum {
|
|||
OWNER_LED_STRIP,
|
||||
OWNER_LED,
|
||||
OWNER_RX,
|
||||
OWNER_TX,
|
||||
OWNER_TOTAL_COUNT
|
||||
} resourceOwner_t;
|
||||
|
||||
|
|
|
@ -53,19 +53,19 @@ static IO_t rtc6705DataPin = IO_NONE;
|
|||
static IO_t rtc6705LePin = IO_NONE;
|
||||
static IO_t rtc6705ClkPin = IO_NONE;
|
||||
|
||||
void rtc6705_soft_spi_init(void) {
|
||||
|
||||
void rtc6705_soft_spi_init(void)
|
||||
{
|
||||
rtc6705DataPin = IOGetByTag(IO_TAG(RTC6705_SPIDATA_PIN));
|
||||
rtc6705LePin = IOGetByTag(IO_TAG(RTC6705_SPILE_PIN));
|
||||
rtc6705ClkPin = IOGetByTag(IO_TAG(RTC6705_SPICLK_PIN));
|
||||
|
||||
IOInit(rtc6705DataPin, OWNER_SYSTEM, RESOURCE_OUTPUT);
|
||||
IOInit(rtc6705DataPin, OWNER_TX, RESOURCE_SPI_MOSI, 0);
|
||||
IOConfigGPIO(rtc6705DataPin, IOCFG_OUT_PP);
|
||||
|
||||
IOInit(rtc6705LePin, OWNER_SYSTEM, RESOURCE_OUTPUT);
|
||||
IOInit(rtc6705LePin, OWNER_TX, RESOURCE_SPI_CS, 0);
|
||||
IOConfigGPIO(rtc6705LePin, IOCFG_OUT_PP);
|
||||
|
||||
IOInit(rtc6705ClkPin, OWNER_SYSTEM, RESOURCE_OUTPUT);
|
||||
IOInit(rtc6705ClkPin, OWNER_TX, RESOURCE_SPI_SCK, 0);
|
||||
IOConfigGPIO(rtc6705ClkPin, IOCFG_OUT_PP);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue