Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- platform 'sim' switched to the new build system - fixed a few macro definitions
- Loading branch information
Showing
9 changed files
with
75 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- eLua simulator running on linux | ||
|
||
return { | ||
cpu = 'linux', | ||
components = { | ||
sercon = { uart = 0, speed = 0 }, | ||
wofs = true, | ||
romfs = true, | ||
shell = true, | ||
term = { lines = 25, cols = 80 }, | ||
}, | ||
modules = { | ||
generic = { 'pd', 'math', 'term', 'elua' } | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Linux "CPU" description for the eLua simulator | ||
|
||
#ifndef __CPU_LINUX_H__ | ||
#define __CPU_LINUX_H__ | ||
|
||
// Number of resources (0 if not available/not implemented) | ||
#define NUM_PIO 0 | ||
#define NUM_SPI 0 | ||
#define NUM_UART 0 | ||
#define NUM_TIMER 0 | ||
#define NUM_PWM 0 | ||
#define NUM_ADC 0 | ||
#define NUM_CAN 0 | ||
|
||
// PIO prefix ('0' for P0, P1, ... or 'A' for PA, PB, ...) | ||
#define PIO_PREFIX 'A' | ||
// 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_PINS_PER_PORT 0 | ||
|
||
// Allocator data: define your free memory zones here in two arrays | ||
// (start address and end address) | ||
extern void *memory_start_address; | ||
extern void *memory_end_address; | ||
#define MEM_LENGTH (1024 * 1024) | ||
#define INTERNAL_RAM_FIRST_FREE ( void* )memory_start_address | ||
#define INTERNAL_RAM_LAST_FREE ( void* )memory_end_address | ||
|
||
#endif | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Included by platform_conf.h for platform customizations | ||
|
||
#ifndef __PLATFORM_GENERIC_H__ | ||
#define __PLATFORM_GENERIC_H__ | ||
|
||
#define PLATFORM_HAS_SYSTIMER | ||
|
||
#endif // #ifndef __PLATFORM_GENERIC_H__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// CPU definition file for STM32F103ZE | ||
// Use the STM32F103RE description as a base | ||
|
||
#ifndef __STM32F103ZE_H__ | ||
#define __STM32F103ZE_H__ | ||
#ifndef __CPU_STM32F103ZE_H__ | ||
#define __CPU_STM32F103ZE_H__ | ||
|
||
#include "cpu_stm32f103re.h" | ||
|
||
// 21 ADCs instead of 16 | ||
#undef NUM_ADC | ||
#define NUM_ADC 21 | ||
|
||
#endif // #ifndef __STM32F103ZE_H__ | ||
#endif // #ifndef __CPU_STM32F103ZE_H__ | ||
|