test_apb_dport_access.h 617 B

123456789101112131415161718
  1. /* Utility functions to test that APB access is still safe
  2. while the other CPU performs some set of DPORT accesses
  3. (see ECO 3.10 and the standalone esp32 test_dport.c for more).
  4. */
  5. /* start_apb_access_loop() starts a task reading from APB in a loop on the non-Unity-test CPU.
  6. Call this before doing something which involes DPORT reads.
  7. Does nothing in unicore mode.
  8. */
  9. void start_apb_access_loop(void);
  10. /* verify_apb_access_loop() kills the task started by start_apb_access_loop()
  11. and verifies that none of the APB reads were corrupted by unsafe DPORT reads.
  12. */
  13. void verify_apb_access_loop(void);