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

Add code to allow compilation with BUILD_LUA_INT_HANDLERS on avr32 platforms

This commit is contained in:
Martin Guy 2011-04-25 17:46:22 +02:00
parent 02cc57c538
commit 53efb1b4c8
4 changed files with 15 additions and 1 deletions

View File

@ -18,7 +18,7 @@
#define BUILD_CON_GENERIC
//#define BUILD_RPC
#define BUILD_C_INT_HANDLERS
#define BUILA_LUA_INT_HANDLERS
#define BUILD_LUA_INT_HANDLERS
//#define BUILD_RFS
//#define BUILD_SERMUX
#define BUILD_ADC
@ -161,6 +161,9 @@
//#define SERMUX_NUM_VUART 2
//#define SERMUX_BUFFER_SIZES { RFS_BUFFER_SIZE, CON_BUF_SIZE }
// Interrupt queue size
#define PLATFORM_INT_QUEUE_LOG_SIZE 5
// Interrupt list
#define INT_UART_RX ELUA_INT_FIRST_ID
#define INT_ELUA_LAST INT_UART_RX

View File

@ -114,6 +114,9 @@
#define MEM_START_ADDRESS { ( void* )end }
#define MEM_END_ADDRESS { ( void* )( AVR32_SRAM_SIZE - STACK_SIZE_TOTAL - 1 ) }
// Interrupt queue size
#define PLATFORM_INT_QUEUE_LOG_SIZE 5
// Interrupt list
#define INT_UART_RX ELUA_INT_FIRST_ID
#define INT_ELUA_LAST INT_UART_RX

View File

@ -162,6 +162,9 @@
#define MEM_START_ADDRESS { ( void* )end, ( void* )( SDRAM + ELUA_FIRMWARE_SIZE ) }
#define MEM_END_ADDRESS { ( void* )( 0x8000 - STACK_SIZE_TOTAL - 1 ), ( void* )( SDRAM + SDRAM_SIZE - 1 ) }
// Interrupt queue size
#define PLATFORM_INT_QUEUE_LOG_SIZE 5
// Interrupt list
#define INT_UART_RX ELUA_INT_FIRST_ID
#define INT_ELUA_LAST INT_UART_RX

View File

@ -579,6 +579,11 @@ u32 platform_s_timer_op( unsigned id, int op, u32 data )
return res;
}
int platform_s_timer_set_match_int( unsigned id, u32 period_us, int type )
{
return PLATFORM_TIMER_INT_INVALID_ID;
}
// ****************************************************************************
// SPI functions