Os for nrf driver

This commit is contained in:
Benjamin Vedder 2024-07-08 17:30:04 +02:00
parent be47438dae
commit 69e249ee13
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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