File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
libraries/mbed/targets/hal/TARGET_STM Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ void set_compare(uint16_t count) {
48
48
}
49
49
50
50
// Used to increment the slave counter
51
+ #if defined(__CC_ARM ) // Keil/MDK-ARM
52
+ #pragma O0
53
+ #pragma Ospace
54
+ #elif defined(__IAR_SYSTEMS_ICC__ ) // IAR/EWARM
55
+ #pragma optimize=low
56
+ #endif
51
57
static void tim_update_irq_handler (void ) {
52
58
SlaveCounter ++ ;
53
59
if (TIM_GetITStatus (TIM_MST , TIM_IT_Update ) == SET ) {
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ void set_compare(uint16_t count) {
48
48
}
49
49
50
50
// Used to increment the slave counter
51
+ #if defined(__CC_ARM ) // Keil/MDK-ARM
52
+ #pragma O0
53
+ #pragma Ospace
54
+ #elif defined(__IAR_SYSTEMS_ICC__ ) // IAR/EWARM
55
+ #pragma optimize=low
56
+ #endif
51
57
static void tim_update_irq_handler (void ) {
52
58
SlaveCounter ++ ;
53
59
if (TIM_GetITStatus (TIM_MST , TIM_IT_Update ) == SET ) {
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ void set_compare(uint16_t count) {
51
51
}
52
52
53
53
// Used to increment the slave counter
54
+ #if defined(__CC_ARM ) // Keil/MDK-ARM
55
+ #pragma O0
56
+ #pragma Ospace
57
+ #elif defined(__IAR_SYSTEMS_ICC__ ) // IAR/EWARM
58
+ #pragma optimize=low
59
+ #endif
54
60
static void tim_update_irq_handler (void ) {
55
61
SlaveCounter ++ ;
56
62
if (__HAL_TIM_GET_ITSTATUS (& TimMasterHandle , TIM_IT_UPDATE ) == SET ) {
Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ void set_compare(uint16_t count) {
46
46
TIM_ITConfig (TIM_MST , TIM_IT_CC1 , ENABLE );
47
47
}
48
48
49
+ #if defined(__CC_ARM ) // Keil/MDK-ARM
50
+ #pragma O0
51
+ #pragma Ospace
52
+ #elif defined(__IAR_SYSTEMS_ICC__ ) // IAR/EWARM
53
+ #pragma optimize=low
54
+ #endif
49
55
static void tim_update_oc_irq_handler (void ) {
50
56
uint16_t cval = TIM_MST -> CNT ;
51
57
You can’t perform that action at this time.
0 commit comments