Merged with dev_beta

This commit is contained in:
klassents authored and KLASSENTS committed 2025-02-04 14:24:49 +07:00
1 parent 186e182c1d
commit 221a587857
9 files changed
+184 -38

No files matched your search

+6 -1
View File
@@ -23,13 +23,14 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include "wiring_constants.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "mik32_hal_gpio.h"
#include "mik32_hal_timer32.h"
#include "wiring_constants.h"
extern bool spiNssPinIsBlocked;
@@ -67,6 +68,10 @@ volatile uint32_t* portOutputRegister(GPIO_TypeDef* GPIO_x);
// the function returns a reference to the STATE address of the GPIO register
volatile uint32_t* portInputRegister(GPIO_TypeDef* GPIO_x);
// UART
// available uarts quantity
#define SERIAL_PORT_QTY 2
// ADC
// determines the ADC channel number by the board pin number
uint32_t analogInputToChannelNumber(uint32_t PinNumber);