-
PDF
STM32F10xxx__20xxx__21xxx_L1xxxx_Cortex-M3_programming_manual.pdf
register (SCB_CPUID) Address offset: 0x00 Reset value: 0x411F C231 (STM32F1 series) Reset value: 0x412F C230 (STM32F2 and STM32L series) Required privilege: Privileged The CPUID register contains the processor part number, version, and implementation
in „Einstieg in STM32 : STM32F103C8T6 --> Kompilieren und Flashen?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
STM32MP151A_Block_Diagram.pdf
STM i 16 8 8b GPIOZ T F t a GPIOK 8b 8 17 16b Trace port 8I async m F u TIM2 32b 5 3 I2C4 / SMBUS T b Cortex-M4 CPU 209 MHz B TIM3 16b 5 T AHB2APB + MPU + FPU H 3 I2C6 / SMBUS D-Bus - TIM4 16b 5 O T l 4
in „STM32MP1 von ST“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
en.DM00428288.pdf
STEVAL-SPIN3202 evaluation board provides a complete single-shunt six-step solution consisting of an STSPIN32F0A (advanced BLDC controller with an embedded STM32 MCU) and a triple half-bridge power stage with the NMOS STD140N6F7. The STSPIN32F0A autonomously generates all the required supply voltages starting
in „Problem mit ST-Board zur BLDC-Ansteuerung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f4x7_eth_bsp.c
/** ****************************************************************************** * @file stm32f4x7_eth_bsp.c * @author MCD Application Team * @version V1.1.0 * @date 31-July-2013 * @brief STM32F4x7 Ethernet hardware configuration. ************************************************************
in „Olimex STM32E407, FreeRTOS und lwip“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usart2dmactrl.c
***************************************************************** */ #include <string.h> #include "stm32f30x.h" #include "stm32f30x_rcc.h" #include "stm32f30x_gpio.h" #include "stm32f30x_dma.h" #include "stm32f30x_usart.h" #include "usart2dmactrl.h" GPIO_InitTypeDef GPIO_InitStructure; USART_InitTypeDef
in „STM32F303 USART2 DMA1 funktioniert halblebig ?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usart2dmactrl.c
***************************************************************** */ #include <string.h> #include "stm32f30x.h" #include "stm32f30x_rcc.h" #include "stm32f30x_gpio.h" #include "stm32f30x_dma.h" #include "stm32f30x_usart.h" #include "usart2dmactrl.h" GPIO_InitTypeDef GPIO_InitStructure; USART_InitTypeDef
in „STM32F303 USART2 DMA1 funktioniert halblebig ?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
HY-SmartSTM32_SCH.pdf
I2C_SDA A Title A Multi Media Development Board Size Number Revision A4 Date: 5-Mar-2011 Sheet of File: F:浩宇电子 \HY-SmartSTM32\HY-SmaTra3w2n.DBdyb: 1 2 3 4 1 2 3 4 5 6 D U1 D VSYNC 23 81 FSMC_D2 CAM_VSYNC IR_IN 24 PA0/WKUP/USART2_CTS/ADC123_IN0/TIM5_CH1/TIM2_CH1_ETR/TIM8_ETR PD0/FSMC_D2/CAN_RX 82 FSMC_D3
in „STM32 can Message“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tools.c
stdint.h> #include <stdio.h> /* --------------- Special Include Files / Librarys ------ */ #include "tm_stm32f4_rtc.h" #include "tm_stm32f4_disco.h" #include "tm_stm32f4_nrf24l01_cj.h" #include "tm_stm32f4_rtc.h" #include "tm_stm32f4_delay.h" /* -------------- Projekt Include Files ---------------- */ #include
in „Organisation der Header und Includes“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f30x_rcc.h
/** ****************************************************************************** * @file stm32f30x_rcc.h * @author MCD Application Team * @version V1.0.1 * @date 23-October-2012 * @brief This file contains all the functions prototypes for the RCC * firmware library. ************************
in „Probleme mit dem STM32F3Discoery, mal wieder.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
code_funktionsfaehig.txt
#include "stm32f0xx.h" #include "stm32f0xx_gpio.h" #include "stm32f0xx_rcc.h" #include "stm32f0xx_spi.h" void main() { /*Clock für die Peripherie einschalten*/ RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE);
in „STM32F0 SPI - Funktioniert nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
WC_MiniDev_Shield_v6.pdf
2 DS3231 2 > DI A7 13 28 A11 A5 5 C14 9 3 B0 14 27 A10 + 10 C1+ u GND GND B1 15 26 A9 LDR 11 , TSOP 16 25 12 4 B2 17 24 A8 R 1 B10 18 23 B15 D STM32_3V3_1 19 22 B14 D GND 20 21 B13 WC Shield v6 (OTA) BlackPill +5V B12 GND GND GND (c) 2018 by T.Giese STM32F4x1 used to connect STM32F4x1 with WS2812 Stripes, ESP8266, WC_MiniDev_Shield_v6 v5 DS3231, AMS1117, TSOP, LDR, 24.01.2026 18:18 DS1820, DCF77, DSP Sheet: 1/1 Oct 2023 1 2 3 4 5 6
-
Datei
stm32_ub_rng.c
//-------------------------------------------------------------- // File : stm32_ub_rng.c // Datum : 23.02.2013 // Version : 1.0 // Autor : UB // EMail : mc-4u(@)t-online.de // Web : www.mikrocontroller-4u.de // CPU : STM32F4 // IDE : CooCox CoIDE 1.7.0 // Module : RNG // Funktion
in „Random Number Generator läuft nicht richtig,stm32f429“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usart2dmactrl.c
********************************************** */ #include <stdio.h> #include <string.h> #include "stm32f30x.h" #include "stm32f30x_rcc.h" #include "stm32f30x_gpio.h" #include "stm32f30x_dma.h" #include "stm32f30x_usart.h" #include "gpioctrl.h" #include "usart2dmactrl.h" GPIO_InitTypeDef GPIO_InitStructure
in „STM32F303 USART2 DMA1 funktioniert halblebig ?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f4xx_spi.h
/** ****************************************************************************** * @file stm32f4xx_spi.h * @author MCD Application Team * @version V1.0.0 * @date 30-September-2011 * @brief This file contains all the functions prototypes for the SPI * firmware library. **********************
in „STM32F4XX SPI Slave“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Blockschaltbilder Ethernet-Schnittstellen STM32
Application block diagrams STM32F405xx, STM32F407xx A.6 Ethernet interface solutions Figure 92. MII mode using a 25 MHz crystal STM32 MCU Ethernet MAC 10/100 HCLK(1) MII TX_CLK MII TX_EN MII TXD[3:0] MII CRS MII COL MII RX_CLK MII
in „STM32F4x7, Ethernet, DP83848I“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
main.c
#include "stm32f10x.h" #include "STM32vldiscovery.h" GPIO_InitTypeDef GPIO_InitStructure; EXTI_InitTypeDef EXTI_InitStructure; NVIC_InitTypeDef NVIC_InitStructure; void Delay(__IO uint32_t nCount); void PeripheralInit(void); void ButtonInit(void); int ints = 0; int main(void) { PeripheralInit(); ButtonInit(); STM32vldiscovery_LEDInit(LED3); STM32vldiscovery_LEDInit(LED4); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); GPIO_InitStructure.GPIO_Speed =
in „Hardwareentprellung Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx.h" #include "stm32f4_discovery_audio_codec/stm32f4_discovery_audio_codec.h" #include <string.h> //#include "audio_sample.h" void GPIO_A0_Init(void); uint32_t retVal_Init; uint32_t retVal_Play; uint32_t retVal_PauseResume; #define SOUNDBUFFER 1200 static uint16_t auiBuffer [SOUNDBUFFER * 2]; void WaveInit (void) { uint32_t ulPhi, ulPhiInc, x; ulPhi = 0; ulPhiInc = 0x0258bf25; //for (x = 0; x < 12000
in „STM32F4 Discovery Audio DAC CS43L22“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
STM32Tutorial.pdf
des Programms in das STM32F4 Discovery-Board. Der Aufruf erfolgt über das Kommandozeilentool ST-LINK direkt aus der EMBlocks IDE heraus. START: Schritt 1: Rechtsklick auf Projekt Properties… Schritt 2: Unter Build targets
in „Neues STM32 Tutorial“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Resources_an5457-rf-matching-network-design-guide-for-stm32wl-series-stmicroelectronics.pdf
value (capacitive reactance): 1 C = 2πf × Z 0 X if 0 = 50, f = 915 MHz, and the value read is -0.3, the capacitor value is C = 11.60 pF. • For a positive value (inductive reactance): Z 0 X L = 2 × π × f if 0 = 50, f = 915 MHz, and the value read
in „STM32WLE5CCU6 LoRa-Antennenendesign review“ · HF, Funk und Felder ·
-
PDF
AN5457.pdf
value (capacitive reactance): 1 C = 2πf × Z 0 X if 0 = 50, f = 915 MHz, and the value read is -0.3, the capacitor value is C = 11.60 pF. • For a positive value (inductive reactance): Z 0 X L = 2 × π × f if 0 = 50, f = 915 MHz, and the value read
in „868MHz Impedanzmatching - Fragen zum Matching-vorgehen“ · HF, Funk und Felder ·
-
Datei
HWMonitor.txt
0x00000001 0x00040F32 0x00020800 0x00002001 0x178BFBFF 0x80000000 0x80000018 0x68747541 0x444D4163 0x69746E65 0x80000001 0x00040F32 0x000008CD 0x0000001F 0xEBD3FBFF 0x80000002 0x20444D41 0x6C687441 0x74286E6F
in „CPU Temperatursensor defekt => Absturz“ · PC Hard- und Software ·
-
Datei
spiGeneric.h
only fill as much data to the outgoing buffer as there is space in the incoming buffer too. For the STM32F411, according to the datasheet there the buffers seems to support only one element. For the STM32L452, the datasheet mentions 32bit of FIFO. This should be 4x 8bit data. As result, there will be an interruption for the STM32F411 between one byte sent and the next one put into the TX buffer, whereas the STM32L452 could work without interruption and reach the maximum possible SPI speed. */ size_t inQueue = 0; const size_t
in „STM32: SPI - HAL durch eigenen code ersetzen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_gpio.h" #include "STM32f4xx_tim.h" void configMotorBridgeTimer(void); void configHallSensorTimer(void); int main(void) { SystemInit(); GPIO_InitTypeDef
in „STM32F4 BLDC mit Hall Sensoren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f0xx.h" #include "stm32f0xx_gpio.h" #include "stm32f0xx_rcc.h" #include "stm32_ub_uart.h" #include <string.h> void delay_us(uint32_t time_us) { SysTick->LOAD = 8 * time_us-1; SysTick->VAL = 0; /* Load
in „STM32F030 Takt/UART Frage“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f10x_it.h
************************************************************************ * @file TIM/TIM9_OCToggle/stm32f10x_it.h * @author MCD Application Team * @version V3.5.0 * @date 08-April-2011 * @brief This file contains the headers of the interrupt handlers. *************************************************
in „STM32 - Eclipse, ARM GCC - Funktionsaufruf geht nicht :-(“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Endlosschleife.txt
--------------------------------------------*/ 00029 #include "main.h" 00030 00031 /** @addtogroup STM32F4xx_StdPeriph_Examples 00032 * @{ 00033 */ 00034 00035 /** @addtogroup RTC_Timer 00036 * @{ 00037 */ 00038 00039 /* Private typedef -----------------------------------------------------------*/ 00040
in „Endlosschleife in RTC Beispiel“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Chatverlauf mit Programmiercode für STM32F411CEU
Hallo! Ich möchte eine analoge Spannung an einem STM32F411CEU einlesen. Bitte schreibe mir den Quellcode zum Einlesen und Ausgeben einer analogen Spannung für STM32CubeIDE Hallo! Natürlich kann ich dir dabei helfen. Hier ist ein Beispielcode zum Einlesen und Ausgeben einer analogen Spannung mit dem STM32F411CEU in STM32CubeIDE: c #include "stm32f4xx_hal.h" ADC_HandleTypeDef hadc1; void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_ADC1_Init(void); int main(void) { HAL_Init
in „STM32F411CEU + Thermoelement - Erster Versuch eines Datenauslesens -“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
PDF
STPicProgL.pdf
CLOCK 21 PB10 DATA 22 4k7 RD_DATA 25 PB11 D4 U5 PB12 SOD-323F 8 VDD2 VDD1 1 ENA_USB 26 PB13 VPPSWI 7 27 PB14 2 R27 /MCLR_HI LED 28 R19 6 PB15 100 R6 5 GND2 GND1 4 10k STM32F103C8T6 BSS123 R16 VT1 TC4429 1 0 VD1 R 4 MCLR_LO 220 4k7 VPPVAR R29 R30 R26 +3,3V XPRG
in „Padauk MCU für 0.038 USD aus Taiwan“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
STM32 ST-LINK Utility Memory Display
STM32 ST-LINK Utility Device STM32F04xx Address: 0x1FFFF7AC Size: 0x0C Data Width: 32 bits Device ID 0x445 Revision ID Rev 1.0 Flash size 32KBytes Target memory, Address range: [0x1FFFF7AC 0x1FFFF7B8] Address
in „STM32F042 gecloned aber verhält sich seltsam“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
stm32f4x7_eth_bsp.c
/** ****************************************************************************** * @file stm32f4x7_eth_bsp.c * @author MCD Application Team * @version V1.1.0 * @date 31-July-2013 * @brief STM32F4x7 Ethernet hardware configuration. ************************************************************
in „STM32-E407 Ethernet / UDP“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
iirBench2.c
// print with manual made software serial the // STM32F4 Discovery //#include "softwareSerial.h" //#define SOFTSERIALPIN_TX PC1 // STM32F4_DISCOVRERY //#define SOFTSERIALPIN_TX PA9// STM32F103 BluePill #define SOFTSERIALPIN_TX PD1 // ARDUINO_UNO // https
in „Wofür Propeller von Parallax ?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f10x_it.h
*************************************************************************** * @file CAN/Networking/stm32f10x_it.h * @author MCD Application Team * @version V3.5.0 * @date 08-April-2011 * @brief This file contains the headers of the interrupt handlers. *************************************************
in „stm32 Cortex I2C : Master zieht SCL auf Masse“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
STM32 ST-LINK Utility Memory Display
STM32 ST-LINK Utility Memory display Device STM32F04xx Device ID 0x445 Revision ID Rev 1.0 Flash size 32KBytes Address: 0x1FFF7AC Data Width: 32 bits Target memory, Address range: [0x1FFF7AC 0x1FFF7BE]
in „STM32F042 gecloned aber verhält sich seltsam“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
STM32_USART_Test.c
#include <stdio.h> #include "stm32f10x_usart.h" #include "stm32f10x_rcc.h" #include "stm32f10x_gpio.h" #include <stddef.h> #include "stm32f10x.h" // Function prototypes void InitUart1(void); void InitUart2(void); void USART1_Send(char
in „STM32 und usart1/2 Initialisierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
STM32_USART_Test.c
#include <stdio.h> #include "stm32f10x_usart.h" #include "stm32f10x_rcc.h" #include "stm32f10x_gpio.h" #include <stddef.h> #include "stm32f10x.h" // Function prototypes void InitUart1(void); void InitUart2(void); void USART1_Send(char
in „STM32 und usart1/2 Initialisierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
nrf24l01_usr.h
Files ----------------- */ /* ---------------System Include Files / Librarys -------- */ #include "stm32f10x_conf.h" /* -------------- Projekt Include Files ---------------- */ /* -------------- Typen Deklarationen--------------------- */ /* An den STM32F103 Display Controller adressierter Datensatz
in „[STM32F4xx] NRF24L01+ Funkmodul Source Code“ · Projekte & Code ·
-
Datei
HallSensorTimer.c
#include "stm32f4xx.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_tim.h" #include "misc.h" void decCommutationDelay(void); void incCommutationDelay(void); void BLDCMotorPrepareCommutation
in „STM32F4 BLDC mit Hall Sensoren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
* USER CODE BEGIN Includes */ #include "ff.h" #include "ff_gen_drv.h" #include <stdio.h> #include "stm32f4xx_hal.h" #include "stm32f4xx_ll_dma.h" #include "stm32f4xx_ll_dac.h" #include "stm32f4xx_hal_conf.h" //#include "stm32f4xx_ll_cortex.h" /* USER CODE END Includes */ /* Private typedef ----------
in „ARM Cortex M4 mit LL Treiber DAC DMA Wave SD Card Playback“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32_ub_i2c1.c
//-------------------------------------------------------------- // File : stm32_ub_i2c1.c // Datum : 04.01.2015 // Version : 1.2 // Autor : UB // EMail : mc-4u(@)t-online.de // Web : www.mikrocontroller-4u.de // CPU : STM32F4 // IDE : CooCox CoIDE 1.7.4 // GCC : 4.7 2012q4 //
in „STM32F105 bei I2C Read ein Byte zu viel“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Clock_Tree.pdf
Reset and clock control (RCC) RM0444 Figure 10. Clock tree LSI RC LSI to IWDG 32 kHz RTC WAKEUP from RTC LSI LSI RTCCLK LSCO to RTC LSE LSE HSE OSC32_OUT /32 LSE OSC 32.768 kHz LSE LSE OSC32_IN to CEC Clock HSI16 / 488 detector to UCPD1/2(1) LSE HSI16 LSI to PWR SYSCLK MCO HSE /
in „Problem mit Clock Configuration beim STM32G031“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
en.DM00051352.pdf
PM0215 Programming manual STM32F0xxx Cortex-M0 programming manual Introduction This programming manual provides information for application and system-level software developers. It gives a full description of the STM32 Cortex™-M0
in „Umbau von STM32F030F4P6 auf AVR mit Software“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
howto.txt
Für das Shield mit dem STM32 MiniDevBoards Vorbereitung Windows PC > das STM32MiniBoard auch über UART geflashed werden. > Die Software für das Flashen über UART wird auch zum Aufspielen der ESP8266 Firmware des WLAN-Moduls benötigt
-
Datei
usart.c
Libraries -----------------------------------------------------------------*/ #include "usart.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_usart.h" #include "stm32f4xx_dma.h" /* Functions -----------------------------------------------------------------*/ /** * @brief Configure
in „STM32F4 - USART3 Rx und DMA will nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
iirBenchmark.ino
// print with manual made software serial the // STM32F4 Discovery #include "softwareSerial.h" //#define SOFTSERIALPIN_TX PC1 // STM32F4_DISCOVRERY //#define SOFTSERIALPIN_TX PA9// STM32F103 BluePill #define SOFTSERIALPIN_TX PD1 // ARDUINO_UNO // https://gist.github.com/nikolaypavlov/f4832cba720917b16905 // // Fourth order bandpass IIR filter coefficients (100 Hz - 500 Hz, sampling rate 22050 Hz) // // a[0]*y[n] + a[1]*y[n-1] + … + a[n]*y[0] = b[0]*x[n] + b[1]*x[m-1] + … + b[m]*x[0
in „STM32 Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32_ub_i2c1.c
//-------------------------------------------------------------- // File : stm32_ub_i2c1.c // Datum : 04.01.2015 // Version : 1.2 // Autor : UB // EMail : mc-4u(@)t-online.de // Web : www.mikrocontroller-4u.de // CPU : STM32F4 // IDE : CooCox CoIDE 1.7.4 // GCC : 4.7 2012q4 //
in „STM32F105 bei I2C Read ein Byte zu viel“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f429i_discovery_lcd.c
/** ****************************************************************************** * @file stm32f429i_discovery_lcd.c * @author MCD Application Team * @version V1.0.1 * @date 28-October-2013 * @brief This file includes the LCD driver for ILI9341 Liquid Crystal * Display Modules of STM32F429I-DISCO
in „STM32F429 Display per SPI ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32f30x_gpio.c
**** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f30x_gpio.h" #include "stm32f30x_rcc.h" /** @addtogroup STM32F30x_StdPeriph_Driver * @{ */ /** @defgroup GPIO * @brief GPIO driver modules * @{ */ /* Private typedef -------------------------------
in „Probleme mit dem STM32F3Discoery, mal wieder.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
STM32_USART_Test.c
#include <stdio.h> #include "stm32f10x_usart.h" #include "stm32f10x_rcc.h" #include "stm32f10x_gpio.h" #include <stddef.h> #include "stm32f10x.h" // Function prototypes void InitUart1(void); void InitUart2(void); void USART1_SendString
in „STM32 und usart1/2 Initialisierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
STM32_USART_Test.c
#include <stdio.h> #include "stm32f10x_usart.h" #include "stm32f10x_rcc.h" #include "stm32f10x_gpio.h" #include <stddef.h> #include "stm32f10x.h" void USART_NVIC_Config(void); // Function prototypes void InitUart1(void); void InitUart2
in „STM32 und usart1/2 Initialisierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
debounce.c
defined(USE_HAL_DRIVER) #include "cm_atomic.h" #endif #if defined(USE_STDPERIPH_DRIVER) #if defined(STM32L1XX_MD) || defined(STM32L1XX_MDP) || defined(STM32L1XX_HD) #include <stm32l1xx.h> #else #error Device not specified. #endif #elif defined(USE_HAL_DRIVER) #if defined(STM32F103xB) #include "stm32f1xx_hal.h" #elif defined(STM32L151xB) #include "stm32l1xx_hal.h" #else #error Device not specified. #endif #else #include <avr/io.h> // for PORT/ PIN access #include <avr/interrupt.h> // for cli() and sei() #include <util/atomic.h