Adafruit Feather M0 Basic proto package for Rowley Crossworks
This is a Adafruit Feather M0 Basic proto package for Rowley Crossworks.
The board specs are at https://www.adafruit.com/product/2772
Five project templates are provided:
- C/C++ executable
- Crossworks Tasking Library executable
- Assembly code only executable
- Externally build executable
The one, which is actually interesting is the Crossworks Tasking Library executable.
The package contains Atmel SAMD21 I2C, SPI, and UART peripheral drivers for Rowley's platform library. In addition, functions for gpio, adc, rtc, timer, and eic peripheral control are provided.
All of the source code is distributed under permissive open source ISC license (excluding Crosswork's own code, which you need to buy yourself).
The linker script expects that the target board (Feather or any other SAMD21 board) has boot loader at the beginning (bytes 0..0x1FFF). If that is not the case, you need to modify the memory map.
Also, if you don't have SWD connection to the board, remember to use 'Release' build as 'Debug' build will wait for debugger before it starts.
/* * Copyright (c) 2016 Tero Koskinen <email@example.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */