Callisto4Bootloader: test/c4_privilege_modes_test.h File Reference

Callisto4Bootloader

Functions
c4_privilege_modes_test.h File Reference

Interface to test privilege modes. More...

`#include "c4_error_codes.h"`

Go to the source code of this file.

## Functions

exit_code_t | TestUnprivileged ()
| Test unprivileged mode. More...

## Detailed Description

Interface to test privilege modes.

Copyright
  2020 Remsdaq Ltd.

Date
  : 8 Jul 2020

Author
  : Dan Smithers

Definition in file c4_privilege_modes_test.h.

## Function Documentation

## ◆ TestUnprivileged()

exit_code_t TestUnprivileged | ( |  | ) |

Test unprivileged mode.

Enter unprivileged mode and test that access is restricted.

Definition at line 57 of file c4_privilege_modes_test.c.

References C4_enterUnprivileged(), getRegisterValue(), printRegisterValue(), and CONTROL_Type::w.