blob: d65beebe07c61b27c7fea14f162e00a12d1de98e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
`#[cmse_nonsecure_entry]` functions require a C ABI
Erroneous code example:
```compile_fail,E0776
#![feature(cmse_nonsecure_entry)]
#[no_mangle]
#[cmse_nonsecure_entry]
pub fn entry_function(input: Vec<u32>) {}
```
To fix this error, declare your entry function with a C ABI, using `extern "C"`.
|