1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

Merge pull request #159 from ramangopalan/master

XMC4200: Add CPU file: Initial commit
This commit is contained in:
Bogdan Marinescu 2019-02-13 18:50:03 +02:00 committed by GitHub
commit 9e8d6b2583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,37 @@
#ifndef __CPU_XMC4200Q48X256_H__
#define __CPU_XMC4200Q48X256_H__
#include "stacks.h"
#include "DAVE.h"
// Number of resources (0 if not available/not implemented)
#define NUM_PIO 16
#define NUM_SPI 0
#define NUM_UART 1
#define NUM_TIMER 1
#define NUM_PWM 0
#define NUM_ADC 0
#define NUM_CAN 0
#define NUM_DAC 0
// CPU frequency (needed by the CPU module and MMCFS code, 0 if not used)
#define CPU_FREQUENCY OSCHP_GetFrequency()
// PIO prefix ('0' for P0, P1, ... or 'A' for PA, PB, ...)
#define PIO_PREFIX '0'
// Pins per port configuration:
// #define PIO_PINS_PER_PORT (n) if each port has the same number of pins, or
// #define PIO_PIN_ARRAY { n1, n2, ... } to define pins per port in an array
// Use #define PIO_PINS_PER_PORT 0 if this isn't needed
#define PIO_PIN_ARRAY { 10, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0 }
// Allocator data: define your free memory zones here in two arrays
// (start address and end address)
#define RAM_SIZE 0xA000
#define RAM_BASE 0x1FFFC000
#define INTERNAL_RAM1_FIRST_FREE RAM_BASE
#define INTERNAL_RAM1_LAST_FREE ( RAM_BASE + RAM_SIZE - STACK_SIZE_TOTAL - 1 )
#endif // #ifndef __CPU_XMC4200Q48X256_H__