mbed libraries for KL25Z
Diff: pinmap.h
- Revision:
- 8:c14af7958ef5
- Child:
- 9:663789d7729f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pinmap.h Fri Nov 09 11:33:53 2012 +0000 @@ -0,0 +1,32 @@ +/* mbed Microcontroller Library - pinmap + * Copyright (c) 2009 ARM Limited. All rights reserved. + */ +#ifndef MBED_PINMAP_H +#define MBED_PINMAP_H + +#include "PinNames.h" + +#ifdef __cplusplus +extern "C" { +#endif + +PinName parse_pins(const char *str); + +typedef struct { + PinName pin; + int peripheral; + int function; +} PinMap; + +void pin_function(PinName pin, int function); +void pin_mode (PinName pin, PinMode mode); + +uint32_t pinmap_peripheral(PinName pin, const PinMap* map); +uint32_t pinmap_merge (uint32_t a, uint32_t b); +void pinmap_pinout (PinName pin, const PinMap *map); + +#ifdef __cplusplus +} +#endif + +#endif