added a function that returns a link to the STATE address of the GPIO register

This commit is contained in:
Ogneyar committed 2024-08-23 10:37:54 +03:00
1 parent 33e85b4f00
commit 63116429c9
2 files changed
+9 -1

No files matched your search

+6
View File
@@ -100,6 +100,12 @@ uint32_t* portOutputRegister(GPIO_TypeDef* GPIO_x)
return &GPIO_x->OUTPUT_;
}
// the function returns a reference to the STATE address of the GPIO register
uint32_t* portInputRegister(GPIO_TypeDef* GPIO_x)
{
return &GPIO_x->STATE;
}
// ---------------------- АЦП ---------------------- //
// determines the ADC channel number by the board pin number
uint32_t analogInputToChannelNumber(uint32_t PinNumber)