All Projects → Elemecca → cmake-microchip

Elemecca / cmake-microchip

Licence: other
CMake modules for the Microchip embedded toolchain

Programming Languages

CMake
9771 projects

Projects that are alternatives of or similar to cmake-microchip

PIC16F1-USB-DFU-Bootloader
DFU protocol variant of Matt Sarnoff's PIC16F1-USB-Bootloader
Stars: ✭ 39 (+77.27%)
Mutual labels:  microchip
Arduino-CMake-Toolchain
CMake toolchain for all Arduino compatible boards
Stars: ✭ 108 (+390.91%)
Mutual labels:  cmake-toolchain
switch-cmake
CMake toolchain for Nintendo Switch homebrew development
Stars: ✭ 38 (+72.73%)
Mutual labels:  cmake-toolchain
meta-atmel
OpenEmbedded/Yocto Project layer for for Microchip SoC (aka AT91)
Stars: ✭ 75 (+240.91%)
Mutual labels:  microchip
oseid
Microchip AVR based smartcard/token with ECC and RSA cryptography
Stars: ✭ 17 (-22.73%)
Mutual labels:  microchip
ATM90E32
Updated version of the ATM90E32 Arduino library
Stars: ✭ 22 (+0%)
Mutual labels:  microchip
PIC18F4550-TUTORIAL
PIC18F4550 - TUTORIAL
Stars: ✭ 31 (+40.91%)
Mutual labels:  microchip
uDevkit-IDE
An IDE for uDevkit or C/C++ projects with Git written in Qt5
Stars: ✭ 15 (-31.82%)
Mutual labels:  microchip

CMake for the Microchip Toolchain

This project provides toolchains and other support modules to enable using CMake with the Microchip compilers, although presently only XC16 is supported.

Usage

First, you need to somehow get a copy of this project as a subdirectory of your project named external/cmake-microchip. If you use git, the easiest way is to add a submodule:

git submodule add git://github.com/Elemecca/cmake-microchip.git external/cmake-microchip

Then add this snippet at the very top of your CMakeLists.txt:

# set up the Microchip cross toolchain
set(CMAKE_TOOLCHAIN_FILE external/cmake-microchip/toolchain.cmake)

# set the default MCU model
set(MICROCHIP_MCU PIC24FJ32GB002)

The target MCU is set by the MICROCHIP_MCU variable. It can be set in CMakeLists.txt as above or on the CMake command line like so:

cmake -DMICROCHIP_MCU=PIC24FJ256GB004 .

Copying

This project is provided under the same BSD 3-Clause license as CMake itself. See COPYING.txt for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].