source: azure_iot_hub/trunk/asp3_dcre/target/gr_citrus_gcc/PinNames.h@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 1004 bytes
Line 
1#ifndef MBED_PINNAMES_H
2#define MBED_PINNAMES_H
3
4#include <stdint.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef enum {
11 P05, P20, P21, P32, P33, P50, P52, PC0, PC1, PC2, PC4, PC5, PC6, PC7,
12 PA0, PA1, PA2, PA6, PA7,
13 AN0, AN1, AN2, AN3, AN4, AN5, AN6, AN7,
14
15 D0 = P20,
16 D1 = P21,
17 D2 = PC0,
18 D3 = PC1,
19 D4 = PC2,
20 D5 = P50,
21 D6 = P52,
22 D7 = P32,
23 D8 = P33,
24 D9 = P05,
25 D10 = PC4,
26 D11 = PC6,
27 D12 = PC7,
28 D13 = PC5,
29
30 A0 = AN0,
31 A1 = AN1,
32 A2 = AN2,
33 A3 = AN3,
34 A4 = AN4,
35 A5 = AN5,
36 A6 = AN6,
37 A7 = AN7,
38
39 I2C_SCL = P52,
40 I2C_SDA = P50,
41
42 PIN_LED0 = PA0,
43 PIN_LED1 = PA1,
44 PIN_LED2 = PA2,
45 PIN_LED3 = PA6,
46 PIN_SW = PA7,
47
48 NC = (int)0xFFFFFFFF
49} PinName;
50
51#define LED_RED PIN_LED0
52#define LED_GREEN PIN_LED1
53#define LED_BLUE PIN_LED2
54#define LED_USER PIN_LED3
55#define USER_BUTTON0 PIN_SW
56
57typedef enum {
58 PIN_INPUT,
59 PIN_OUTPUT
60} PinDirection;
61
62typedef enum {
63 PullUp = 2,
64 PullDown = 3,
65 PullNone = 0,
66 OpenDrain = 4,
67 PullDefault = PullNone
68} PinMode;
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif
Note: See TracBrowser for help on using the repository browser.