feat: 移植到 BC2C 新板
This commit is contained in:
@@ -69,10 +69,10 @@
|
||||
/* add user code end 0 */
|
||||
|
||||
/**
|
||||
* @brief main function.
|
||||
* @param none
|
||||
* @retval none
|
||||
*/
|
||||
* @brief main function.
|
||||
* @param none
|
||||
* @retval none
|
||||
*/
|
||||
int main(void)
|
||||
{
|
||||
/* add user code begin 1 */
|
||||
@@ -100,24 +100,12 @@ int main(void)
|
||||
/* init usart3 function. */
|
||||
wk_usart3_init();
|
||||
|
||||
/* init i2c1 function. */
|
||||
wk_i2c1_init();
|
||||
|
||||
/* init i2c2 function. */
|
||||
wk_i2c2_init();
|
||||
|
||||
/* init tmr6 function. */
|
||||
wk_tmr6_init();
|
||||
|
||||
/* init tmr8 function. */
|
||||
wk_tmr8_init();
|
||||
|
||||
/* init tmr11 function. */
|
||||
wk_tmr11_init();
|
||||
|
||||
/* init tmr12 function. */
|
||||
wk_tmr12_init();
|
||||
|
||||
/* init can1 function. */
|
||||
wk_can1_init();
|
||||
|
||||
@@ -141,21 +129,24 @@ int main(void)
|
||||
LOGD("eeprom init done");
|
||||
|
||||
/* motion init */
|
||||
by_motion_init();
|
||||
LOGD("motion init done");
|
||||
// by_motion_init();
|
||||
// LOGD("motion init done");
|
||||
|
||||
/* messy init */
|
||||
by_messy_init();
|
||||
LOGD("frame init done");
|
||||
// by_messy_init();
|
||||
// LOGD("frame init done");
|
||||
|
||||
LOGI("init done");
|
||||
|
||||
/* add user code end 2 */
|
||||
|
||||
while (1) {
|
||||
while(1)
|
||||
{
|
||||
/* add user code begin 3 */
|
||||
by_messy_loop();
|
||||
by_motion_loop();
|
||||
// by_messy_loop();
|
||||
// by_motion_loop();
|
||||
gpio_bits_write(GPIOB, GPIO_PINS_6, !gpio_output_data_bit_read(GPIOB, GPIO_PINS_6));
|
||||
DWT_Delay(500000);
|
||||
/* add user code end 3 */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user