gpio.pp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. Copyright (c) 1998-2022 by the Free Pascal development team
  3. Raspberry Pi 3 GPIO hardware defines for aarch64-embedded targets
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit gpio;
  18. interface
  19. const
  20. PeripheralBase = $3F000000;
  21. GPFSEL0 = PeripheralBase + $00200000;
  22. GPFSEL1 = PeripheralBase + $00200004;
  23. GPFSEL2 = PeripheralBase + $00200008;
  24. GPFSEL3 = PeripheralBase + $0020000C;
  25. GPFSEL4 = PeripheralBase + $00200010;
  26. GPFSEL5 = PeripheralBase + $00200014;
  27. GPSET0 = PeripheralBase + $0020001C;
  28. GPSET1 = PeripheralBase + $00200020;
  29. GPCLR0 = PeripheralBase + $00200028;
  30. GPLEV0 = PeripheralBase + $00200034;
  31. GPLEV1 = PeripheralBase + $00200038;
  32. GPEDS0 = PeripheralBase + $00200040;
  33. GPEDS1 = PeripheralBase + $00200044;
  34. GPHEN0 = PeripheralBase + $00200064;
  35. GPHEN1 = PeripheralBase + $00200068;
  36. GPPUD = PeripheralBase + $00200094;
  37. GPPUDCLK0 = PeripheralBase + $00200098;
  38. GPPUDCLK1 = PeripheralBase + $0020009C;
  39. implementation
  40. end.