Small Hardware Abstraction Layer for Cortex-M MCU's
Hardware abstraction layer for Cortex-M microcontrollers. Can be used together with builsystem.
libcortex_m_hal
library in your project.
LOCAL_DIR := $(call current-dir)
include $(CLEAR_VARS)
LOCAL_NAME := user_application
LOCAL_CFLAGS := \
$(TARGET_CFLAGS) \
-Os \
-g3 \
-I$(LOCAL_DIR)/inc \
-Wall \
-Werror \
-Wextra
LOCAL_CXXFLAGS := \
$(LOCAL_CFLAGS) \
-fno-exceptions \
-fno-rtti
LOCAL_SRC := \
$(USER_SOURCES)
# The linker file for the application must define
# the memory layout as a minimum.
LOCAL_LINKER_FILE := \
$(LOCAL_DIR)/memory.ld
# Link agains the libcortex_m_hal
LOCAL_STATIC_LIBS := \
libcortex_m_hal
# Compiler settings
CC := gcc
CXX := g++
LOCAL_CROSS_COMPILE := arm-none-eabi-
include $(BUILD_BINARY)
This project relies on a custom build system based on a non-recursive set of makefile templates. You can find a link to it here. See the list of dependencies for the buildsystem here.
This project is hosted on GitHub. You can clone this project directly using this command:
git clone git@github.com:Javier-varez/cortex-m_hal.git
This project uses Semantic Versioning. Releases will be tagged.
Feel free to reach out and open an issue if you need any help getting up and running.
Public contributions are very welcome and appreciated.
This project is licensed under the MIT License - see LICENSE.md file for details.
See also the list of contributors who participated in this project.