You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
1.5 KiB

#pragma once
#define PC_VERSION 700
#define PC_MANUFACTURER "http://www.iflytop.com/"
#define PC_PROJECT_NAME "a8000_subboard"
#define PC_IFLYTOP_ENABLE_OS 1
#define PC_DEBUG_UART huart1
#define PC_DEBUG_UART_RX_BUF_SIZE 1024
#define PC_DEBUG_LIGHT_GPIO PE2
#define PC_SUBBOARD_20_70_LIGHT_GPIO PE8
//
#define PC_SYS_DELAY_US_TIMER htim6 // US延时定时器
#define PC_SYS_ZTICKET_TIMER TIM11 // 系统ticket定时器
#define PC_SYS_TIM_IRQ_SCHEDULER_TIMER htim7 // 中断定时器中断调度器
#define PC_IRQ_PREEMPTPRIORITY_DEFAULT 5
// #define PC_NVS_ENABLE 0
/***********************************************************************************************************************
* SN *
***********************************************************************************************************************/
/**
* @brief
* STM32F407VETx 1M
*
* index startAdd size
* 0 0x08000000 16k
* 1 0x08004000 16k
* 2 0x08008000 16k
* 3 0x0800C000 16k
* 4 0x08010000 64k
* 5 0x08020000 128k
* 6 0x08040000 128k
* 7 0x08060000 128k
* 8 0x08080000 128k
* 9 0x080A0000 128k
* 10 0x080C0000 128k
* 11 0x080E0000 128k
*/
#define SN_FLASH_ADD 0x080E0000 // 使用扇区11存储SN编码
#define SN_FLASH_EARSE_SECTOR FLASH_SECTOR_11
#define SDK_MAX_TASK 15