/*
 * Copyright (c) 2021 Pimax. All rights reserved.
 * Author    Date          ChangeLog
 * Master    2021-03-18    First version
 */
#ifndef __USER_CONFIG_H__
#define __USER_CONFIG_H__
#include "FreeRTOSConfig.h"
// <<< Use Configuration Wizard in Context Menu >>>\n

// <h> Task Thread Configure 


// <h> Log Thread Configure 
//   <o> priority of log print task,  lowest priority[1-2]
//   <1-2>  
#define LOG_THREAD_PRIORITY    1

// <s.4> Log Thread Name, limit by configMAX_TASK_NAME_LEN
#define LOG_THREAD_NAME        "log print"

//   <o> thread stack size ,minimum value is limit by configMINIMAL_STACK_SIZE
//   <60-200:4>  
#define LOG_THREAD_STACK_SZIE    60
// </h>

// <h> LED Thread Configure 
//   <o> priority of led task, more lower more better
//   <1-3>  
#define LED_THREAD_PRIORITY     3

// <s.4> led Thread Name, limit by configMAX_TASK_NAME_LEN
#define LED_THREAD_NAME        "state"

//   <o> thread stack size ,minimum value is limit by configMINIMAL_STACK_SIZE
//   <60-200:4>  
#define LED_THREAD_STACK_SZIE    60
// </h>

// <h> Sample Thread Configure 
//   <o> priority of Sample Thread,the most import
//   <0-7>  
#define SAMPLE_THREAD_PRIORITY    4

// <s.4> Sample Thread Name, limit by configMAX_TASK_NAME_LEN
#define SAMPLE_THREAD_NAME       "sample"

//   <o> thread stack size ,minimum value is limit by configMINIMAL_STACK_SIZE
//   <60-200:4>  
#define SAMPLE_THREAD_STACK_SZIE    1024
// </h>

// check board in factory
//#define BOARD_CHECK              (1)


// </h>



// <h> RTOS Timer Configure 

// <s.4> LED Timer Name
#define LED_TIMER_NAME        "LED Timer"

//   <o>Auto Reload
//   <0=>pdFALSE
//   <1=>pdTRUE
#define LED_AUTO_RELOAD        pdTRUE
//   <o> Timer Period(uint32_t)
//   <1-1000000>
#define LED_TIMER_PERIOD       1000
// </h>

// <o>Selected Board
//   <0=>BOARD_PCA10040
//   <1=>BOARD_ALPS
//   <2=>ALPS DEBUG IN PCA10040
#define BOARD_SELECTED       2

#if (BOARD_SELECTED == 0)
#define BOARD_PCA10040
#elif (BOARD_SELECTED == 1)
#define BOARD_ALPS
#elif (BOARD_SELECTED == 2)
#define ALPS_IN_PCA10040
#endif


// <<< end of configuration section >>>

#endif  //@page end

