Skip to content

Commit ceb2f71

Browse files
committed
Merge pull request #1447 from UncleGrumpy/stm32_compile_warnings
Fix warning about implicit functions on stm32 platform Adds missing function declarations to stm32/src/lib/stm_sys.h for several platform functions used in main.c from sys.c. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents b6ca308 + c35b743 commit ceb2f71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platforms/stm32/src/lib/stm_sys.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,7 @@ void sys_enable_flash_cache(void);
164164
void *_sbrk_r(struct _reent *, ptrdiff_t);
165165
// This function may be defined to relocate the heap.
166166
void local_heap_setup(uint8_t **start, uint8_t **end);
167+
void sys_enable_core_periph_clocks();
168+
bool sys_lock_pin(GlobalContext *glb, uint32_t gpio_bank, uint16_t pin_num);
167169

168170
#endif /* _STM_SYS_H_ */

0 commit comments

Comments
 (0)