config.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * config.h
  3. *
  4. * Copyright (C) 2019 Sylvain Munaut
  5. * All rights reserved.
  6. *
  7. * LGPL v3+, see LICENSE.lgpl3
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 3 of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this program; if not, write to the Free Software Foundation,
  21. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22. */
  23. #pragma once
  24. // 100 MHz base frequency
  25. #define BASE_FREQ 100000000
  26. #define UART_BASE 0x81000000
  27. #define SPI_BASE 0x82000000
  28. #define LED_BASE 0x83000000
  29. #define MAILBOX_REGS_BASE 0x84000000
  30. #define MAILBOX_BUTTONS_BASE 0x85000000
  31. #define SUPPORT_ODD_PULSE_TRAIN
  32. #if defined(SUPPORT_ODD_PULSE_TRAIN)
  33. #define N_PULSE_TRAINS 2
  34. #else
  35. #define N_PULSE_TRAINS 1
  36. #endif
  37. #define USE_KEYBOARD (1)