@@ -120,7 +120,7 @@ int __attribute__ ((noinline)) Init(const uint32_t address, const uint32_t frequ
120
120
return 0 ;
121
121
}
122
122
123
- int UnInit (const uint32_t function) {
123
+ int __attribute__ ((noinline)) UnInit(const uint32_t function) {
124
124
// TODO: implement uninit
125
125
126
126
return 0 ;
@@ -158,14 +158,14 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
158
158
}
159
159
160
160
#if CHIP_ERASE == true
161
- int EraseChip (void ) {
161
+ int __attribute__ ((noinline)) EraseChip(void ) {
162
162
// TODO: implement chip erase
163
163
return 0 ;
164
164
}
165
165
#endif
166
166
167
167
#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) {
169
169
// feed the watchdog
170
170
FeedWatchdog ();
171
171
@@ -186,7 +186,7 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
186
186
#endif
187
187
188
188
#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) {
190
190
// TODO: implement verify
191
191
192
192
return 0 ;
@@ -198,7 +198,7 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
198
198
return 0 ;
199
199
}
200
200
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) {
202
202
// TODO: add read implementation
203
203
204
204
return size;
0 commit comments