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. * Board-specific initialization code.
* NOTE: Interrupts are still disabled.
*/ */
void hwinit(void) { void boardInit(void) {
/*
* HAL initialization.
*/
halInit();
/* /*
* Timer 0 setup, uses SMCLK as source. * Timer 0 setup, uses SMCLK as source.

View File

@ -70,12 +70,14 @@
#define VAL_P6OUT P6_O_LED_MASK #define VAL_P6OUT P6_O_LED_MASK
#define VAL_P6DIR ~P6_I_BUTTON_MASK #define VAL_P6DIR ~P6_I_BUTTON_MASK
#if !defined(_FROM_ASM_)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
void hwinit(void); void boardInit(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* _FROM_ASM_ */
#endif /* _BOARD_H_ */ #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) { int main(int argc, char **argv) {
@ -46,9 +46,14 @@ int main(int argc, char **argv) {
(void)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. * Activates the serial driver 2 using the driver default configuration.

View File

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

View File

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

View File

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