Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Remove the vIRQ_SetVectorX API
Browse files Browse the repository at this point in the history
The API was unused. vIRQ_SetVector is the official way of setting a
vIRQ.
  • Loading branch information
AlessandroA committed Mar 16, 2016
1 parent 46123a6 commit 7f66561
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
32 changes: 0 additions & 32 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,32 +226,6 @@ Currently the following low level operations are permitted:

### Interrupt management

```C
void vIRQ_SetVectorX(uint32_t irqn, uint32_t vector, uint32_t flag)
```
<table>
<tr>
<td>Description</td>
<td colspan="2">Register an ISR to the currently active box, with the ability to specify permissions associated with the IRQn slot</td>
<tr>
<td rowspan="3">Parameters</td>
<td><pre>uint32_t irqn<code></td>
<td>IRQn</td>
</tr>
<tr>
<td><pre>uint32_t vector<code></td>
<td>Interrupt handler; if 0 the IRQn slot is de-registered for the current
box</td>
</tr>
<tr>
<td><pre>uint32_t flag<code></td>
<td>Permission flag (currently not implemented)</td>
</tr>
</table>
---
```C
void vIRQ_SetVector(uint32_t irqn, uint32_t vector)
```
Expand All @@ -272,12 +246,6 @@ void vIRQ_SetVector(uint32_t irqn, uint32_t vector)
</tr>
</table>
**Note:**

1. Currently `vIRQ_SetVectorX` and `vIRQ_SetVector` are mapped to the same function because the argument `flag` is not yet used to determine the permissions associated with the IRQn slot

2. `vIRQ_SetVector` is especially kept for backward compatibility with `NVIC_SetVector`

---
```C
Expand Down
1 change: 0 additions & 1 deletion uvisor-lib/override.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include <stdint.h>

extern void vIRQ_SetVectorX(uint32_t irqn, uint32_t vector, uint32_t flag);
extern void vIRQ_SetVector(uint32_t irqn, uint32_t vector);
extern uint32_t vIRQ_GetVector(uint32_t irqn);
extern void vIRQ_EnableIRQ(uint32_t irqn);
Expand Down
1 change: 0 additions & 1 deletion uvisor-lib/unsupported.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ UVISOR_EXTERN const uint32_t __uvisor_mode;

/* uvisor-lib/interrupts.h */

#define vIRQ_SetVectorX(irqn, vector, flag) NVIC_SetVector((IRQn_Type) (irqn), (uint32_t) (vector))
#define vIRQ_SetVector(irqn, vector) NVIC_SetVector((IRQn_Type) (irqn), (uint32_t) (vector))
#define vIRQ_GetVector(irqn) NVIC_GetVector((IRQn_Type) (irqn))
#define vIRQ_EnableIRQ(irqn) NVIC_EnableIRQ((IRQn_Type) (irqn))
Expand Down

0 comments on commit 7f66561

Please sign in to comment.