embedded code copied from jankae/VNA and adjusted for STM32G4

This commit is contained in:
Jan Käberich 2020-08-24 19:06:50 +02:00
parent 7af204b349
commit 30d4ebe37b
215 changed files with 186208 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#pragma once
#include "stm32g431xx.h"
#include "stm32g4xx_hal.h"
namespace STM {
static inline bool InInterrupt() {
return (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) != 0;
}
}