mbed libraries for KL25Z

Dependents:   FRDM_RGBLED

Committer:
emilmont
Date:
Fri Nov 09 11:33:53 2012 +0000
Revision:
8:c14af7958ef5
Child:
9:663789d7729f
SPI driver; ADC driver; DAC driver; microlib support; general bugfixing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 8:c14af7958ef5 1 /* mbed Microcontroller Library - pinmap
emilmont 8:c14af7958ef5 2 * Copyright (c) 2009 ARM Limited. All rights reserved.
emilmont 8:c14af7958ef5 3 */
emilmont 8:c14af7958ef5 4 #ifndef MBED_PINMAP_H
emilmont 8:c14af7958ef5 5 #define MBED_PINMAP_H
emilmont 8:c14af7958ef5 6
emilmont 8:c14af7958ef5 7 #include "PinNames.h"
emilmont 8:c14af7958ef5 8
emilmont 8:c14af7958ef5 9 #ifdef __cplusplus
emilmont 8:c14af7958ef5 10 extern "C" {
emilmont 8:c14af7958ef5 11 #endif
emilmont 8:c14af7958ef5 12
emilmont 8:c14af7958ef5 13 PinName parse_pins(const char *str);
emilmont 8:c14af7958ef5 14
emilmont 8:c14af7958ef5 15 typedef struct {
emilmont 8:c14af7958ef5 16 PinName pin;
emilmont 8:c14af7958ef5 17 int peripheral;
emilmont 8:c14af7958ef5 18 int function;
emilmont 8:c14af7958ef5 19 } PinMap;
emilmont 8:c14af7958ef5 20
emilmont 8:c14af7958ef5 21 void pin_function(PinName pin, int function);
emilmont 8:c14af7958ef5 22 void pin_mode (PinName pin, PinMode mode);
emilmont 8:c14af7958ef5 23
emilmont 8:c14af7958ef5 24 uint32_t pinmap_peripheral(PinName pin, const PinMap* map);
emilmont 8:c14af7958ef5 25 uint32_t pinmap_merge (uint32_t a, uint32_t b);
emilmont 8:c14af7958ef5 26 void pinmap_pinout (PinName pin, const PinMap *map);
emilmont 8:c14af7958ef5 27
emilmont 8:c14af7958ef5 28 #ifdef __cplusplus
emilmont 8:c14af7958ef5 29 }
emilmont 8:c14af7958ef5 30 #endif
emilmont 8:c14af7958ef5 31
emilmont 8:c14af7958ef5 32 #endif