mirror of https://github.com/rusefi/bldc.git
Os for nrf driver
This commit is contained in:
parent
be47438dae
commit
69e249ee13
|
@ -17,6 +17,9 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("Os")
|
||||
|
||||
#include <string.h>
|
||||
#include "nrf_driver.h"
|
||||
#include "rf.h"
|
||||
|
@ -525,3 +528,5 @@ bool nrf_driver_ext_nrf_running(void) {
|
|||
void nrf_driver_pause(int ms) {
|
||||
driver_paused = ms;
|
||||
}
|
||||
|
||||
#pragma GCC pop_options
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("Os")
|
||||
|
||||
#include "rf.h"
|
||||
#include "spi_sw.h"
|
||||
#include "ch.h"
|
||||
|
@ -357,3 +360,5 @@ char rf_read_reg_byte(int reg) {
|
|||
rf_read_reg(reg, &result, 1);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma GCC pop_options
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("Os")
|
||||
|
||||
#include "rfhelp.h"
|
||||
#include "rf.h"
|
||||
#include "ch.h"
|
||||
|
@ -365,3 +368,5 @@ void rfhelp_power_up(void) {
|
|||
rf_power_up();
|
||||
chMtxUnlock(&rf_mutex);
|
||||
}
|
||||
|
||||
#pragma GCC pop_options
|
||||
|
|
Loading…
Reference in New Issue