git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@291 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
1dce6b0fb9
commit
1e99857780
|
@ -64,6 +64,7 @@ UADEFS =
|
||||||
# List ARM-mode C source files here
|
# List ARM-mode C source files here
|
||||||
ASRC = ../../ports/ARM7-AT91SAM7X/chcore.c \
|
ASRC = ../../ports/ARM7-AT91SAM7X/chcore.c \
|
||||||
../../ports/ARM7-AT91SAM7X/sam7x_serial.c \
|
../../ports/ARM7-AT91SAM7X/sam7x_serial.c \
|
||||||
|
../../ports/ARM7-AT91SAM7X/sam7x_emac.c \
|
||||||
../../src/chinit.c ../../src/chdebug.c ../../src/chlists.c ../../src/chdelta.c \
|
../../src/chinit.c ../../src/chdebug.c ../../src/chlists.c ../../src/chdelta.c \
|
||||||
../../src/chschd.c ../../src/chthreads.c ../../src/chsem.c ../../src/chmtx.c \
|
../../src/chschd.c ../../src/chthreads.c ../../src/chsem.c ../../src/chmtx.c \
|
||||||
../../src/chevents.c ../../src/chmsg.c ../../src/chsleep.c ../../src/chqueues.c \
|
../../src/chevents.c ../../src/chmsg.c ../../src/chsleep.c ../../src/chqueues.c \
|
||||||
|
@ -81,7 +82,7 @@ TSRC =
|
||||||
ASMSRC = ../../ports/ARM7-AT91SAM7X/crt0.s ../../ports/ARM7/chsys.s
|
ASMSRC = ../../ports/ARM7-AT91SAM7X/crt0.s ../../ports/ARM7/chsys.s
|
||||||
|
|
||||||
# List all user directories here
|
# List all user directories here
|
||||||
UINCDIR = ../../src/include ../../src/lib \
|
UINCDIR = ../../src/include ../../src/lib ../../test \
|
||||||
../../ports/ARM7 ../../ports/ARM7-AT91SAM7X
|
../../ports/ARM7 ../../ports/ARM7-AT91SAM7X
|
||||||
|
|
||||||
# List the user directory to look for the libraries here
|
# List the user directory to look for the libraries here
|
||||||
|
|
|
@ -69,6 +69,7 @@ ASRC =
|
||||||
# enabled for all modules and that lowers performance.
|
# enabled for all modules and that lowers performance.
|
||||||
TSRC = ../../ports/ARM7-AT91SAM7X/chcore.c \
|
TSRC = ../../ports/ARM7-AT91SAM7X/chcore.c \
|
||||||
../../ports/ARM7-AT91SAM7X/sam7x_serial.c \
|
../../ports/ARM7-AT91SAM7X/sam7x_serial.c \
|
||||||
|
../../ports/ARM7-AT91SAM7X/sam7x_emac.c \
|
||||||
../../src/chinit.c ../../src/chdebug.c ../../src/chlists.c ../../src/chdelta.c \
|
../../src/chinit.c ../../src/chdebug.c ../../src/chlists.c ../../src/chdelta.c \
|
||||||
../../src/chschd.c ../../src/chthreads.c ../../src/chsem.c ../../src/chmtx.c \
|
../../src/chschd.c ../../src/chthreads.c ../../src/chsem.c ../../src/chmtx.c \
|
||||||
../../src/chevents.c ../../src/chmsg.c ../../src/chsleep.c ../../src/chqueues.c \
|
../../src/chevents.c ../../src/chmsg.c ../../src/chsleep.c ../../src/chqueues.c \
|
||||||
|
@ -81,7 +82,7 @@ TSRC = ../../ports/ARM7-AT91SAM7X/chcore.c \
|
||||||
ASMSRC = ../../ports/ARM7-AT91SAM7X/crt0.s ../../ports/ARM7/chsys.s
|
ASMSRC = ../../ports/ARM7-AT91SAM7X/crt0.s ../../ports/ARM7/chsys.s
|
||||||
|
|
||||||
# List all user directories here
|
# List all user directories here
|
||||||
UINCDIR = ../../src/include ../../src/lib \
|
UINCDIR = ../../src/include ../../src/lib ../../test \
|
||||||
../../ports/ARM7 ../../ports/ARM7-AT91SAM7X
|
../../ports/ARM7 ../../ports/ARM7-AT91SAM7X
|
||||||
|
|
||||||
# List the user directory to look for the libraries here
|
# List the user directory to look for the libraries here
|
||||||
|
|
|
@ -30,7 +30,7 @@ __stacks_total_size__ = __und_stack_size__ + __abt_stack_size__ + __fiq_stack_si
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
flash : org = 0x100000, len = 256k
|
flash : org = 0x000000, len = 256k
|
||||||
ram : org = 0x200020, len = 64k - 0x20
|
ram : org = 0x200020, len = 64k - 0x20
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ch.h>
|
#include <ch.h>
|
||||||
|
#include <test.h>
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "sam7x_serial.h"
|
#include "sam7x_serial.h"
|
||||||
|
@ -27,9 +28,9 @@ static msg_t Thread1(void *arg) {
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
AT91C_BASE_PIOB->PIO_SODR = PIOB_LCD_BL; // LCD on.
|
AT91C_BASE_PIOB->PIO_SODR = PIOB_LCD_BL; // LCD on.
|
||||||
chThdSleep(500);
|
chThdSleep(100);
|
||||||
AT91C_BASE_PIOB->PIO_CODR = PIOB_LCD_BL; // LCD off.
|
AT91C_BASE_PIOB->PIO_CODR = PIOB_LCD_BL; // LCD off.
|
||||||
chThdSleep(500);
|
chThdSleep(900);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +39,6 @@ static msg_t Thread1(void *arg) {
|
||||||
* Entry point, the interrupts are disabled on entry.
|
* Entry point, the interrupts are disabled on entry.
|
||||||
*/
|
*/
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
msg_t TestThread(void *p);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The main() function becomes a thread here then the interrupts are
|
* The main() function becomes a thread here then the interrupts are
|
||||||
|
|
|
@ -82,7 +82,7 @@ TSRC =
|
||||||
ASMSRC = ../../ports/ARM7-LPC214x/crt0.s ../../ports/ARM7/chsys.s
|
ASMSRC = ../../ports/ARM7-LPC214x/crt0.s ../../ports/ARM7/chsys.s
|
||||||
|
|
||||||
# List all user directories here
|
# List all user directories here
|
||||||
UINCDIR = ../../src/include ../../src/lib \
|
UINCDIR = ../../src/include ../../src/lib ../../test \
|
||||||
../../ports/ARM7 ../../ports/ARM7-LPC214x
|
../../ports/ARM7 ../../ports/ARM7-LPC214x
|
||||||
|
|
||||||
# List the user directory to look for the libraries here
|
# List the user directory to look for the libraries here
|
||||||
|
|
|
@ -82,7 +82,7 @@ TSRC = ../../ports/ARM7-LPC214x/chcore.c \
|
||||||
ASMSRC = ../../ports/ARM7-LPC214x/crt0.s ../../ports/ARM7/chsys.s
|
ASMSRC = ../../ports/ARM7-LPC214x/crt0.s ../../ports/ARM7/chsys.s
|
||||||
|
|
||||||
# List all user directories here
|
# List all user directories here
|
||||||
UINCDIR = ../../src/include ../../src/lib \
|
UINCDIR = ../../src/include ../../src/lib ../../test \
|
||||||
../../ports/ARM7 ../../ports/ARM7-LPC214x
|
../../ports/ARM7 ../../ports/ARM7-LPC214x
|
||||||
|
|
||||||
# List the user directory to look for the libraries here
|
# List the user directory to look for the libraries here
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ch.h>
|
#include <ch.h>
|
||||||
|
#include <test.h>
|
||||||
|
|
||||||
#include "lpc214x.h"
|
#include "lpc214x.h"
|
||||||
#include "lpc214x_serial.h"
|
#include "lpc214x_serial.h"
|
||||||
|
@ -63,7 +64,6 @@ static msg_t Thread2(void *arg) {
|
||||||
* Executed as event handler at 500mS intervals.
|
* Executed as event handler at 500mS intervals.
|
||||||
*/
|
*/
|
||||||
static void TimerHandler(eventid_t id) {
|
static void TimerHandler(eventid_t id) {
|
||||||
msg_t TestThread(void *p);
|
|
||||||
|
|
||||||
if (!(IO0PIN & 0x00018000)) { // Both buttons
|
if (!(IO0PIN & 0x00018000)) { // Both buttons
|
||||||
TestThread(&COM1);
|
TestThread(&COM1);
|
||||||
|
|
|
@ -56,7 +56,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Normal main() thread activity, in this demo it does nothing except
|
* Normal main() thread activity, in this demo it does nothing except
|
||||||
* sleeping in a loop.
|
* sleeping in a loop and check the button state.
|
||||||
*/
|
*/
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
if (GPIOA->IDR & GPIOA_BUTTON)
|
if (GPIOA->IDR & GPIOA_BUTTON)
|
||||||
|
|
|
@ -65,6 +65,10 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
|
||||||
*** Releases ***
|
*** Releases ***
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
|
*** 0.6.5 ***
|
||||||
|
- Modified the AT91SAM7X256 demo load script in order to make code segments
|
||||||
|
to start at address 0 instead of 0x100000.
|
||||||
|
|
||||||
*** 0.6.4 ***
|
*** 0.6.4 ***
|
||||||
- NEW: MSP430 port, the port code compiles correctly but it is not tested yet.
|
- NEW: MSP430 port, the port code compiles correctly but it is not tested yet.
|
||||||
The port requires the MSPGCC toolchain.
|
The port requires the MSPGCC toolchain.
|
||||||
|
|
Loading…
Reference in New Issue