Skip to content

Commit

Permalink
Merge branch 'main' into update_mqtt_broker_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarg authored Apr 22, 2024
2 parents dc47102 + 140ce29 commit 450ba28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
2 changes: 2 additions & 0 deletions FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,6 @@
#define bktPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 )
#define bktSECONDARY_PRIORITY ( configMAX_PRIORITIES - 4 )

#define configENABLE_BACKWARD_COMPATIBILITY 0

#endif /* FREERTOS_CONFIG_H */
6 changes: 4 additions & 2 deletions FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC/build/gcc/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
OUTPUT_DIR := ./output
IMAGE := RTOSDemo.out
SUB_MAKEFILE_DIR = ./library-makefiles

# The directory that contains the /source and /demo sub directories.
FREERTOS_ROOT = ./../../../../
FREERTOS_ROOT = ./../../../..

CC = arm-none-eabi-gcc
LD = arm-none-eabi-gcc
Expand All @@ -15,6 +14,9 @@ CFLAGS += $(INCLUDE_DIRS) -nostartfiles -ffreestanding -mthumb -mcpu=cortex-m3 \
-Wall -Wextra -g3 -Os -ffunction-sections -fdata-sections \
-MMD -MP -MF"$(@:%.o=%.d)" -MT $@

#CFLAGS += -Wpedantic -Wshadow -fanalyzer
#CFLAGS += -flto

#
# Kernel build.
#
Expand Down
24 changes: 12 additions & 12 deletions FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC/build/gcc/startup_gcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ extern void TIMER1_Handler( void );
/* Exception handlers. */
static void HardFault_Handler( void ) __attribute__( ( naked ) );
static void Default_Handler( void ) __attribute__( ( naked ) );
void Reset_Handler( void );
void Reset_Handler( void ) __attribute__( ( naked ) );

extern int main( void );
extern uint32_t _estack;

/* Vector table. */
const uint32_t* isr_vector[] __attribute__((section(".isr_vector"))) =
const uint32_t* isr_vector[] __attribute__((section(".isr_vector"), used)) =
{
( uint32_t * ) &_estack,
( uint32_t * ) &Reset_Handler, // Reset -15
Expand All @@ -68,15 +68,15 @@ const uint32_t* isr_vector[] __attribute__((section(".isr_vector"))) =
( uint32_t * ) &Default_Handler, // MemManage_Handler -12
( uint32_t * ) &Default_Handler, // BusFault_Handler -11
( uint32_t * ) &Default_Handler, // UsageFault_Handler -10
0, // reserved
0, // reserved
0, // reserved
0, // reserved -9
0, // reserved -8
0, // reserved -7
0, // reserved -6
( uint32_t * ) &vPortSVCHandler, // SVC_Handler -5
( uint32_t * ) &Default_Handler, // DebugMon_Handler -4
0, // reserved
( uint32_t * ) &xPortPendSVHandler, // PendSV handler -2
( uint32_t * ) &xPortSysTickHandler,// SysTick_Handler -1
( uint32_t * ) &vPortSVCHandler, // SVC_Handler -5
( uint32_t * ) &Default_Handler, // DebugMon_Handler -4
0, // reserved -3
( uint32_t * ) &xPortPendSVHandler, // PendSV handler -2
( uint32_t * ) &xPortSysTickHandler,// SysTick_Handler -1
0,
0,
0,
Expand All @@ -86,7 +86,7 @@ const uint32_t* isr_vector[] __attribute__((section(".isr_vector"))) =
0,
0,
( uint32_t * ) TIMER0_Handler, // Timer 0
( uint32_t * ) TIMER1_Handler, // Timer 1
( uint32_t * ) TIMER1_Handler, // Timer 1
0,
0,
0,
Expand All @@ -113,7 +113,7 @@ volatile uint32_t psr;/* Program status register. */
/* Called from the hardfault handler to provide information on the processor
* state at the time of the fault.
*/
void prvGetRegistersFromStack( uint32_t *pulFaultStackAddress )
__attribute__( ( used ) ) void prvGetRegistersFromStack( uint32_t *pulFaultStackAddress )
{
r0 = pulFaultStackAddress[ 0 ];
r1 = pulFaultStackAddress[ 1 ];
Expand Down

0 comments on commit 450ba28

Please sign in to comment.