MSP430 board files and demo updated.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2502 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2010-12-19 10:50:04 +00:00
parent ace3f84470
commit 13f5b1b97f
6 changed files with 16 additions and 15 deletions

View File

@ -61,15 +61,9 @@ CH_IRQ_HANDLER(TIMERA0_VECTOR) {
}
/*
* Hardware initialization goes here.
* NOTE: Interrupts are still disabled.
* Board-specific initialization code.
*/
void hwinit(void) {
/*
* HAL initialization.
*/
halInit();
void boardInit(void) {
/*
* Timer 0 setup, uses SMCLK as source.

View File

@ -70,12 +70,14 @@
#define VAL_P6OUT P6_O_LED_MASK
#define VAL_P6DIR ~P6_I_BUTTON_MASK
#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {
#endif
void hwinit(void);
void boardInit(void);
#ifdef __cplusplus
}
#endif
#endif /* _FROM_ASM_ */
#endif /* _BOARD_H_ */

View File

@ -38,7 +38,7 @@ static msg_t Thread1(void *arg) {
}
/*
* Entry point, the interrupts are disabled on entry.
* Application entry point.
*/
int main(int argc, char **argv) {
@ -46,9 +46,14 @@ int main(int argc, char **argv) {
(void)argv;
/*
* Hardware initialization, see board.c.
* System initializations.
* - HAL initialization, this also initializes the configured device drivers
* and performs the board-specific initializations.
* - Kernel initialization, the main() function becomes a thread and the
* RTOS is active.
*/
hwinit();
halInit();
chSysInit();
/*
* Activates the serial driver 2 using the driver default configuration.

View File

@ -28,7 +28,7 @@
/*
* HAL driver system settings.
*/
#define MSP430_USE_CLOCK MSP430_CLOCK_SOURCE_XT2CLK
#define MSP430_USE_CLOCK MSP430_CLOCK_SOURCE_DCOCLK
/*
* ADC driver system settings.

View File

@ -5,7 +5,7 @@ Settings: MCLK=DCOCLK 750KHz
*** ChibiOS/RT test suite
***
*** Kernel: 2.1.4unstable
*** Kernel: 2.1.6unstable
*** GCC Version: 3.2.3
*** Architecture: MSP430
*** Core Variant: MSP430

View File

@ -5,7 +5,7 @@ Settings: MCLK=XT2CLK 8MHz
*** ChibiOS/RT test suite
***
*** Kernel: 2.1.4unstable
*** Kernel: 2.1.6unstable
*** GCC Version: 3.2.3
*** Architecture: MSP430
*** Core Variant: MSP430