System-level function implementations for Cortex-M4. More...
#include "navhal.h"
Macros | |
| #define | CORTEX_M4 |
Functions | |
| int | putchar (int ch) |
| Write a character to the standard output. | |
| void | abort (void) |
| Abnormal program termination. | |
| void * | memcpy (void *dest, const void *src, unsigned int n) |
| Copy memory area. | |
System-level function implementations for Cortex-M4.
This file provides minimal implementations of standard library functions required for the NAVHAL framework. It includes:
These implementations are optimized for embedded use and avoid dependencies on the standard C library.
| #define CORTEX_M4 |
| void abort | ( | void | ) |
Abnormal program termination.
Implements the standard abort() function by entering an infinite loop. This is the default behavior for unrecoverable errors in the embedded environment.
| void * memcpy | ( | void * | dest, |
| const void * | src, | ||
| unsigned int | n ) |
Copy memory area.
| [out] | dest | Pointer to destination memory |
| [in] | src | Pointer to source memory |
| [in] | n | Number of bytes to copy |
Implements the standard memcpy() function with byte-by-byte copy. This is a minimal implementation without alignment optimizations.
| int putchar | ( | int | ch | ) |
Write a character to the standard output.
| [in] | ch | Character to output |
Implements the standard putchar() function by redirecting output to UART2. This enables printf() functionality when using the standard library.