drv_sram.h 557 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-01-21 shelton first version
  9. */
  10. #ifndef __DRV_SRAM__
  11. #define __DRV_SRAM__
  12. #include <rtthread.h>
  13. #include "at32f4xx.h"
  14. #define SRAM_LENGTH ((uint32_t)0x100000)
  15. #define EXT_SRAM_BEGIN ((uint32_t)0x68000000)
  16. #define EXT_SRAM_END (EXT_SRAM_BEGIN + SRAM_LENGTH)
  17. #define RT_BUFFER_SIZE 0x400
  18. #define RT_WRITE_READ_ADDR 0x8000
  19. #endif // __DRV_SRAM__