Remove unused function setipsr. Cortex-M IPSR register is not writable
This commit is contained in:
parent
a1cbb7d8fb
commit
cbdafb96d5
|
@ -311,17 +311,6 @@ static inline uint32_t getipsr(void)
|
||||||
return ipsr;
|
return ipsr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void setipsr(uint32_t ipsr) inline_function;
|
|
||||||
static inline void setipsr(uint32_t ipsr)
|
|
||||||
{
|
|
||||||
__asm__ __volatile__
|
|
||||||
(
|
|
||||||
"\tmsr ipsr, %0\n"
|
|
||||||
:
|
|
||||||
: "r" (ipsr)
|
|
||||||
: "memory");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get/set CONTROL */
|
/* Get/set CONTROL */
|
||||||
|
|
||||||
static inline uint32_t getcontrol(void) inline_function;
|
static inline uint32_t getcontrol(void) inline_function;
|
||||||
|
|
|
@ -327,17 +327,6 @@ static inline uint32_t getipsr(void)
|
||||||
return ipsr;
|
return ipsr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void setipsr(uint32_t ipsr) inline_function;
|
|
||||||
static inline void setipsr(uint32_t ipsr)
|
|
||||||
{
|
|
||||||
__asm__ __volatile__
|
|
||||||
(
|
|
||||||
"\tmsr ipsr, %0\n"
|
|
||||||
:
|
|
||||||
: "r" (ipsr)
|
|
||||||
: "memory");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get/set CONTROL */
|
/* Get/set CONTROL */
|
||||||
|
|
||||||
static inline uint32_t getcontrol(void) inline_function;
|
static inline uint32_t getcontrol(void) inline_function;
|
||||||
|
|
Loading…
Reference in New Issue