kosmos threading running
This commit is contained in:
@@ -9,16 +9,18 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#if 0
|
||||
#include "../../../../../kernel/include/sys_tick.h"
|
||||
#include "../../../driver/include/stm32_sys_tick.h"
|
||||
#include "../../../driver/include/stm32f4_pwm.h"
|
||||
#include "../../../driver/include/stm32f4_uart.h"
|
||||
#include "pwm.h"
|
||||
#include "timer.h"
|
||||
#include "uart.h"
|
||||
#include "ringbuffer.h"
|
||||
#endif
|
||||
#include "stm32f4xx.h"
|
||||
|
||||
#include "timer.h"
|
||||
#include "stm32_sys_tick.h"
|
||||
#include "sys_tick.h"
|
||||
|
||||
#include "gpio.h"
|
||||
#include "stm32f4_gpio.h"
|
||||
#include "driver.h"
|
||||
@@ -41,27 +43,27 @@ static const struct gpio __gpio_d12 = {
|
||||
&gpio_fp
|
||||
};
|
||||
|
||||
const struct driver gpio_d12 = {
|
||||
static const struct driver gpio_d12 = {
|
||||
DRIVER_TYPE_GPIO,
|
||||
&__gpio_d12,
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
// SYSTEM TICK
|
||||
static const enum stm32_sys_tick_time_base stm23_sys_tick_time_base =
|
||||
STM32_SYS_TICK_TIME_BASE_MS;
|
||||
|
||||
static const struct stm32_sys_tick stm32_sys_tick = {
|
||||
&stm23_sys_tick_time_base,
|
||||
NULL,
|
||||
NULL
|
||||
.tick_time_base = &stm23_sys_tick_time_base,
|
||||
.sys_tick_cb = NULL,
|
||||
.sys_tick_cb_param = NULL,
|
||||
};
|
||||
|
||||
static const struct loki_timer timer_1 = {
|
||||
(void*)&stm32_sys_tick,
|
||||
&timer_fp
|
||||
.arch_dep_device = (void*)&stm32_sys_tick,
|
||||
.fp = &timer_fp
|
||||
};
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// PWM CHANNEL 4
|
||||
/* apb1 clock = 84MHz */
|
||||
|
@@ -7,10 +7,12 @@
|
||||
|
||||
#include "board.h"
|
||||
|
||||
void board_init(void) {
|
||||
void board_init(void)
|
||||
{
|
||||
#if 0
|
||||
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0);
|
||||
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_4);
|
||||
SysTick_CLKSourceConfig(RCC_SYSCLKSource_PLLCLK);
|
||||
|
||||
#endif
|
||||
sys_tick_init(&timer_1);
|
||||
}
|
||||
|
@@ -1,4 +1,2 @@
|
||||
CHECK_FOLDER += source/firmware/arch/stm32f4xx/board/stm32f4-discovery
|
||||
SUB_FOLDER += source/firmware/arch/stm32f4xx/board/stm32f4-discovery
|
||||
SRC_DIR += source/firmware/arch/stm32f4xx/board/stm32f4-discovery
|
||||
INCLUDES += source/firmware/arch/stm32f4xx/board/stm32f4-discovery/include
|
||||
DOC_SRC += source/firmware/arch/stm32f4xx/board/stm32f4-discovery
|
Reference in New Issue
Block a user