Skip to content

Commit 0231c80

Browse files
Ganesh RamachandranGanesh Ramachandran
authored andcommitted
Implemented us_ticker free() & modified IAR stack
1 parent 936ace0 commit 0231c80

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

targets/TARGET_TOSHIBA/TARGET_TMPM4G9/device/TOOLCHAIN_IAR/tmpm4g9f15.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ define symbol __ICFEDIT_region_BRAM_start__ = 0x20030000;
1414
define symbol __ICFEDIT_region_BRAM_end__ = 0x200307FF;
1515
/*-Sizes-*/
1616
/*Heap 1/4 of ram and stack 1/8*/
17-
define symbol __ICFEDIT_size_cstack__ = 0xC000;
17+
define symbol __ICFEDIT_size_cstack__ = 0x0400;
1818
define symbol __ICFEDIT_size_heap__ = 0x6000;
1919
/**** End of ICF editor section. ###ICF###*/
2020

targets/TARGET_TOSHIBA/TARGET_TMPM4G9/us_ticker.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,9 @@ void us_ticker_clear_interrupt(void)
9999

100100
void us_ticker_free(void)
101101
{
102+
TSB_T32A0->RUNC = T32A_RUN_DISABLE;
103+
TSB_IB->IMC006 = CLR_TIMER_INT_FLAG;
104+
NVIC_ClearPendingIRQ(INTT32A00_A_CT_IRQn);
105+
NVIC_DisableIRQ(INTT32A00_A_CT_IRQn);
106+
TSB_CG_FSYSMENA_IPMENA06 = TXZ_DISABLE;
102107
}

0 commit comments

Comments
 (0)