O'Reilly logo

The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition by Joseph Yiu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

And inside the application code, we define Hardware_Initialization(void) as SVC #1, and implement __SVC_1_HardwareInitialization which is referenced in the SVC table.
Implementation of extended SVC services
#include <MKL25Z4.H>d#include "cmsis_os.h" // Include header file for RTX CMSIS-RTOS#include "stdio.h"
// System runs at 48MHz/∗ Function declaration ∗/extern        void LED_Config(void);extern __INLINE void LED_On(uint32_t led);extern __INLINE void LED_Off(uint32_t led);extern        void UART_config(void);
/∗ Thread IDs ∗/osThreadId t_blinky_id; // Declare a thread ID for blinky/∗ Function declaration ∗/void blinky(void const ∗argument); // Thread
// define blinky as thread functionosThreadDef(blinky, osPriorityNormal, 1, 0);
// Define 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required