mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Renaming resourceOwner_t to resourceOwner_e
This commit is contained in:
parent
dc5b0a64bd
commit
eb53cbb40d
4 changed files with 10 additions and 10 deletions
|
@ -231,7 +231,7 @@ void IOToggle(IO_t io)
|
|||
}
|
||||
|
||||
// claim IO pin, set owner and resources
|
||||
void IOInit(IO_t io, resourceOwner_t owner, resourceType_t resource, uint8_t index)
|
||||
void IOInit(IO_t io, resourceOwner_e owner, resourceType_e resource, uint8_t index)
|
||||
{
|
||||
ioRec_t *ioRec = IO_Rec(io);
|
||||
ioRec->owner = owner;
|
||||
|
@ -245,13 +245,13 @@ void IORelease(IO_t io)
|
|||
ioRec->owner = OWNER_FREE;
|
||||
}
|
||||
|
||||
resourceOwner_t IOGetOwner(IO_t io)
|
||||
resourceOwner_e IOGetOwner(IO_t io)
|
||||
{
|
||||
ioRec_t *ioRec = IO_Rec(io);
|
||||
return ioRec->owner;
|
||||
}
|
||||
|
||||
resourceType_t IOGetResource(IO_t io)
|
||||
resourceType_e IOGetResource(IO_t io)
|
||||
{
|
||||
ioRec_t *ioRec = IO_Rec(io);
|
||||
return ioRec->resource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue