1
0
Fork 0
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:
blckmn 2016-11-07 08:57:54 +11:00
parent dc5b0a64bd
commit eb53cbb40d
4 changed files with 10 additions and 10 deletions

View file

@ -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;