cc2538: ccm: Make it possible to use the interrupt

Using the AES interrupt allows the user process not to waste time
polling for the completion of the operation. This time can be used by
the user process to do something else, or to let the system enter PM0.

Since the system is now free to perform various operations during a
crypto operation, a protection of the crypto resource is added, and PM1+
is prohibited in order not to stall crypto operations.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
Benoît Thébaudeau 2015-05-15 19:53:58 +02:00
parent 117dc4e5e3
commit b92a5afcc4
11 changed files with 166 additions and 48 deletions

View file

@ -68,6 +68,7 @@ PROCESS_THREAD(sha256_test_process, ev, data)
"success",
"invalid param",
"NULL error",
"resource in use",
"DMA bus error"
};
static const struct {