Giter VIP home page Giter VIP logo

stm32c11's Introduction

STM32 C++11 Library

STM32C11 is a replace for CMSIS library writen in pure c++11 language

  • MMR by c++ templates
  • lower size for code
  • higher speed
  • f0 series(partial) support now

Development plan

  • Increase structure of support f0 series
  • Add f3 series

Tested toolchains

gcc-arm-none-eabi-5_3-2016q1

gcc-arm-none-eabi-6-2017-q2-update

gcc-arm-none-eabi-8-2018-q4-major

Usage

stm32c11 requires CMake >2.8 to run.

Add git repository as submodule to your projects

$ cd project
$ git submodule add https://github.com/JocusSoft/stm32c11.git

Create CMakeLists.txt for your project like this

PROJECT(sample)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
FIND_PACKAGE(STM32C11 REQUIRED)
INCLUDE_DIRECTORIES(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${STM32C11_INCLUDE_DIRS}
)

SET(PROJECT_SOURCES
    main.cpp
)

ADD_EXECUTABLE(${CMAKE_PROJECT_NAME} ${PROJECT_SOURCES} ${STM32C11_SOURCES})

STM32_SET_TARGET_PROPERTIES(${CMAKE_PROJECT_NAME})
STM32_ADD_HEX_BIN_TARGETS(${CMAKE_PROJECT_NAME})
STM32_PRINT_SIZE_OF_TARGETS(${CMAKE_PROJECT_NAME})

Create build directory and run cmake

$ mkdir build
$ cd build
$ cmake -DSTM32_CHIP=<chip> -DCMAKE_TOOLCHAIN_FILE=stm32c11/cmake/stm32c11.cmake -DTOOLCHAIN_PREFIX=<path to toolchain> ..

CMake params

  • STM32_CHIP - chip select(aka stm32f030r8t6)
  • TOOLCHAIN_PREFIX - path to toolchain

Sample

STM32C11 SAMPLE

License

APACHE FOUNDATION 2.0

stm32c11's People

Contributors

jocussoft avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.