STM8 board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2509 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
7c1828c96c
commit
675adde160
|
@ -25,6 +25,7 @@
|
||||||
* @details Digital I/O ports static configuration as defined in @p board.h.
|
* @details Digital I/O ports static configuration as defined in @p board.h.
|
||||||
* This variable is used by the HAL when initializing the PAL driver.
|
* This variable is used by the HAL when initializing the PAL driver.
|
||||||
*/
|
*/
|
||||||
|
#if HAL_USE_PAL || defined(__DOXYGEN__)
|
||||||
const PALConfig pal_default_config =
|
const PALConfig pal_default_config =
|
||||||
{
|
{
|
||||||
{VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
|
{VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
|
||||||
|
@ -33,6 +34,7 @@ const PALConfig pal_default_config =
|
||||||
{VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
|
{VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
|
||||||
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
|
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Early initialization code.
|
* Early initialization code.
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
* @brief PAL setup.
|
* @brief PAL setup.
|
||||||
* @details Digital I/O ports static configuration as defined in @p board.h.
|
* @details Digital I/O ports static configuration as defined in @p board.h.
|
||||||
*/
|
*/
|
||||||
|
#if HAL_USE_PAL || defined(__DOXYGEN__)
|
||||||
ROMCONST PALConfig pal_default_config =
|
ROMCONST PALConfig pal_default_config =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -36,6 +37,7 @@ ROMCONST PALConfig pal_default_config =
|
||||||
{VAL_GPIOGODR, 0, VAL_GPIOGDDR, VAL_GPIOGCR1, VAL_GPIOGCR2},
|
{VAL_GPIOGODR, 0, VAL_GPIOGDDR, VAL_GPIOGCR1, VAL_GPIOGCR2},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TIM 2 clock after the prescaler.
|
* TIM 2 clock after the prescaler.
|
||||||
|
@ -60,14 +62,9 @@ CH_IRQ_HANDLER(13) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board initialization code.
|
* Board-specific initialization code.
|
||||||
*/
|
*/
|
||||||
void hwinit(void) {
|
void boardInit(void) {
|
||||||
|
|
||||||
/*
|
|
||||||
* HAL initialization.
|
|
||||||
*/
|
|
||||||
halInit();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TIM2 initialization as system tick.
|
* TIM2 initialization as system tick.
|
||||||
|
|
|
@ -174,12 +174,14 @@
|
||||||
#define VAL_GPIOICR1 0xFF /* All pull-up. */
|
#define VAL_GPIOICR1 0xFF /* All pull-up. */
|
||||||
#define VAL_GPIOICR2 0
|
#define VAL_GPIOICR2 0
|
||||||
|
|
||||||
|
#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_ */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
* @details Digital I/O ports static configuration as defined in @p board.h.
|
* @details Digital I/O ports static configuration as defined in @p board.h.
|
||||||
* This variable is used by the HAL when initializing the PAL driver.
|
* This variable is used by the HAL when initializing the PAL driver.
|
||||||
*/
|
*/
|
||||||
|
#if HAL_USE_PAL || defined(__DOXYGEN__)
|
||||||
ROMCONST PALConfig pal_default_config =
|
ROMCONST PALConfig pal_default_config =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -36,6 +37,7 @@ ROMCONST PALConfig pal_default_config =
|
||||||
{VAL_GPIOFODR, 0, VAL_GPIOFDDR, VAL_GPIOFCR1, VAL_GPIOFCR2},
|
{VAL_GPIOFODR, 0, VAL_GPIOFDDR, VAL_GPIOFCR1, VAL_GPIOFCR2},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TIM 2 clock after the prescaler.
|
* TIM 2 clock after the prescaler.
|
||||||
|
@ -44,14 +46,9 @@ ROMCONST PALConfig pal_default_config =
|
||||||
#define TIM2_ARR ((TIM2_CLOCK / CH_FREQUENCY) - 1)
|
#define TIM2_ARR ((TIM2_CLOCK / CH_FREQUENCY) - 1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board initialization code.
|
* Board-specific initialization code.
|
||||||
*/
|
*/
|
||||||
void hwinit(void) {
|
void boardInit(void) {
|
||||||
|
|
||||||
/*
|
|
||||||
* HAL initialization.
|
|
||||||
*/
|
|
||||||
halInit();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TIM2 initialization as system tick.
|
* TIM2 initialization as system tick.
|
||||||
|
|
|
@ -157,12 +157,14 @@
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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_ */
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
* @brief PAL setup.
|
* @brief PAL setup.
|
||||||
* @details Digital I/O ports static configuration as defined in @p board.h.
|
* @details Digital I/O ports static configuration as defined in @p board.h.
|
||||||
*/
|
*/
|
||||||
|
#if HAL_USE_PAL || defined(__DOXYGEN__)
|
||||||
ROMCONST PALConfig pal_default_config =
|
ROMCONST PALConfig pal_default_config =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -36,6 +37,7 @@ ROMCONST PALConfig pal_default_config =
|
||||||
{VAL_GPIOGODR, 0, VAL_GPIOGDDR, VAL_GPIOGCR1, VAL_GPIOGCR2},
|
{VAL_GPIOGODR, 0, VAL_GPIOGDDR, VAL_GPIOGCR1, VAL_GPIOGCR2},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TIM 2 clock after the prescaler.
|
* TIM 2 clock after the prescaler.
|
||||||
|
@ -60,14 +62,9 @@ CH_IRQ_HANDLER(13) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board initialization code.
|
* Board-specific initialization code.
|
||||||
*/
|
*/
|
||||||
void hwinit(void) {
|
void boardInit(void) {
|
||||||
|
|
||||||
/*
|
|
||||||
* HAL initialization.
|
|
||||||
*/
|
|
||||||
halInit();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TIM2 initialization as system tick.
|
* TIM2 initialization as system tick.
|
||||||
|
|
|
@ -111,12 +111,14 @@
|
||||||
#define VAL_GPIOGCR1 0xFF /* All pull-up or push-pull. */
|
#define VAL_GPIOGCR1 0xFF /* All pull-up or push-pull. */
|
||||||
#define VAL_GPIOGCR2 0
|
#define VAL_GPIOGCR2 0
|
||||||
|
|
||||||
|
#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_ */
|
||||||
|
|
|
@ -42,18 +42,18 @@ static msg_t Thread1(void *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Entry point.
|
* Application entry point.
|
||||||
*/
|
*/
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board/HAL initialization.
|
* System initializations.
|
||||||
*/
|
* - HAL initialization, this also initializes the configured device drivers
|
||||||
hwinit();
|
* and performs the board-specific initializations.
|
||||||
|
* - Kernel initialization, the main() function becomes a thread and the
|
||||||
/*
|
* RTOS is active.
|
||||||
* OS initialization.
|
|
||||||
*/
|
*/
|
||||||
|
halInit();
|
||||||
chSysInit();
|
chSysInit();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -11,6 +11,6 @@ Dependencies=
|
||||||
Filename=raisonance\raisonance.stp
|
Filename=raisonance\raisonance.stp
|
||||||
Dependencies=
|
Dependencies=
|
||||||
[Options]
|
[Options]
|
||||||
ActiveProject=raisonance
|
ActiveProject=cosmic
|
||||||
ActiveConfig=Release
|
ActiveConfig=Release
|
||||||
AddSortedElements=0
|
AddSortedElements=0
|
||||||
|
|
|
@ -38,18 +38,18 @@ static msg_t Thread1(void *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Entry point.
|
* Application entry point.
|
||||||
*/
|
*/
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board/HAL initialization.
|
* System initializations.
|
||||||
*/
|
* - HAL initialization, this also initializes the configured device drivers
|
||||||
hwinit();
|
* and performs the board-specific initializations.
|
||||||
|
* - Kernel initialization, the main() function becomes a thread and the
|
||||||
/*
|
* RTOS is active.
|
||||||
* OS initialization.
|
|
||||||
*/
|
*/
|
||||||
|
halInit();
|
||||||
chSysInit();
|
chSysInit();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<ApplicationBuild Header="ch" Extern=".\ch.rapp" Path=".\ch.rapp" OutputFile="..\STM8S-STM8S208-RC/bin\ch.aof" sate="2" AsyncBuild="" >
|
<ApplicationBuild Header="ch" Extern=".\ch.rapp" Path=".\ch.rapp" OutputFile="..\STM8S-STM8S208-RC/bin\ch.aof" sate="98" AsyncBuild="" >
|
||||||
<Group Header="kernel" Marker="-1" OutputFile="" sate="96" AsyncBuild="" >
|
<Group Header="kernel" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
||||||
<NodeC Path="..\..\os\kernel\src\chcond.c" Header="chcond.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chcond.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chcond.c" Header="chcond.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chcond.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\os\kernel\src\chdebug.c" Header="chdebug.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chdebug.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chdebug.c" Header="chdebug.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chdebug.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\os\kernel\src\chdynamic.c" Header="chdynamic.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\chdynamic.obj" sate="0" />
|
<NodeC Path="..\..\os\kernel\src\chdynamic.c" Header="chdynamic.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\chdynamic.obj" sate="0" />
|
||||||
|
@ -11,15 +11,15 @@
|
||||||
<Set Header="RCST7" >
|
<Set Header="RCST7" >
|
||||||
<Section Header="Model" >
|
<Section Header="Model" >
|
||||||
<Property Header="GlobalMemory" Value="" Removable="1" />
|
<Property Header="GlobalMemory" Value="" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
</Set>
|
</Set>
|
||||||
|
|
||||||
</Config>
|
</Config>
|
||||||
|
|
||||||
</Options>
|
</Options>
|
||||||
|
|
||||||
</NodeC>
|
</NodeC>
|
||||||
<NodeC Path="..\..\os\kernel\src\chlists.c" Header="chlists.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chlists.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chlists.c" Header="chlists.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chlists.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\os\kernel\src\chmboxes.c" Header="chmboxes.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chmboxes.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chmboxes.c" Header="chmboxes.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chmboxes.obj" sate="0" AsyncBuild="" />
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
<NodeC Path="..\..\os\kernel\src\chregistry.c" Header="chregistry.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chregistry.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chregistry.c" Header="chregistry.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chregistry.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\os\kernel\src\chschd.c" Header="chschd.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chschd.obj" sate="0" AsyncBuild="" >
|
<NodeC Path="..\..\os\kernel\src\chschd.c" Header="chschd.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chschd.obj" sate="0" AsyncBuild="" >
|
||||||
<Options/>
|
<Options/>
|
||||||
|
|
||||||
</NodeC>
|
</NodeC>
|
||||||
<NodeC Path="..\..\os\kernel\src\chsem.c" Header="chsem.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chsem.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chsem.c" Header="chsem.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chsem.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\os\kernel\src\chsys.c" Header="chsys.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chsys.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\kernel\src\chsys.c" Header="chsys.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chsys.obj" sate="0" AsyncBuild="" />
|
||||||
|
@ -42,17 +42,17 @@
|
||||||
<Set Header="RCST7" >
|
<Set Header="RCST7" >
|
||||||
<Section Header="Model" >
|
<Section Header="Model" >
|
||||||
<Property Header="GlobalMemory" Value="" Removable="1" />
|
<Property Header="GlobalMemory" Value="" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
</Set>
|
</Set>
|
||||||
|
|
||||||
</Config>
|
</Config>
|
||||||
|
|
||||||
</Options>
|
</Options>
|
||||||
|
|
||||||
</NodeC>
|
</NodeC>
|
||||||
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group Header="test" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
<Group Header="test" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
||||||
<NodeC Path="..\..\test\test.c" Header="test.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\test.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\test\test.c" Header="test.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\test.obj" sate="0" AsyncBuild="" />
|
||||||
|
@ -67,11 +67,11 @@
|
||||||
<NodeC Path="..\..\test\testqueues.c" Header="testqueues.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\testqueues.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\test\testqueues.c" Header="testqueues.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\testqueues.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\test\testsem.c" Header="testsem.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\testsem.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\test\testsem.c" Header="testsem.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\testsem.obj" sate="0" AsyncBuild="" />
|
||||||
<NodeC Path="..\..\test\testthd.c" Header="testthd.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\testthd.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\test\testthd.c" Header="testthd.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\testthd.obj" sate="0" AsyncBuild="" />
|
||||||
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group Header="port" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
<Group Header="port" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
||||||
<NodeC Path="..\..\os\ports\RC\STM8\chcore.c" Header="chcore.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chcore.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\ports\RC\STM8\chcore.c" Header="chcore.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\chcore.obj" sate="0" AsyncBuild="" />
|
||||||
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group Header="hal" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
<Group Header="hal" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
||||||
<NodeC Path="..\..\os\hal\src\adc.c" Header="adc.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\adc.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\os\hal\src\adc.c" Header="adc.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\adc.obj" sate="0" AsyncBuild="" />
|
||||||
|
@ -88,12 +88,13 @@
|
||||||
<NodeC Path="..\..\os\hal\platforms\STM8S\pal_lld.c" Header="pal_lld.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\pal_lld.obj" sate="0" />
|
<NodeC Path="..\..\os\hal\platforms\STM8S\pal_lld.c" Header="pal_lld.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\pal_lld.obj" sate="0" />
|
||||||
<NodeC Path="..\..\os\hal\platforms\STM8S\serial_lld.c" Header="serial_lld.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\serial_lld.obj" sate="0" />
|
<NodeC Path="..\..\os\hal\platforms\STM8S\serial_lld.c" Header="serial_lld.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\serial_lld.obj" sate="0" />
|
||||||
<NodeC Path="..\..\os\hal\platforms\STM8S\spi_lld.c" Header="spi_lld.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\spi_lld.obj" sate="0" />
|
<NodeC Path="..\..\os\hal\platforms\STM8S\spi_lld.c" Header="spi_lld.c" Marker="-1" AsyncBuild="" OutputFile="..\STM8S-STM8S208-RC/bin\spi_lld.obj" sate="0" />
|
||||||
|
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group Header="board" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
<Group Header="board" Marker="-1" OutputFile="" sate="0" AsyncBuild="" >
|
||||||
<NodeC Path="..\..\boards\RAISONANCE_REVA_STM8S\board.c" Header="board.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\board.obj" sate="0" AsyncBuild="" />
|
<NodeC Path="..\..\boards\RAISONANCE_REVA_STM8S\board.c" Header="board.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\board.obj" sate="0" AsyncBuild="" />
|
||||||
|
|
||||||
</Group>
|
</Group>
|
||||||
<NodeC Path=".\main.c" Header="main.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\main.obj" sate="0" AsyncBuild="" />
|
<NodeC Path=".\main.c" Header="main.c" Marker="-1" OutputFile="..\STM8S-STM8S208-RC/bin\main.obj" sate="0" AsyncBuild="" />
|
||||||
<Options>
|
<Options>
|
||||||
|
@ -101,21 +102,21 @@
|
||||||
<Set Header="ApplicationBuild" >
|
<Set Header="ApplicationBuild" >
|
||||||
<Section Header="General" >
|
<Section Header="General" >
|
||||||
<Property Header="TargetFamily" Value="ST7" />
|
<Property Header="TargetFamily" Value="ST7" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
<Section Header="Directories" >
|
<Section Header="Directories" >
|
||||||
<Property Header="IncDir" Value="$(RkitInc);$(RkitInc)\ST7;..\..\os\kernel\include;..\..\os\ports\RC\STM8;..\..\os\hal\include;..\..\os\hal\platforms\STM8S;..\..\boards\RAISONANCE_REVA_STM8S;..\..\test" Removable="1" />
|
<Property Header="IncDir" Value="$(RkitInc);$(RkitInc)\ST7;..\..\os\kernel\include;..\..\os\ports\RC\STM8;..\..\os\hal\include;..\..\os\hal\platforms\STM8S;..\..\boards\RAISONANCE_REVA_STM8S;..\..\test" Removable="1" />
|
||||||
<Property Header="OutDir" Value="$(ApplicationDir)/bin" Removable="1" />
|
<Property Header="OutDir" Value="$(ApplicationDir)/bin" Removable="1" />
|
||||||
<Property Header="ListDir" Value="$(ApplicationDir)/lst" Removable="1" />
|
<Property Header="ListDir" Value="$(ApplicationDir)/lst" Removable="1" />
|
||||||
<Property Header="LinkerOutputDir" Value="Output Directory" Removable="1" />
|
<Property Header="LinkerOutputDir" Value="Output Directory" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
</Set>
|
</Set>
|
||||||
<Set Header="Target" >
|
<Set Header="Target" >
|
||||||
<Section Header="ProcessorST7" >
|
<Section Header="ProcessorST7" >
|
||||||
<Property Header="Processor" Value="STM8S208MB" Removable="1" />
|
<Property Header="Processor" Value="STM8S208MB" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
<Section Header="ToolSetST7" >
|
<Section Header="ToolSetST7" >
|
||||||
<Property Header="BuildToolSetST7" Value="ST7\RaisonanceTools.config" Removable="1" />
|
<Property Header="BuildToolSetST7" Value="ST7\RaisonanceTools.config" Removable="1" />
|
||||||
|
@ -126,33 +127,33 @@
|
||||||
<Section Header="DebugST7" >
|
<Section Header="DebugST7" >
|
||||||
<Property Header="Startup" Value="1" Removable="1" />
|
<Property Header="Startup" Value="1" Removable="1" />
|
||||||
<Property Header="DebugTool_STM8" Value="RLINK_STM8" Removable="1" />
|
<Property Header="DebugTool_STM8" Value="RLINK_STM8" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
</Set>
|
</Set>
|
||||||
<Set Header="RCST7" >
|
<Set Header="RCST7" >
|
||||||
<Section Header="CodeGen" >
|
<Section Header="CodeGen" >
|
||||||
<Property Header="ENUMTYPE" Value="ET(CHAR)" Removable="1" />
|
<Property Header="ENUMTYPE" Value="ET(CHAR)" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
<Section Header="Model" >
|
<Section Header="Model" >
|
||||||
<Property Header="GlobalMemory" Value="DGC(DATA)" Removable="1" />
|
<Property Header="GlobalMemory" Value="DGC(DATA)" Removable="1" />
|
||||||
<Property Header="ModelP" Value="STM8(SMALL)" Removable="1" />
|
<Property Header="ModelP" Value="STM8(SMALL)" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
<Section Header="OPTIM" >
|
<Section Header="OPTIM" >
|
||||||
<Property Header="OTLEVEL" Value="3" Removable="1" />
|
<Property Header="OTLEVEL" Value="3" Removable="1" />
|
||||||
<Property Header="SPEEDSIZE" Value="SPEED" Removable="1" />
|
<Property Header="SPEEDSIZE" Value="SPEED" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
</Set>
|
</Set>
|
||||||
<Set Header="MAST7" >
|
<Set Header="MAST7" >
|
||||||
<Section Header="Set" >
|
<Section Header="Set" >
|
||||||
<Property Header="Defines" Value="STM8S208RB" Removable="1" />
|
<Property Header="Defines" Value="STM8S208RB" Removable="1" />
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
</Set>
|
</Set>
|
||||||
</Config>
|
</Config>
|
||||||
</Options>
|
</Options>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
<Project Header="Project 'ch'" Path=".\ch.rprj" Project="Yes" OutputFile="" sate="96" ActiveApp="ch" AsyncBuild="" >
|
<Project Header="Project 'ch'" Path=".\ch.rprj" Project="Yes" OutputFile="" sate="96" ActiveApp="ch" AsyncBuild="" >
|
||||||
<ApplicationBuild Header="ch" Extern=".\ch.rapp" Path=".\ch.rapp" OutputFile="..\STM8S-STM8S208-RC/bin\ch.aof" sate="2" AsyncBuild="" />
|
<ApplicationBuild Header="ch" Extern=".\ch.rapp" Path=".\ch.rapp" OutputFile="..\STM8S-STM8S208-RC/bin\ch.aof" sate="98" AsyncBuild="" />
|
||||||
</Project>
|
</Project>
|
|
@ -38,18 +38,18 @@ static msg_t Thread1(void *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Entry point.
|
* Application entry point.
|
||||||
*/
|
*/
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board/HAL initialization.
|
* System initializations.
|
||||||
*/
|
* - HAL initialization, this also initializes the configured device drivers
|
||||||
hwinit();
|
* and performs the board-specific initializations.
|
||||||
|
* - Kernel initialization, the main() function becomes a thread and the
|
||||||
/*
|
* RTOS is active.
|
||||||
* OS initialization.
|
|
||||||
*/
|
*/
|
||||||
|
halInit();
|
||||||
chSysInit();
|
chSysInit();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -6,7 +6,7 @@ Compiler: Cosmic STM8 compiler 4.3.3.3.
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.1.4unstable
|
*** Kernel: 2.1.6unstable
|
||||||
*** Architecture: STM8
|
*** Architecture: STM8
|
||||||
*** Platform: STM8L
|
*** Platform: STM8L
|
||||||
*** Test Board: ST STM8L-Discovery
|
*** Test Board: ST STM8L-Discovery
|
||||||
|
|
|
@ -6,7 +6,7 @@ Compiler: Raisonance RKit-STM8_2.30.10.0175
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.1.4unstable
|
*** Kernel: 2.1.6unstable
|
||||||
*** Architecture: STM8
|
*** Architecture: STM8
|
||||||
*** Platform: STM8L
|
*** Platform: STM8L
|
||||||
*** Test Board: ST STM8L-Discovery
|
*** Test Board: ST STM8L-Discovery
|
||||||
|
|
|
@ -6,7 +6,7 @@ Compiler: Cosmic STM8 compiler 4.3.3.3.
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.1.4unstable
|
*** Kernel: 2.1.6unstable
|
||||||
*** Architecture: STM8
|
*** Architecture: STM8
|
||||||
*** Platform: STM8S
|
*** Platform: STM8S
|
||||||
*** Test Board: ST STM8S-Discovery
|
*** Test Board: ST STM8S-Discovery
|
||||||
|
|
|
@ -6,7 +6,7 @@ Compiler: Raisonance RKit-STM8_2.30.10.0175
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.1.4unstable
|
*** Kernel: 2.1.6unstable
|
||||||
*** Architecture: STM8
|
*** Architecture: STM8
|
||||||
*** Platform: STM8S
|
*** Platform: STM8S
|
||||||
*** Test Board: ST STM8S-Discovery
|
*** Test Board: ST STM8S-Discovery
|
||||||
|
|
|
@ -6,7 +6,7 @@ Compiler: Raisonance RKit-STM8_2.30.10.0175
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.1.4unstable
|
*** Kernel: 2.1.6unstable
|
||||||
*** Architecture: STM8
|
*** Architecture: STM8
|
||||||
*** Platform: STM8S
|
*** Platform: STM8S
|
||||||
*** Test Board: Raisonance REva V3 + STM8S208RB
|
*** Test Board: Raisonance REva V3 + STM8S208RB
|
||||||
|
|
Loading…
Reference in New Issue