2016-03-04 11:20 PM
I am familiar with stm32cube and keil and eclipse platform.but new to spc5studio.i recently install spc5studio and from market place i also installed necessary compiler and chibios.but i little bit confuse how to create new project with help of pin map wizard and component wizard help is not that much helpful. i used to practice in stm32cube that in cube i select whichever component i want to use and when i generate code all initialization portion is included in project automatically. but here i little confused.here i want to create project which use uart and chibios. so any one can suggest helpful and illustrative document for this????
#spc5studio2016-03-07 12:41 AM
2016-03-07 01:54 AM
2016-03-07 07:49 AM
/* Initial setup of all defined pads, the list is terminated by a {-1, 0, 0}.*/
static
const
spc_siu_init_t spc_siu_init[] = {
{PCR(PORT_B, PB_LIN0_TDX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)},
{PCR(PORT_B, PB_LIN0_RDX), PAL_HIGH, PAL_MODE_INPUT},
{PCR(PORT_C, PC_LED8), PAL_LOW, PAL_MODE_OUTPUT_PUSHPULL},
{PCR(PORT_C, PC_LED7), PAL_LOW, PAL_MODE_OUTPUT_PUSHPULL},
{-1, 0, 0}
};
/* Initialization array for the PSMI registers.*/
static
const
uint8_t spc_padsels_init[SPC5_SIUL_NUM_PADSELS] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
};
/**
* @brief PAL setup.
*/
const
PALConfig pal_default_config = {
PAL_MODE_UNCONNECTED,
spc_siu_init,
spc_padsels_init
};
Best Regards
Erwan
2016-03-07 08:07 AM