Skip to content

Javier-varez/cortex-m_hal

Repository files navigation

Cortex-M HAL

Hardware abstraction layer for Cortex-M microcontrollers. Can be used together with builsystem.

Table of Contents

Getting Started

  • Link the 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)

Back to top

Dependencies

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.

Getting the Source

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

Back to top

Versioning

This project uses Semantic Versioning. Releases will be tagged.

Back to top

How to Get Help

Feel free to reach out and open an issue if you need any help getting up and running.

Back to top

Contributing

Public contributions are very welcome and appreciated.

Back to top

License

This project is licensed under the MIT License - see LICENSE.md file for details.

Back to top

Authors

See also the list of contributors who participated in this project.

Back to top

About

Small Hardware Abstraction Layer for Cortex-M MCU's

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published