RTEMS 6.1-rc4
Loading...
Searching...
No Matches
alt_generalpurpose_io.h
Go to the documentation of this file.
1
11/******************************************************************************
12*
13* Copyright 2013 Altera Corporation. All Rights Reserved.
14*
15* Redistribution and use in source and binary forms, with or without
16* modification, are permitted provided that the following conditions are met:
17*
18* 1. Redistributions of source code must retain the above copyright notice,
19* this list of conditions and the following disclaimer.
20*
21* 2. Redistributions in binary form must reproduce the above copyright notice,
22* this list of conditions and the following disclaimer in the documentation
23* and/or other materials provided with the distribution.
24*
25* 3. The name of the author may not be used to endorse or promote products
26* derived from this software without specific prior written permission.
27*
28* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
29* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO
31* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
33* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
36* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
37* OF SUCH DAMAGE.
38*
39******************************************************************************/
40
41#ifndef __ALT_GPIO_H__
42#define __ALT_GPIO_H__
43
44#include <stdint.h>
45#include "hwlib.h"
46
47#ifdef __cplusplus
48extern "C" {
49#endif /* __cplusplus */
50
51#define ALT_GPIO_BITMASK 0x1FFFFFFF
52
53/* If the GPIO special test mode flag was not defined in the makefile, */
54 /* set the ALT_GPIO_DATAREAD_TEST_MODE flag to false to specify that */
55 /* the production code version of alt_gpio_port_data_read() is included. */
56 /* If the flag is defined as true in the makefile, then the test version */
57 /* located in the test code file is substituted instead of the version */
58 /* in this file. */
59#ifndef ALT_GPIO_DATAREAD_TEST_MODE
60#define ALT_GPIO_DATAREAD_TEST_MODE false
61#endif
62
63/******************************************************************************/
81/******************************************************************************/
107/******************************************************************************/
114{
120
121/******************************************************************************/
128{
134
135/******************************************************************************/
143{
147
152
153/******************************************************************************/
163{
169
170/******************************************************************************/
179{
185
186/******************************************************************************/
192{
198
199
200/******************************************************************************/
206typedef enum ALT_GPIO_PORT_e
207{
212
217
226
232
233
234/******************************************************************************/
247{
249 ALT_GPIO_BIT0 = ALT_TWO_TO_POW0,
251 ALT_GPIO_BIT1 = ALT_TWO_TO_POW1,
253 ALT_GPIO_BIT2 = ALT_TWO_TO_POW2,
255 ALT_GPIO_BIT3 = ALT_TWO_TO_POW3,
257 ALT_GPIO_BIT4 = ALT_TWO_TO_POW4,
259 ALT_GPIO_BIT5 = ALT_TWO_TO_POW5,
261 ALT_GPIO_BIT6 = ALT_TWO_TO_POW6,
263 ALT_GPIO_BIT7 = ALT_TWO_TO_POW7,
265 ALT_GPIO_BIT8 = ALT_TWO_TO_POW8,
267 ALT_GPIO_BIT9 = ALT_TWO_TO_POW9,
269 ALT_GPIO_BIT10 = ALT_TWO_TO_POW10,
271 ALT_GPIO_BIT11 = ALT_TWO_TO_POW11,
273 ALT_GPIO_BIT12 = ALT_TWO_TO_POW12,
275 ALT_GPIO_BIT13 = ALT_TWO_TO_POW13,
277 ALT_GPIO_BIT14 = ALT_TWO_TO_POW14,
279 ALT_GPIO_BIT15 = ALT_TWO_TO_POW15,
281 ALT_GPIO_BIT16 = ALT_TWO_TO_POW16,
283 ALT_GPIO_BIT17 = ALT_TWO_TO_POW17,
285 ALT_GPIO_BIT18 = ALT_TWO_TO_POW18,
287 ALT_GPIO_BIT19 = ALT_TWO_TO_POW19,
289 ALT_GPIO_BIT20 = ALT_TWO_TO_POW20,
291 ALT_GPIO_BIT21 = ALT_TWO_TO_POW21,
293 ALT_GPIO_BIT22 = ALT_TWO_TO_POW22,
295 ALT_GPIO_BIT23 = ALT_TWO_TO_POW23,
297 ALT_GPIO_BIT24 = ALT_TWO_TO_POW24,
299 ALT_GPIO_BIT25 = ALT_TWO_TO_POW25,
301 ALT_GPIO_BIT26 = ALT_TWO_TO_POW26,
303 ALT_GPIO_BIT27 = ALT_TWO_TO_POW27,
305 ALT_GPIO_BIT28 = ALT_TWO_TO_POW28,
306 ALT_GPIO_BIT29 = ALT_TWO_TO_POW29, /* Not currently used */
307 ALT_GPIO_BIT30 = ALT_TWO_TO_POW30, /* Not currently used */
308 ALT_GPIO_BIT31 = (int32_t) (1UL<<31), /* Not currently used */
309
310 ALT_GPIO_BITNUM_MAX = (28),
311 ALT_GPIO_BIT_MAX = (1 << ALT_GPIO_BITNUM_MAX),
312 ALT_END_OF_GPIO_PORT_SIGNALS = (32)
314
315
316
317/******************************************************************************/
325
326/******************************************************************************/
334
335/******************************************************************************/
358 uint32_t mask, uint32_t config);
359
360/******************************************************************************/
379 uint32_t mask);
380
381/******************************************************************************/
402 uint32_t mask, uint32_t val);
403
404/******************************************************************************/
421uint32_t alt_gpio_port_data_read(ALT_GPIO_PORT_t gpio_pid, uint32_t mask);
422
423
425/******************************************************************************/
433/******************************************************************************/
457 uint32_t mask, uint32_t config);
458
459/******************************************************************************/
479 uint32_t mask);
480
481/******************************************************************************/
504 uint32_t mask, uint32_t config);
505
506/******************************************************************************/
528 uint32_t mask);
529
530
532/******************************************************************************/
537/******************************************************************************/
562 uint32_t mask, uint32_t config);
563
564/******************************************************************************/
585 uint32_t mask);
586
587/******************************************************************************/
606 uint32_t config);
607
608/******************************************************************************/
627
628/******************************************************************************/
655 uint32_t mask, ALT_GPIO_PIN_DIR_t dir, ALT_GPIO_PIN_TYPE_t type,
657 uint32_t data);
658
660/******************************************************************************/
665/******************************************************************************/
682
683/******************************************************************************/
700
701/******************************************************************************/
714
715
716/******************************************************************************/
738 uint32_t mask, uint32_t val);
739
740/******************************************************************************/
755
756/******************************************************************************/
772
773/******************************************************************************/
791 uint32_t clrmask);
792
795/******************************************************************************/
806/******************************************************************************/
813typedef enum ALT_GPIO_1BIT_e
814{
950 ALT_GPIO_1BIT_67, /* Not bonded out on some versions */
952 ALT_GPIO_1BIT_68, /* Not bonded out on some versions */
954 ALT_GPIO_1BIT_69, /* Not bonded out on some versions */
955
957 ALT_GPIO_1BIT_70, /* Not bonded out on some versions */
958
959
966 ALT_HLGPI_0, /* Not bonded out on some versions */
968 ALT_HLGPI_1, /* Not bonded out on some versions */
970 ALT_HLGPI_2, /* Not bonded out on some versions */
972 ALT_HLGPI_3, /* Not bonded out on some versions */
974 ALT_HLGPI_4, /* Not bonded out on some versions */
976 ALT_HLGPI_5, /* Not bonded out on some versions */
978 ALT_HLGPI_6, /* Not bonded out on some versions */
980 ALT_HLGPI_7, /* Not bonded out on some versions */
982 ALT_HLGPI_8, /* Not bonded out on some versions */
984 ALT_HLGPI_9, /* Not bonded out on some versions */
986 ALT_HLGPI_10, /* Not bonded out on some versions */
988 ALT_HLGPI_11, /* Not bonded out on some versions */
990 ALT_HLGPI_12, /* Not bonded out on some versions */
992 ALT_HLGPI_13, /* Not bonded out on some versions */
993
994 ALT_HLGPI_14, /* Not bonded out */
995
996 ALT_HLGPI_15, /* Not bonded out */
997
998 ALT_GPIO_INVALID,
999 ALT_END_OF_GPIO_SIGNALS = -1,
1000 ALT_LAST_VALID_GPIO_BIT = ALT_HLGPI_15
1002
1003
1004/******************************************************************************/
1010{
1030
1031/******************************************************************************/
1037{
1045
1048/******************************************************************************/
1053/******************************************************************************/
1078 ALT_GPIO_PIN_DATA_t data);
1079
1080/******************************************************************************/
1098
1099/******************************************************************************/
1126 uint32_t len);
1127
1128/******************************************************************************/
1157 uint32_t len);
1158
1159/******************************************************************************/
1193 ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len);
1194
1195
1197/******************************************************************************/
1204/******************************************************************************/
1214uint32_t alt_gpio_port_idcode_get(ALT_GPIO_PORT_t gpio_pid);
1215
1216/******************************************************************************/
1226uint32_t alt_gpio_port_ver_get(ALT_GPIO_PORT_t gpio_pid);
1227
1228
1229/******************************************************************************/
1234
1235
1236/******************************************************************************/
1242
1243/******************************************************************************/
1251 uint32_t bitmask);
1252
1253
1257#ifdef __cplusplus
1258}
1259#endif /* __cplusplus */
1260#endif /* __ALT_GPIO_H__ */
enum ALT_GPIO_PIN_DEBOUNCE_e ALT_GPIO_PIN_DEBOUNCE_t
ALT_GPIO_PIN_POL_e
Definition: alt_generalpurpose_io.h:143
ALT_GPIO_PIN_DEBOUNCE_e
Definition: alt_generalpurpose_io.h:163
enum ALT_GPIO_PORTBIT_e ALT_GPIO_PORTBIT_t
enum ALT_GPIO_PORT_e ALT_GPIO_PORT_t
ALT_GPIO_PORT_e
Definition: alt_generalpurpose_io.h:207
ALT_STATUS_CODE alt_gpio_port_data_write(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t val)
Definition: alt_generalpurpose_io.c:139
uint32_t alt_gpio_port_debounce_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:290
ALT_GPIO_PORTBIT_e
Definition: alt_generalpurpose_io.h:247
ALT_STATUS_CODE alt_gpio_port_sync_set(ALT_GPIO_PORT_t gpio_pid, uint32_t config)
Definition: alt_generalpurpose_io.c:311
ALT_STATUS_CODE alt_gpio_init(void)
Definition: alt_generalpurpose_io.c:66
ALT_STATUS_CODE alt_gpio_port_debounce_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:268
ALT_GPIO_PIN_SYNC_e
Definition: alt_generalpurpose_io.h:179
ALT_GPIO_PIN_DIR_e
Definition: alt_generalpurpose_io.h:114
enum ALT_GPIO_PIN_TYPE_e ALT_GPIO_PIN_TYPE_t
uint32_t alt_gpio_port_datadir_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:119
ALT_STATUS_CODE alt_gpio_port_sync_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:333
enum ALT_GPIO_PIN_DIR_e ALT_GPIO_PIN_DIR_t
ALT_STATUS_CODE alt_gpio_port_config(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, ALT_GPIO_PIN_DIR_t dir, ALT_GPIO_PIN_TYPE_t type, ALT_GPIO_PIN_POL_t pol, ALT_GPIO_PIN_DEBOUNCE_t debounc, uint32_t data)
Definition: alt_generalpurpose_io.c:351
ALT_STATUS_CODE alt_gpio_uninit(void)
Definition: alt_generalpurpose_io.c:82
enum ALT_GPIO_PIN_DATA_e ALT_GPIO_PIN_DATA_t
ALT_GPIO_PIN_DATA_e
Definition: alt_generalpurpose_io.h:192
enum ALT_GPIO_PIN_POL_e ALT_GPIO_PIN_POL_t
ALT_GPIO_PIN_TYPE_e
Definition: alt_generalpurpose_io.h:128
ALT_STATUS_CODE alt_gpio_port_datadir_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:98
uint32_t alt_gpio_port_data_read(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:165
enum ALT_GPIO_PIN_SYNC_e ALT_GPIO_PIN_SYNC_t
@ ALT_GPIO_PIN_ACTIVE_HIGH
Definition: alt_generalpurpose_io.h:150
@ ALT_GPIO_PIN_ACTIVE_LOW
Definition: alt_generalpurpose_io.h:146
@ ALT_GPIO_PIN_NODEBOUNCE
Definition: alt_generalpurpose_io.h:165
@ ALT_GPIO_PIN_DEBOUNCE
Definition: alt_generalpurpose_io.h:167
@ ALT_GPIO_PORTB
Definition: alt_generalpurpose_io.h:216
@ ALT_GPIO_PORTA
Definition: alt_generalpurpose_io.h:211
@ ALT_GPIO_PORT_UNKNOWN
Definition: alt_generalpurpose_io.h:230
@ ALT_GPIO_PORTC
Definition: alt_generalpurpose_io.h:225
@ ALT_GPIO_BIT21
Definition: alt_generalpurpose_io.h:291
@ ALT_GPIO_BIT10
Definition: alt_generalpurpose_io.h:269
@ ALT_GPIO_BIT26
Definition: alt_generalpurpose_io.h:301
@ ALT_GPIO_BIT23
Definition: alt_generalpurpose_io.h:295
@ ALT_GPIO_BIT4
Definition: alt_generalpurpose_io.h:257
@ ALT_GPIO_BIT6
Definition: alt_generalpurpose_io.h:261
@ ALT_GPIO_BIT18
Definition: alt_generalpurpose_io.h:285
@ ALT_GPIO_BIT24
Definition: alt_generalpurpose_io.h:297
@ ALT_GPIO_BIT5
Definition: alt_generalpurpose_io.h:259
@ ALT_GPIO_BIT3
Definition: alt_generalpurpose_io.h:255
@ ALT_GPIO_BIT11
Definition: alt_generalpurpose_io.h:271
@ ALT_GPIO_BIT8
Definition: alt_generalpurpose_io.h:265
@ ALT_GPIO_BIT25
Definition: alt_generalpurpose_io.h:299
@ ALT_GPIO_BIT9
Definition: alt_generalpurpose_io.h:267
@ ALT_GPIO_BIT14
Definition: alt_generalpurpose_io.h:277
@ ALT_GPIO_BIT16
Definition: alt_generalpurpose_io.h:281
@ ALT_GPIO_BIT2
Definition: alt_generalpurpose_io.h:253
@ ALT_GPIO_BIT7
Definition: alt_generalpurpose_io.h:263
@ ALT_GPIO_BIT0
Definition: alt_generalpurpose_io.h:249
@ ALT_GPIO_BIT12
Definition: alt_generalpurpose_io.h:273
@ ALT_GPIO_BIT27
Definition: alt_generalpurpose_io.h:303
@ ALT_GPIO_BIT17
Definition: alt_generalpurpose_io.h:283
@ ALT_GPIO_BIT28
Definition: alt_generalpurpose_io.h:305
@ ALT_GPIO_BIT15
Definition: alt_generalpurpose_io.h:279
@ ALT_GPIO_BIT19
Definition: alt_generalpurpose_io.h:287
@ ALT_GPIO_BIT13
Definition: alt_generalpurpose_io.h:275
@ ALT_GPIO_BIT1
Definition: alt_generalpurpose_io.h:251
@ ALT_GPIO_BIT22
Definition: alt_generalpurpose_io.h:293
@ ALT_GPIO_BIT20
Definition: alt_generalpurpose_io.h:289
@ ALT_GPIO_PIN_SYNC
Definition: alt_generalpurpose_io.h:183
@ ALT_GPIO_PIN_NOSYNC
Definition: alt_generalpurpose_io.h:181
@ ALT_GPIO_PIN_INPUT
Definition: alt_generalpurpose_io.h:116
@ ALT_GPIO_PIN_OUTPUT
Definition: alt_generalpurpose_io.h:118
@ ALT_GPIO_PIN_DATAONE
Definition: alt_generalpurpose_io.h:196
@ ALT_GPIO_PIN_DATAZERO
Definition: alt_generalpurpose_io.h:194
@ ALT_GPIO_PIN_EDGE_TRIG_INT
Definition: alt_generalpurpose_io.h:132
@ ALT_GPIO_PIN_LEVEL_TRIG_INT
Definition: alt_generalpurpose_io.h:130
ALT_STATUS_CODE alt_gpio_bit_config(ALT_GPIO_1BIT_t signal_num, ALT_GPIO_PIN_DIR_t dir, ALT_GPIO_PIN_TYPE_t type, ALT_GPIO_PIN_POL_t pol, ALT_GPIO_PIN_DEBOUNCE_t debounce, ALT_GPIO_PIN_DATA_t data)
Definition: alt_generalpurpose_io.c:568
enum ALT_GPIO_1BIT_e ALT_GPIO_1BIT_t
ALT_STATUS_CODE alt_gpio_bitconfig_get(ALT_GPIO_1BIT_t signal_num, ALT_GPIO_CONFIG_RECORD_t *config)
Definition: alt_generalpurpose_io.c:586
ALT_STATUS_CODE alt_gpio_group_config_get2(ALT_GPIO_1BIT_t *pinid_array, ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len)
Definition: alt_generalpurpose_io.c:702
ALT_GPIO_1BIT_e
Definition: alt_generalpurpose_io.h:814
struct ALT_GPIO_CONFIG_RECORD_s ALT_GPIO_CONFIG_RECORD_t
ALT_STATUS_CODE alt_gpio_group_config_get(ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len)
Definition: alt_generalpurpose_io.c:670
ALT_STATUS_CODE alt_gpio_group_config(ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len)
Definition: alt_generalpurpose_io.c:622
struct ALT_GPIO_PIN_RECORD_s ALT_GPIO_PIN_RECORD_t
@ ALT_GPIO_1BIT_12
Definition: alt_generalpurpose_io.h:840
@ ALT_GPIO_1BIT_49
Definition: alt_generalpurpose_io.h:914
@ ALT_GPIO_1BIT_40
Definition: alt_generalpurpose_io.h:896
@ ALT_HLGPI_6
Definition: alt_generalpurpose_io.h:978
@ ALT_GPIO_1BIT_15
Definition: alt_generalpurpose_io.h:846
@ ALT_HLGPI_5
Definition: alt_generalpurpose_io.h:976
@ ALT_HLGPI_11
Definition: alt_generalpurpose_io.h:988
@ ALT_GPIO_1BIT_54
Definition: alt_generalpurpose_io.h:924
@ ALT_HLGPI_2
Definition: alt_generalpurpose_io.h:970
@ ALT_GPIO_1BIT_27
Definition: alt_generalpurpose_io.h:870
@ ALT_GPIO_1BIT_66
Definition: alt_generalpurpose_io.h:948
@ ALT_GPIO_1BIT_57
Definition: alt_generalpurpose_io.h:930
@ ALT_GPIO_1BIT_52
Definition: alt_generalpurpose_io.h:920
@ ALT_GPIO_1BIT_21
Definition: alt_generalpurpose_io.h:858
@ ALT_GPIO_1BIT_24
Definition: alt_generalpurpose_io.h:864
@ ALT_GPIO_1BIT_34
Definition: alt_generalpurpose_io.h:884
@ ALT_GPIO_1BIT_23
Definition: alt_generalpurpose_io.h:862
@ ALT_GPIO_1BIT_5
Definition: alt_generalpurpose_io.h:826
@ ALT_GPIO_1BIT_16
Definition: alt_generalpurpose_io.h:848
@ ALT_GPIO_1BIT_70
Definition: alt_generalpurpose_io.h:957
@ ALT_GPIO_1BIT_17
Definition: alt_generalpurpose_io.h:850
@ ALT_GPIO_1BIT_64
Definition: alt_generalpurpose_io.h:944
@ ALT_GPIO_1BIT_29
Definition: alt_generalpurpose_io.h:874
@ ALT_GPIO_1BIT_42
Definition: alt_generalpurpose_io.h:900
@ ALT_GPIO_1BIT_60
Definition: alt_generalpurpose_io.h:936
@ ALT_GPIO_1BIT_59
Definition: alt_generalpurpose_io.h:934
@ ALT_HLGPI_12
Definition: alt_generalpurpose_io.h:990
@ ALT_GPIO_1BIT_25
Definition: alt_generalpurpose_io.h:866
@ ALT_GPIO_1BIT_51
Definition: alt_generalpurpose_io.h:918
@ ALT_GPIO_1BIT_4
Definition: alt_generalpurpose_io.h:824
@ ALT_GPIO_1BIT_26
Definition: alt_generalpurpose_io.h:868
@ ALT_GPIO_1BIT_32
Definition: alt_generalpurpose_io.h:880
@ ALT_GPIO_1BIT_30
Definition: alt_generalpurpose_io.h:876
@ ALT_GPIO_1BIT_63
Definition: alt_generalpurpose_io.h:942
@ ALT_GPIO_1BIT_58
Definition: alt_generalpurpose_io.h:932
@ ALT_GPIO_1BIT_19
Definition: alt_generalpurpose_io.h:854
@ ALT_GPIO_1BIT_28
Definition: alt_generalpurpose_io.h:872
@ ALT_GPIO_1BIT_14
Definition: alt_generalpurpose_io.h:844
@ ALT_GPIO_1BIT_22
Definition: alt_generalpurpose_io.h:860
@ ALT_HLGPI_10
Definition: alt_generalpurpose_io.h:986
@ ALT_GPIO_1BIT_62
Definition: alt_generalpurpose_io.h:940
@ ALT_GPIO_1BIT_45
Definition: alt_generalpurpose_io.h:906
@ ALT_HLGPI_4
Definition: alt_generalpurpose_io.h:974
@ ALT_GPIO_1BIT_37
Definition: alt_generalpurpose_io.h:890
@ ALT_GPIO_1BIT_68
Definition: alt_generalpurpose_io.h:952
@ ALT_GPIO_1BIT_50
Definition: alt_generalpurpose_io.h:916
@ ALT_GPIO_1BIT_35
Definition: alt_generalpurpose_io.h:886
@ ALT_GPIO_1BIT_18
Definition: alt_generalpurpose_io.h:852
@ ALT_GPIO_1BIT_65
Definition: alt_generalpurpose_io.h:946
@ ALT_GPIO_1BIT_61
Definition: alt_generalpurpose_io.h:938
@ ALT_HLGPI_9
Definition: alt_generalpurpose_io.h:984
@ ALT_GPIO_1BIT_38
Definition: alt_generalpurpose_io.h:892
@ ALT_GPIO_1BIT_11
Definition: alt_generalpurpose_io.h:838
@ ALT_HLGPI_13
Definition: alt_generalpurpose_io.h:992
@ ALT_GPIO_1BIT_1
Definition: alt_generalpurpose_io.h:818
@ ALT_GPIO_1BIT_3
Definition: alt_generalpurpose_io.h:822
@ ALT_GPIO_1BIT_39
Definition: alt_generalpurpose_io.h:894
@ ALT_HLGPI_7
Definition: alt_generalpurpose_io.h:980
@ ALT_GPIO_1BIT_44
Definition: alt_generalpurpose_io.h:904
@ ALT_GPIO_1BIT_2
Definition: alt_generalpurpose_io.h:820
@ ALT_GPIO_1BIT_0
Definition: alt_generalpurpose_io.h:816
@ ALT_GPIO_1BIT_6
Definition: alt_generalpurpose_io.h:828
@ ALT_HLGPI_0
Definition: alt_generalpurpose_io.h:966
@ ALT_GPIO_1BIT_41
Definition: alt_generalpurpose_io.h:898
@ ALT_GPIO_1BIT_13
Definition: alt_generalpurpose_io.h:842
@ ALT_GPIO_1BIT_9
Definition: alt_generalpurpose_io.h:834
@ ALT_GPIO_1BIT_56
Definition: alt_generalpurpose_io.h:928
@ ALT_GPIO_1BIT_10
Definition: alt_generalpurpose_io.h:836
@ ALT_GPIO_1BIT_7
Definition: alt_generalpurpose_io.h:830
@ ALT_GPIO_1BIT_20
Definition: alt_generalpurpose_io.h:856
@ ALT_GPIO_1BIT_48
Definition: alt_generalpurpose_io.h:912
@ ALT_HLGPI_3
Definition: alt_generalpurpose_io.h:972
@ ALT_GPIO_1BIT_53
Definition: alt_generalpurpose_io.h:922
@ ALT_GPIO_1BIT_33
Definition: alt_generalpurpose_io.h:882
@ ALT_GPIO_1BIT_67
Definition: alt_generalpurpose_io.h:950
@ ALT_HLGPI_8
Definition: alt_generalpurpose_io.h:982
@ ALT_GPIO_1BIT_46
Definition: alt_generalpurpose_io.h:908
@ ALT_GPIO_1BIT_43
Definition: alt_generalpurpose_io.h:902
@ ALT_GPIO_1BIT_36
Definition: alt_generalpurpose_io.h:888
@ ALT_GPIO_1BIT_69
Definition: alt_generalpurpose_io.h:954
@ ALT_GPIO_1BIT_8
Definition: alt_generalpurpose_io.h:832
@ ALT_GPIO_1BIT_47
Definition: alt_generalpurpose_io.h:910
@ ALT_GPIO_1BIT_55
Definition: alt_generalpurpose_io.h:926
@ ALT_HLGPI_1
Definition: alt_generalpurpose_io.h:968
@ ALT_GPIO_1BIT_31
Definition: alt_generalpurpose_io.h:878
ALT_STATUS_CODE alt_gpio_port_int_mask_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t val)
Definition: alt_generalpurpose_io.c:458
uint32_t alt_gpio_port_int_pol_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:248
uint32_t alt_gpio_port_int_mask_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:478
ALT_STATUS_CODE alt_gpio_port_int_type_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:184
uint32_t alt_gpio_port_int_enable_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:439
uint32_t alt_gpio_port_int_type_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:205
ALT_STATUS_CODE alt_gpio_port_int_status_clear(ALT_GPIO_PORT_t gpio_pid, uint32_t clrmask)
Definition: alt_generalpurpose_io.c:514
ALT_STATUS_CODE alt_gpio_port_int_enable(ALT_GPIO_PORT_t gpio_pid, uint32_t config)
Definition: alt_generalpurpose_io.c:400
ALT_STATUS_CODE alt_gpio_port_int_disable(ALT_GPIO_PORT_t gpio_pid, uint32_t config)
Definition: alt_generalpurpose_io.c:419
ALT_STATUS_CODE alt_gpio_port_int_pol_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:225
uint32_t alt_gpio_port_int_status_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:496
uint32_t alt_gpio_port_ver_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:551
uint32_t alt_gpio_port_idcode_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:534
ALT_GPIO_PORT_t alt_gpio_bit_to_pid(ALT_GPIO_1BIT_t pin_num)
Definition: alt_generalpurpose_io.c:732
ALT_GPIO_PORTBIT_t alt_gpio_bit_to_port_pin(ALT_GPIO_1BIT_t pin_num)
Definition: alt_generalpurpose_io.c:748
ALT_GPIO_1BIT_t alt_gpio_port_pin_to_bit(ALT_GPIO_PORT_t pid, uint32_t bitmask)
Definition: alt_generalpurpose_io.c:764
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
Definition: alt_generalpurpose_io.h:1010
ALT_GPIO_PIN_POL_t polarity
Definition: alt_generalpurpose_io.h:1022
ALT_GPIO_PIN_TYPE_t type
Definition: alt_generalpurpose_io.h:1019
ALT_GPIO_PIN_DIR_t direction
Definition: alt_generalpurpose_io.h:1016
ALT_GPIO_1BIT_t signal_number
Definition: alt_generalpurpose_io.h:1013
ALT_GPIO_PIN_DEBOUNCE_t debounce
Definition: alt_generalpurpose_io.h:1025
ALT_GPIO_PIN_DATA_t data
Definition: alt_generalpurpose_io.h:1028
Definition: alt_generalpurpose_io.h:1037
ALT_GPIO_1BIT_t signal_number
Definition: alt_generalpurpose_io.h:1040
ALT_GPIO_PIN_DATA_t val
Definition: alt_generalpurpose_io.h:1043
Definition: deflate.c:114