Initial commit
This commit is contained in:
8
src/config/buttonscontroller-config.h
Normal file
8
src/config/buttonscontroller-config.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef BOARD_BUTTONSCONTROLLER_CONFIG_H
|
||||
#define BOARD_BUTTONSCONTROLLER_CONFIG_H
|
||||
|
||||
#define BUTTONSCONTROLLER_EXCLUDE_FROM_BUILD 0 /**< Default: 0; ButtonsController is needed in this project. */
|
||||
#define BUTTONSCONTROLLER_DEBOUNCE_TIME 10 /**< Time in milliseconds to debounce buttons. */
|
||||
#define TRACE_BUTTONSCONTROLLER_NOTIFICATIONS 0 /**< Enables trace notification messages. */
|
||||
|
||||
#endif // BOARD_BUTTONSCONTROLLER_CONFIG_H
|
27
src/config/ext-freqgen-config.h
Normal file
27
src/config/ext-freqgen-config.h
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* ext-freqgen-config.h
|
||||
*
|
||||
* Created on: 24 Nov 2020
|
||||
* Author: rim
|
||||
*/
|
||||
|
||||
#ifndef EXT_FREQGEN_CONFIG_H_
|
||||
#define EXT_FREQGEN_CONFIG_H_
|
||||
|
||||
#define EXTFREQGEN_NOTIFICATION_TRACE 1 // (0,1) default=1 trace out of waveform and frequency
|
||||
#define EXTFREQGEN_START_FREQUENCY HZ_1000 // one of these:
|
||||
// HZ_50 = 50,
|
||||
// HZ_110 =110,
|
||||
// HZ_240 = 240,
|
||||
// HZ_370 = 370,
|
||||
// HZ_500 = 500,
|
||||
// HZ_700 = 700,
|
||||
// HZ_1000 = 1000,
|
||||
// HZ_5000 = 5000,
|
||||
// HZ_10000 = 10000
|
||||
#define EXTFREQGEN_START_WAVEFORM TRIANGLE // one of these:
|
||||
// SINUS
|
||||
// TRIANGLE
|
||||
// SQUARE
|
||||
|
||||
#endif /* EXT_FREQGEN_CONFIG_H_ */
|
10
src/config/touchgfx-config.h
Normal file
10
src/config/touchgfx-config.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef TOUCHGFX_CONFIG_H
|
||||
#define TOUCHGFX_CONFIG_H
|
||||
|
||||
/**
|
||||
* Waring: Only one PORT define should be enabled at a time!
|
||||
*/
|
||||
#define TOUCHGFX_BAREMETAL 1
|
||||
#define TOUCHGFX_FREERTOS 0
|
||||
|
||||
#endif // TOUCHGFX_CONFIG_H
|
18
src/config/trace-config.h
Normal file
18
src/config/trace-config.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef TRACE_CONFIG_H
|
||||
#define TRACE_CONFIG_H
|
||||
|
||||
#include "stm32f7xx_hal.h" // "mcu/mcu.h" not working here!
|
||||
|
||||
extern "C" UART_HandleTypeDef huart1; // Defined in main.c
|
||||
|
||||
#define USE_PLATFORM_F7_DISCO_GCC_TRACE 1
|
||||
|
||||
#define TRACE_UART_NUMBER 0
|
||||
#define TRACE_UART_HANDLE huart1
|
||||
#define TRACE_UART_BAUD_RATE /* 115200, but given by STM32CubeMX tool configuration */
|
||||
#define TRACE_UART_USE_TX_DMA false
|
||||
#define TRACE_UART_CONSTRUCTOR_PARAMETERS TRACE_UART_NUMBER, &TRACE_UART_HANDLE, TRACE_UART_USE_TX_DMA
|
||||
|
||||
#define TRACE_ADD_CRLF_SEQU 0
|
||||
|
||||
#endif // TRACE_CONFIG_H
|
36
src/config/xf-config.h
Normal file
36
src/config/xf-config.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef XF_CONFIG_H
|
||||
#define XF_CONFIG_H
|
||||
|
||||
#include "config/xf-port-config.h"
|
||||
|
||||
#if (PORT_IDF_STM32CUBE != 0)
|
||||
#define USE_XF_DEFAULT_IMPLEMENTATION 1
|
||||
#define USE_XF_DISPATCHER_DEFAULT_IMPLEMENTATION 1
|
||||
#define USE_XF_TIMEOUTMANAGER_DEFAULT_IMPLEMENTATION 1
|
||||
#define USE_XF_RESOURCE_FACTORY_DEFAULT_IMPLEMENTATION 1
|
||||
#define USE_XF_MUTEX_DEFAULT_IDF_IMPLEMENTATION 1
|
||||
#define USE_XF_EVENT_QUEUE_DEFAULT_IDF_IMPLEMENTATION 1
|
||||
#define USE_XF_PORT_IDF_STM32CUBE_PORT_FUNCTIONS_IMPLEMENTATION 1
|
||||
|
||||
#include "default-idf/eventqueue-default.h"
|
||||
#ifdef __cplusplus
|
||||
using XFEventQueue = XFEventQueueDefault;
|
||||
#endif // __cplusplus
|
||||
#endif // PORT_IDF_STM32CUBE
|
||||
#if (PORT_STM32CUBE_CMSIS_FREERTOS != 0)
|
||||
#define USE_XF_DISPATCHER_ACTIVE_DEFAULT_IMPLEMENTATION 1
|
||||
#define USE_XF_MUTEX_DEFAULT_CMSIS_OS_IMPLEMENTATION 1
|
||||
#define USE_XF_THREAD_DEFAULT_CMSIS_OS_IMPLEMENTATION 1
|
||||
#define USE_XF_PORT_STM32CUBE_CMSIS_FREERTOS_RESOURCE_FACTORY_IMPLEMENTATION 1
|
||||
#define USE_XF_PORT_STM32CUBE_CMSIS_FREERTOS_TIMEOUTMANAGER_IMPLEMENTATION 1
|
||||
#define USE_XF_PORT_STM32CUBE_CMSIS_FREERTOS_EVENT_QUEUE_IMPLEMENTATION 1
|
||||
|
||||
#define XFTHREAD_DEFAULT_STACK_SIZE 2048
|
||||
|
||||
#include "stm32cube-cmsis-freertos/eventqueue.h"
|
||||
#ifdef __cplusplus
|
||||
using XFEventQueue = XFEventQueuePort;
|
||||
#endif // __cplusplus
|
||||
#endif // PORT_STM32CUBE_CMSIS_FREERTOS
|
||||
|
||||
#endif // XF_CONFIG_H
|
10
src/config/xf-port-config.h
Normal file
10
src/config/xf-port-config.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef XF_PORT_CONFIG_H
|
||||
#define XF_PORT_CONFIG_H
|
||||
|
||||
/**
|
||||
* Waring: Only one PORT define should be enabled at a time!
|
||||
*/
|
||||
#define PORT_IDF_STM32CUBE 1
|
||||
#define PORT_STM32CUBE_CMSIS_FREERTOS 0
|
||||
|
||||
#endif // XF_PORT_CONFIG_H
|
Reference in New Issue
Block a user