Skip to content

Commit 8a908be

Browse files
committedJul 19, 2021
Fixed templates, naming unification
1 parent 70144bf commit 8a908be

File tree

41 files changed

+311
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+311
-283
lines changed
 

‎lib/soc/Systick.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
// this
99
#include <soc/Systick.hpp>
1010

11+
// soc
12+
#include <soc/Interrupt_guard.hpp>
13+
1114
// cml
1215
#include <cml/bit_flag.hpp>
1316
#include <cml/debug/assertion.hpp>
1417

15-
// soc
16-
#include <soc/Interrupt_guard.hpp>
17-
1818
namespace {
1919

2020
using namespace soc;

‎lib/soc/m4/nvic.hpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class nvic
5858

5959
static void set_mode(Mode a_mode)
6060
{
61-
static uint32_t primask = 0;
61+
static uint32_t primask = __get_PRIMASK();
6262

6363
switch (a_mode)
6464
{
@@ -75,6 +75,11 @@ class nvic
7575
}
7676
}
7777

78+
static void system_reset()
79+
{
80+
NVIC_SystemReset();
81+
}
82+
7883
static Config get_config()
7984
{
8085
return { static_cast<Config::Grouping>(NVIC_GetPriorityGrouping()), __get_BASEPRI() };

0 commit comments

Comments
 (0)
Please sign in to comment.