Major updates:

- added DAConverter(s)
- added ADConverter(s)
- Fixed some display issues
- Made repair process and signalProfileGenerator calculate with voltages (signed) instead of DAC/ADC values
- Fixed several bugs in task handlings
- Put display data mirror into dedicated file displaycontent

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@261 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-10-24 13:56:55 +00:00
parent e3ca058c96
commit bb08cae83a
35 changed files with 1689 additions and 288 deletions

View File

@@ -33,7 +33,8 @@
#include "FreeRTOS.h"
#include "task.h"
#include "CathodeMCP.h"
#include "ADConverters.h"
#include "DAConverters.h"
#include "Displays.h"
#include "Error.h"
#include "hsb-mrts.h"
@@ -52,6 +53,7 @@
#include "nhd0420.h"
#include "platform.h"
#include "CathodeMCP.h"
#include "Interlock.h"
#include "internalADC.h"
#include "gpio.h"
@@ -196,7 +198,7 @@ static void initTask(void* parameters)
initPlatform();
// Disable power
GPIO_setValue(power6v5Enable, true);
GPIO_setValue(power6v5Enable, false);
// Create a small task that only blinks a LED and flashes the identification letter on the display
xTaskCreate(ledBlinkTask, (const char* const)"ledTask", 100, &ledTaskArguments, 0, &ledTaskHandle);
@@ -204,9 +206,15 @@ static void initTask(void* parameters)
// Construct the displays
Displays_construct();
// Construct the AD Converters
ADConverters_construct();
// Construct the DA Converters
DAConverters_construct();
hsb_generateStartScreen(mainDisplay);
// Let start screen stay for 5 seconds
// vTaskDelay(INIT_START_SCREEN_DELAY);
vTaskDelay(INIT_START_SCREEN_DELAY);
hwTestItems.display = &nhd0420->displayDevice;
@@ -232,6 +240,7 @@ static void initTask(void* parameters)
// Construct the repair menu
repairMenus_construct();
// xTaskCreate(printSystemInfoTask, (const char* const)"SysInfoTask", 512, NULL, 0, &sysTaskHandle);
// Delete this init task