analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
871 stars 1.63k forks source link

util: add field and BIT APIs #2235

Open jonathanns opened 6 days ago

jonathanns commented 6 days ago

APIs added: NO_OS_BIT_ULL(x) NO_OS_GENMASK_ULL(h, l) uint32_t no_os_field_max(uint32_t mask)

Pull Request Description

Please replace this with a detailed description and motivation of the changes. You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR. If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.

PR Type

PR Checklist

jonathanns commented 2 days ago

/AzurePipelines run

azure-pipelines[bot] commented 2 days ago
Azure Pipelines successfully started running 2 pipeline(s).
jonathanns commented 5 hours ago

update v1: