Philip Freidin
/
OSHChip_Blinky
Simple test of tool chain with OSHChip
OSHChip_Pin_Names.h@1:23b7ed707d25, 2016-03-26 (annotated)
- Committer:
- OSHChip
- Date:
- Sat Mar 26 07:32:50 2016 +0000
- Revision:
- 1:23b7ed707d25
- Parent:
- 0:69ded1c7cad0
Added code to OSHChip_Init.c to change Baud
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
OSHChip | 0:69ded1c7cad0 | 1 | /* OSHChip_Pin_Names.h |
OSHChip | 0:69ded1c7cad0 | 2 | This is the version if you want the Serial Output on OSHChip_Pin_1 |
OSHChip | 0:69ded1c7cad0 | 3 | This is the version if you want the Serial Input on OSHChip_Pin_2 |
OSHChip | 0:69ded1c7cad0 | 4 | Tabs every 4 columns |
OSHChip | 0:69ded1c7cad0 | 5 | */ |
OSHChip | 0:69ded1c7cad0 | 6 | |
OSHChip | 0:69ded1c7cad0 | 7 | #ifndef OSHCHIP_PIN_NAMES_H |
OSHChip | 0:69ded1c7cad0 | 8 | #define OSHCHIP_PIN_NAMES_H |
OSHChip | 0:69ded1c7cad0 | 9 | |
OSHChip | 0:69ded1c7cad0 | 10 | #ifdef __cplusplus |
OSHChip | 0:69ded1c7cad0 | 11 | extern "C" { |
OSHChip | 0:69ded1c7cad0 | 12 | #endif |
OSHChip | 0:69ded1c7cad0 | 13 | |
OSHChip | 0:69ded1c7cad0 | 14 | #define p0 ( 0) |
OSHChip | 0:69ded1c7cad0 | 15 | #define p1 ( 1) |
OSHChip | 0:69ded1c7cad0 | 16 | #define p2 ( 2) |
OSHChip | 0:69ded1c7cad0 | 17 | #define p3 ( 3) |
OSHChip | 0:69ded1c7cad0 | 18 | #define p4 ( 4) |
OSHChip | 0:69ded1c7cad0 | 19 | #define p5 ( 5) |
OSHChip | 0:69ded1c7cad0 | 20 | #define p6 ( 6) |
OSHChip | 0:69ded1c7cad0 | 21 | #define p7 ( 7) |
OSHChip | 0:69ded1c7cad0 | 22 | #define p8 ( 8) |
OSHChip | 0:69ded1c7cad0 | 23 | #define p9 ( 9) |
OSHChip | 0:69ded1c7cad0 | 24 | #define p10 (10) |
OSHChip | 0:69ded1c7cad0 | 25 | #define p11 (11) |
OSHChip | 0:69ded1c7cad0 | 26 | #define p12 (12) |
OSHChip | 0:69ded1c7cad0 | 27 | #define p13 (13) |
OSHChip | 0:69ded1c7cad0 | 28 | #define p14 (14) |
OSHChip | 0:69ded1c7cad0 | 29 | #define p15 (15) |
OSHChip | 0:69ded1c7cad0 | 30 | #define p16 (16) |
OSHChip | 0:69ded1c7cad0 | 31 | #define p17 (17) |
OSHChip | 0:69ded1c7cad0 | 32 | #define p18 (18) |
OSHChip | 0:69ded1c7cad0 | 33 | #define p19 (19) |
OSHChip | 0:69ded1c7cad0 | 34 | #define p20 (20) |
OSHChip | 0:69ded1c7cad0 | 35 | #define p21 (21) |
OSHChip | 0:69ded1c7cad0 | 36 | #define p22 (22) |
OSHChip | 0:69ded1c7cad0 | 37 | #define p23 (23) |
OSHChip | 0:69ded1c7cad0 | 38 | #define p24 (24) |
OSHChip | 0:69ded1c7cad0 | 39 | #define p25 (25) |
OSHChip | 0:69ded1c7cad0 | 40 | #define p26 (26) |
OSHChip | 0:69ded1c7cad0 | 41 | #define p27 (27) |
OSHChip | 0:69ded1c7cad0 | 42 | #define p28 (28) |
OSHChip | 0:69ded1c7cad0 | 43 | #define p29 (29) |
OSHChip | 0:69ded1c7cad0 | 44 | #define p30 (30) |
OSHChip | 0:69ded1c7cad0 | 45 | #define p31 (31) |
OSHChip | 0:69ded1c7cad0 | 46 | |
OSHChip | 0:69ded1c7cad0 | 47 | #define P0_0 (p0) |
OSHChip | 0:69ded1c7cad0 | 48 | #define P0_1 (p1) |
OSHChip | 0:69ded1c7cad0 | 49 | #define P0_2 (p2) |
OSHChip | 0:69ded1c7cad0 | 50 | #define P0_3 (p3) |
OSHChip | 0:69ded1c7cad0 | 51 | #define P0_4 (p4) |
OSHChip | 0:69ded1c7cad0 | 52 | #define P0_5 (p5) |
OSHChip | 0:69ded1c7cad0 | 53 | #define P0_6 (p6) |
OSHChip | 0:69ded1c7cad0 | 54 | #define P0_7 (p7) |
OSHChip | 0:69ded1c7cad0 | 55 | |
OSHChip | 0:69ded1c7cad0 | 56 | #define P0_8 ( p8) |
OSHChip | 0:69ded1c7cad0 | 57 | #define P0_9 ( p9) |
OSHChip | 0:69ded1c7cad0 | 58 | #define P0_10 (p10) |
OSHChip | 0:69ded1c7cad0 | 59 | #define P0_11 (p11) |
OSHChip | 0:69ded1c7cad0 | 60 | #define P0_12 (p12) |
OSHChip | 0:69ded1c7cad0 | 61 | #define P0_13 (p13) |
OSHChip | 0:69ded1c7cad0 | 62 | #define P0_14 (p14) |
OSHChip | 0:69ded1c7cad0 | 63 | #define P0_15 (p15) |
OSHChip | 0:69ded1c7cad0 | 64 | |
OSHChip | 0:69ded1c7cad0 | 65 | #define P0_16 (p16) |
OSHChip | 0:69ded1c7cad0 | 66 | #define P0_17 (p17) |
OSHChip | 0:69ded1c7cad0 | 67 | #define P0_18 (p18) |
OSHChip | 0:69ded1c7cad0 | 68 | #define P0_19 (p19) |
OSHChip | 0:69ded1c7cad0 | 69 | #define P0_20 (p20) |
OSHChip | 0:69ded1c7cad0 | 70 | #define P0_21 (p21) |
OSHChip | 0:69ded1c7cad0 | 71 | #define P0_22 (p22) |
OSHChip | 0:69ded1c7cad0 | 72 | #define P0_23 (p23) |
OSHChip | 0:69ded1c7cad0 | 73 | |
OSHChip | 0:69ded1c7cad0 | 74 | #define P0_24 (p24) |
OSHChip | 0:69ded1c7cad0 | 75 | #define P0_25 (p25) |
OSHChip | 0:69ded1c7cad0 | 76 | #define P0_26 (p26) |
OSHChip | 0:69ded1c7cad0 | 77 | #define P0_27 (p27) |
OSHChip | 0:69ded1c7cad0 | 78 | #define P0_28 (p28) |
OSHChip | 0:69ded1c7cad0 | 79 | #define P0_29 (p29) |
OSHChip | 0:69ded1c7cad0 | 80 | #define P0_30 (p30) |
OSHChip | 0:69ded1c7cad0 | 81 | #define P0_31 (p31) |
OSHChip | 0:69ded1c7cad0 | 82 | |
OSHChip | 0:69ded1c7cad0 | 83 | #define LED_RED (p8) |
OSHChip | 0:69ded1c7cad0 | 84 | #define LED_GREEN (p5) |
OSHChip | 0:69ded1c7cad0 | 85 | #define LED_BLUE (p3) |
OSHChip | 0:69ded1c7cad0 | 86 | |
OSHChip | 0:69ded1c7cad0 | 87 | //#define RED_LED (p8) // don't declare these, so the user can use these names is |
OSHChip | 0:69ded1c7cad0 | 88 | //#define GREEN_LED (p5) // something like: DigitalOut RED_LED(LED_RED); |
OSHChip | 0:69ded1c7cad0 | 89 | //#define BLUE_LED (p3) |
OSHChip | 0:69ded1c7cad0 | 90 | |
OSHChip | 0:69ded1c7cad0 | 91 | #define LED1 (LED_RED) // These are used in board.c, so make a best effort |
OSHChip | 0:69ded1c7cad0 | 92 | #define LED2 (LED_GREEN) |
OSHChip | 0:69ded1c7cad0 | 93 | #define LED3 (LED_BLUE) |
OSHChip | 0:69ded1c7cad0 | 94 | #define LED4 ((int)0xFFFFFFFF) |
OSHChip | 0:69ded1c7cad0 | 95 | |
OSHChip | 0:69ded1c7cad0 | 96 | #define LED_0 (LED_RED) // These are used in board.c, so make a best effort |
OSHChip | 0:69ded1c7cad0 | 97 | #define LED_1 (LED_GREEN) |
OSHChip | 0:69ded1c7cad0 | 98 | #define LED_2 (LED_BLUE) |
OSHChip | 0:69ded1c7cad0 | 99 | #define LED_3 ((int)0xFFFFFFFF) |
OSHChip | 0:69ded1c7cad0 | 100 | |
OSHChip | 0:69ded1c7cad0 | 101 | #define OSHChip_Pin_1 (p20) |
OSHChip | 0:69ded1c7cad0 | 102 | #define OSHChip_Pin_2 (p18) |
OSHChip | 0:69ded1c7cad0 | 103 | #define OSHChip_Pin_3 (p16) |
OSHChip | 0:69ded1c7cad0 | 104 | #define OSHChip_Pin_4 (p15) |
OSHChip | 0:69ded1c7cad0 | 105 | #define OSHChip_Pin_5 (p12) |
OSHChip | 0:69ded1c7cad0 | 106 | #define OSHChip_Pin_6 (p11) |
OSHChip | 0:69ded1c7cad0 | 107 | #define OSHChip_Pin_7 ( p9) |
OSHChip | 0:69ded1c7cad0 | 108 | #define OSHChip_Pin_9 ( p1) |
OSHChip | 0:69ded1c7cad0 | 109 | #define OSHChip_Pin_10 ( p2) |
OSHChip | 0:69ded1c7cad0 | 110 | #define OSHChip_Pin_11 ( p0) |
OSHChip | 0:69ded1c7cad0 | 111 | #define OSHChip_Pin_12 (p27) |
OSHChip | 0:69ded1c7cad0 | 112 | #define OSHChip_Pin_13 (p26) |
OSHChip | 0:69ded1c7cad0 | 113 | #define OSHChip_Pin_14 (p24) |
OSHChip | 0:69ded1c7cad0 | 114 | #define OSHChip_Pin_15 (p21) |
OSHChip | 0:69ded1c7cad0 | 115 | |
OSHChip | 0:69ded1c7cad0 | 116 | #define RX_PIN_NUMBER (OSHChip_Pin_2) |
OSHChip | 0:69ded1c7cad0 | 117 | #define TX_PIN_NUMBER (OSHChip_Pin_1) |
OSHChip | 0:69ded1c7cad0 | 118 | #define CTS_PIN_NUMBER (p30) // select an unused output of the nRF51822 |
OSHChip | 0:69ded1c7cad0 | 119 | #define RTS_PIN_NUMBER (p29) // select an unused output of the nRF51822 |
OSHChip | 0:69ded1c7cad0 | 120 | |
OSHChip | 0:69ded1c7cad0 | 121 | void OSHChip_Init(void); |
OSHChip | 0:69ded1c7cad0 | 122 | |
OSHChip | 0:69ded1c7cad0 | 123 | #ifdef __cplusplus |
OSHChip | 0:69ded1c7cad0 | 124 | } |
OSHChip | 0:69ded1c7cad0 | 125 | #endif |
OSHChip | 0:69ded1c7cad0 | 126 | |
OSHChip | 0:69ded1c7cad0 | 127 | #endif // OSHCHIP_PIN_NAMES_H |