|
| 1 | +/* |
| 2 | + * Common pins Arduino definition |
| 3 | + * |
| 4 | + * Copyright (C) 2017, STMicroelectronics - All Rights Reserved |
| 5 | + * Author: Frederic Pillon for STMicroelectronics. |
| 6 | + * |
| 7 | + * License type: GPLv2 |
| 8 | + * |
| 9 | + * This program is free software; you can redistribute it and/or modify it |
| 10 | + * under the terms of the GNU General Public License version 2 as published by |
| 11 | + * the Free Software Foundation. |
| 12 | + * |
| 13 | + * This program is distributed in the hope that it will be useful, but |
| 14 | + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 15 | + * or FITNESS FOR A PARTICULAR PURPOSE. |
| 16 | + * See the GNU General Public License for more details. |
| 17 | + * |
| 18 | + * You should have received a copy of the GNU General Public License along with |
| 19 | + * this program. If not, see |
| 20 | + * <http://www.gnu.org/licenses/>. |
| 21 | + */ |
| 22 | +#ifndef _PINS_ARDUINO_COMMON_H_ |
| 23 | +#define _PINS_ARDUINO_COMMON_H_ |
| 24 | + |
| 25 | +// Arduino digital pin alias |
| 26 | +// GPIO port (A to K) * 16 pins: 176 |
| 27 | +enum { |
| 28 | + D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, |
| 29 | + D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, |
| 30 | + D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, |
| 31 | + D30, D31, D32, D33, D34, D35, D36, D37, D38, D39, |
| 32 | + D40, D41, D42, D43, D44, D45, D46, D47, D48, D49, |
| 33 | + D50, D51, D52, D53, D54, D55, D56, D57, D58, D59, |
| 34 | + D60, D61, D62, D63, D64, D65, D66, D67, D68, D69, |
| 35 | + D70, D71, D72, D73, D74, D75, D76, D77, D78, D79, |
| 36 | + D80, D81, D82, D83, D84, D85, D86, D87, D88, D89, |
| 37 | + D90, D91, D92, D93, D94, D95, D96, D97, D98, D99, |
| 38 | + D100, D101, D102, D103, D104, D105, D106, D107, D108, D109, |
| 39 | + D110, D111, D112, D113, D114, D115, D116, D117, D118, D119, |
| 40 | + D120, D121, D122, D123, D124, D125, D126, D127, D128, D129, |
| 41 | + D130, D131, D132, D133, D134, D135, D136, D137, D138, D139, |
| 42 | + D140, D141, D142, D143, D144, D145, D146, D147, D148, D149, |
| 43 | + D150, D151, D152, D153, D154, D155, D156, D157, D158, D159, |
| 44 | + D160, D161, D162, D163, D164, D165, D166, D167, D168, D169, |
| 45 | + D170, D171, D172, D173, D174, D175, |
| 46 | + DMAX |
| 47 | +}; |
| 48 | + |
| 49 | +#endif /*_PINS_ARDUINO_COMMON_H_*/ |
| 50 | + |
0 commit comments