From 3429bf9be6c85c20fec06190051b40dbb2da30e1 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Sun, 3 Jun 2018 21:27:37 +0200 Subject: [PATCH] Removed all IRAM_ATTR attributes because it's not needed in production code. Signed-off-by: Matthias Jentsch --- targets/FreeRTOS/ESP32_DevKitC/nanoBooter/main.c | 2 +- .../FreeRTOS/ESP32_DevKitC/nanoCLR/CLRStartup.cpp | 6 +++--- ...ev_i2c_native_Windows_Devices_I2C_I2cDevice.cpp | 2 +- ...ws_Devices_SerialCommunication_SerialDevice.cpp | 14 +++++++------- ...ev_spi_native_Windows_Devices_Spi_SpiDevice.cpp | 8 ++++---- targets/FreeRTOS/ESP32_DevKitC/nanoCLR/app_main.c | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/targets/FreeRTOS/ESP32_DevKitC/nanoBooter/main.c b/targets/FreeRTOS/ESP32_DevKitC/nanoBooter/main.c index 57d0854d85..875a029388 100644 --- a/targets/FreeRTOS/ESP32_DevKitC/nanoBooter/main.c +++ b/targets/FreeRTOS/ESP32_DevKitC/nanoBooter/main.c @@ -37,7 +37,7 @@ void Blinker_task(void *pvParameter) } // Main task start point -void IRAM_ATTR main_task(void *pvParameter) +void main_task(void *pvParameter) { // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. diff --git a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/CLRStartup.cpp b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/CLRStartup.cpp index 7d82ed94d5..4a25abde72 100644 --- a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/CLRStartup.cpp +++ b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/CLRStartup.cpp @@ -91,7 +91,7 @@ struct Settings } - HRESULT IRAM_ATTR Load() + HRESULT Load() { NANOCLR_HEADER(); @@ -159,7 +159,7 @@ struct Settings } - HRESULT IRAM_ATTR ContiguousBlockAssemblies(BlockStorageStream stream) + HRESULT ContiguousBlockAssemblies(BlockStorageStream stream) { NANOCLR_HEADER(); @@ -223,7 +223,7 @@ struct Settings NANOCLR_NOCLEANUP(); } - HRESULT IRAM_ATTR LoadDeploymentAssemblies() + HRESULT LoadDeploymentAssemblies() { NANOCLR_HEADER(); diff --git a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.I2c/win_dev_i2c_native_Windows_Devices_I2C_I2cDevice.cpp b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.I2c/win_dev_i2c_native_Windows_Devices_I2C_I2cDevice.cpp index 60946db9fa..5a75fe224b 100644 --- a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.I2c/win_dev_i2c_native_Windows_Devices_I2C_I2cDevice.cpp +++ b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.I2c/win_dev_i2c_native_Windows_Devices_I2C_I2cDevice.cpp @@ -77,7 +77,7 @@ void Library_win_dev_i2c_native_Windows_Devices_I2c_I2cDevice::SetConfig(i2c_por } -HRESULT IRAM_ATTR Library_win_dev_i2c_native_Windows_Devices_I2c_I2cDevice::NativeInit___VOID( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_i2c_native_Windows_Devices_I2c_I2cDevice::NativeInit___VOID( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { diff --git a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.SerialCommunication/win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice.cpp b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.SerialCommunication/win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice.cpp index 49569d8918..bdd9a3037b 100644 --- a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.SerialCommunication/win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice.cpp +++ b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.SerialCommunication/win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice.cpp @@ -82,7 +82,7 @@ void Esp32_Serial_UnitializeAll() } } -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeDispose___VOID( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeDispose___VOID( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { @@ -100,7 +100,7 @@ HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunicat // // Initialise a new Serial port // -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeInit___VOID( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeInit___VOID( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { @@ -142,7 +142,7 @@ HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunicat // // Set up serial port Configuration // -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeConfig___VOID( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeConfig___VOID( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { @@ -276,7 +276,7 @@ HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunicat // // Write data into buffer // -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeWrite___VOID__SZARRAY_U1( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeWrite___VOID__SZARRAY_U1( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { @@ -330,7 +330,7 @@ HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunicat // // Store - Send buffer and wait // -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeStore___U4( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeStore___U4( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { @@ -361,7 +361,7 @@ HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunicat } -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeRead___U4__SZARRAY_U1__I4__I4( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::NativeRead___U4__SZARRAY_U1__I4__I4( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { @@ -451,7 +451,7 @@ HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunicat } -HRESULT IRAM_ATTR Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::GetDeviceSelector___STATIC__STRING( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice::GetDeviceSelector___STATIC__STRING( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); { diff --git a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.Spi/win_dev_spi_native_Windows_Devices_Spi_SpiDevice.cpp b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.Spi/win_dev_spi_native_Windows_Devices_Spi_SpiDevice.cpp index 4d6a106edf..0a78483595 100644 --- a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.Spi/win_dev_spi_native_Windows_Devices_Spi_SpiDevice.cpp +++ b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/Windows.Devices.Spi/win_dev_spi_native_Windows_Devices_Spi_SpiDevice.cpp @@ -199,17 +199,17 @@ spi_device_interface_config_t Library_win_dev_spi_native_Windows_Devices_Spi_Spi return dev_config; } -HRESULT IRAM_ATTR Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeTransfer___VOID__SZARRAY_U1__SZARRAY_U1__BOOLEAN( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeTransfer___VOID__SZARRAY_U1__SZARRAY_U1__BOOLEAN( CLR_RT_StackFrame& stack ) { return NativeTransfer( stack, false ); } -HRESULT IRAM_ATTR Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeTransfer___VOID__SZARRAY_U2__SZARRAY_U2__BOOLEAN( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeTransfer___VOID__SZARRAY_U2__SZARRAY_U2__BOOLEAN( CLR_RT_StackFrame& stack ) { return NativeTransfer( stack, true ); } -HRESULT IRAM_ATTR Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeTransfer( CLR_RT_StackFrame& stack, bool data16 ) +HRESULT Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeTransfer( CLR_RT_StackFrame& stack, bool data16 ) { NANOCLR_HEADER(); { @@ -331,7 +331,7 @@ HRESULT IRAM_ATTR Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::Nati NANOCLR_NOCLEANUP(); } -HRESULT IRAM_ATTR Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeInit___VOID( CLR_RT_StackFrame& stack ) +HRESULT Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::NativeInit___VOID( CLR_RT_StackFrame& stack ) { NANOCLR_HEADER(); diff --git a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/app_main.c b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/app_main.c index 5df9f81ea0..27f27bc58f 100644 --- a/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/app_main.c +++ b/targets/FreeRTOS/ESP32_DevKitC/nanoCLR/app_main.c @@ -26,7 +26,7 @@ uint32_t __nanoImage_end__ = 0; extern bool Esp32FlashDriver_InitializeDevice(void* context); -void IRAM_ATTR receiver_task(void *pvParameter) +void receiver_task(void *pvParameter) { ReceiverThread( 0); @@ -34,7 +34,7 @@ void IRAM_ATTR receiver_task(void *pvParameter) } // Main task start point -void IRAM_ATTR main_task(void *pvParameter) +void main_task(void *pvParameter) { CLRStartupThread( 0);