AP_HAL: add support for entering XIP mode

This commit is contained in:
Siddharth Purohit 2021-06-08 13:14:22 +05:30 committed by Andrew Tridgell
parent d3e081c100
commit 2af3864b61

View File

@ -124,6 +124,13 @@ public:
*/ */
virtual void set_cmd_header(const CommandHeader& cmd_hdr) {} virtual void set_cmd_header(const CommandHeader& cmd_hdr) {}
/*
* Sets up peripheral for execution in place mode
* Only relevant for Wide SPI setup.
*/
virtual bool enter_xip_mode(void** map_ptr) { return false; }
virtual bool exit_xip_mode() { return false; }
/** /**
* Wrapper function over #transfer() to read recv_len registers, starting * Wrapper function over #transfer() to read recv_len registers, starting
* by first_reg, into the array pointed by recv. The read flag passed to * by first_reg, into the array pointed by recv. The read flag passed to