Initial commit

This commit is contained in:
2026-03-31 13:10:37 +02:00
commit 03325b9502
566 changed files with 351758 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/*
* nvic.h
*
* Created on: Nov 6, 2012
* Author: B34443
*/
#ifndef NVIC_H_
#define NVIC_H_
/* ARM Cortex M0 implementation for interrupt priority shift */
#define ARM_INTERRUPT_LEVEL_BITS 2
#ifndef EnableInterrupts
#define EnableInterrupts asm(" CPSIE i")
#endif
#ifndef DisableInterrupts
#define DisableInterrupts asm(" CPSID i")
#endif
void enable_irq(int);
void disable_irq(int);
void set_irq_priority(int, int);
#endif /* NVIC_H_ */