Skip to content

Commit

Permalink
Merge pull request #1447 from UncleGrumpy/stm32_compile_warnings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bettio committed Jan 11, 2025
2 parents b6ca308 + c35b743 commit ceb2f71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platforms/stm32/src/lib/stm_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,7 @@ void sys_enable_flash_cache(void);
void *_sbrk_r(struct _reent *, ptrdiff_t);
// This function may be defined to relocate the heap.
void local_heap_setup(uint8_t **start, uint8_t **end);
void sys_enable_core_periph_clocks();
bool sys_lock_pin(GlobalContext *glb, uint32_t gpio_bank, uint16_t pin_num);

#endif /* _STM_SYS_H_ */

0 comments on commit ceb2f71

Please sign in to comment.