Merged with dev_beta

This commit is contained in:
klassents committed 2024-09-05 08:49:43 +03:00
1 parent 079b3c19bc
commit 82fbe4939e
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);