@@ -120,7 +120,7 @@ int __attribute__ ((noinline)) Init(const uint32_t address, const uint32_t frequ
120120 return 0 ;
121121}
122122
123- int UnInit (const uint32_t function) {
123+ int __attribute__ ((noinline)) UnInit(const uint32_t function) {
124124 // TODO: implement uninit
125125
126126 return 0 ;
@@ -158,14 +158,14 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
158158}
159159
160160#if CHIP_ERASE == true
161- int EraseChip (void ) {
161+ int __attribute__ ((noinline)) EraseChip(void ) {
162162 // TODO: implement chip erase
163163 return 0 ;
164164 }
165165#endif
166166
167167#if UNIFORM_SECTORS
168- int SEGGER_OPEN_Erase (uint32_t SectorAddr, uint32_t SectorIndex, uint32_t NumSectors) {
168+ int __attribute__ ((noinline)) SEGGER_OPEN_Erase(uint32_t SectorAddr, uint32_t SectorIndex, uint32_t NumSectors) {
169169 // feed the watchdog
170170 FeedWatchdog ();
171171
@@ -186,7 +186,7 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
186186#endif
187187
188188#if !NATIVE_READ
189- uint32_t Verify (uint32_t Addr, uint32_t NumBytes, uint8_t *pBuff) {
189+ uint32_t __attribute__ ((noinline)) Verify(uint32_t Addr, uint32_t NumBytes, uint8_t *pBuff) {
190190 // TODO: implement verify
191191
192192 return 0 ;
@@ -198,7 +198,7 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
198198 return 0 ;
199199 }
200200
201- int SEGGER_OPEN_Read (const uint32_t address, const uint32_t size, uint8_t *const data) {
201+ int __attribute__ ((noinline)) SEGGER_OPEN_Read(const uint32_t address, const uint32_t size, uint8_t *const data) {
202202 // TODO: add read implementation
203203
204204 return size;
0 commit comments