samd21: Initial support for SAMD21 micro-controllers

Add initial support for the Atmel SAMD21 micro-controllers.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-07-27 19:22:44 -04:00
parent 71db5fbe31
commit 74cf4dc9e0
9 changed files with 351 additions and 0 deletions

10
src/samd21/internal.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __SAMD21_INTERNAL_H
#define __SAMD21_INTERNAL_H
// Local definitions for samd21 code
#include <stdint.h> // uint32_t
void enable_pclock(uint32_t clock_id, uint32_t pmask);
void gpio_peripheral(char bank, uint32_t bit, char ptype, uint32_t pull_up);
#endif // internal.h