keypad functional

started with external DAC implementation

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@224 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-09-29 09:13:48 +00:00
parent 888601f8cf
commit b56bc71f36
13 changed files with 206 additions and 70 deletions

View File

@@ -97,8 +97,6 @@ ErrorStatus Logger_construct(struct IODevice* const device)
if(!initialized)
{
///TODO This is currently hardcoded into the UART - there must be a way for more generic usage
loggerDevice = device;
if(returnValue == SUCCESS)

View File

@@ -155,18 +155,19 @@ static void initTask(void* parameters)
NHD0420_construct(&spiDisplay->device);
NHD0420_turnOffDisplay();
NHD0420_turnOffDisplay(&spiDisplay->device);
vTaskDelay(1000);
NHD0420_clearScreen();
NHD0420_clearScreen(&spiDisplay->device);
vTaskDelay(1000);
NHD0420_turnOnDisplay();
NHD0420_turnOnDisplay(&spiDisplay->device);
vTaskDelay(1000);
NHD0420_setContrast(30);
NHD0420_setContrast(&spiDisplay->device, 30);
vTaskDelay(1000);
NHD0420_setBacklightBrightness(3);
NHD0420_setBacklightBrightness(&spiDisplay->device, 3);
vTaskDelay(1000);
NHD0420_setCursorToHome();
NHD0420_setCursorToHome(&spiDisplay->device);
vTaskDelay(1000);
NHD0420_sendData(&spiDisplay->device, "Anode repair A", 20);
xTaskCreate(ledBlinkTask, (const char* const)"ledTask", 40, &ledTaskArguments, 0, &ledTaskHandle);

View File

@@ -285,10 +285,6 @@ void EXTI4_IRQHandler(void)
IRQ_setKeypadEXTI(keypad, DISABLE);
xSemaphoreGiveFromISR(keypad->scanSemaphore, &higherPriorityTaskWoken);
LOGGER_INFO_ISR("EXT4 ISR");
EXTI_ClearITPendingBit(EXTI_Line4);
portEND_SWITCHING_ISR(higherPriorityTaskWoken);
@@ -302,21 +298,18 @@ void EXTI9_5_IRQHandler (void)
{
IRQ_setKeypadEXTI(keypad, DISABLE);
xSemaphoreGiveFromISR(keypad->scanSemaphore, &higherPriorityTaskWoken);
LOGGER_INFO_ISR("EXT5 ISR");
EXTI_ClearITPendingBit(EXTI_Line5);
}
else if (EXTI_GetITStatus(EXTI_Line6) != RESET)
{
IRQ_setKeypadEXTI(keypad, DISABLE);
xSemaphoreGiveFromISR(keypad->scanSemaphore, &higherPriorityTaskWoken);
LOGGER_INFO_ISR("EXT6 ISR");
EXTI_ClearITPendingBit(EXTI_Line6);
}
else if (EXTI_GetITStatus(EXTI_Line7) != RESET)
{
IRQ_setKeypadEXTI(keypad, DISABLE);
xSemaphoreGiveFromISR(keypad->scanSemaphore, &higherPriorityTaskWoken);
LOGGER_INFO_ISR("EXT7 ISR");
EXTI_ClearITPendingBit(EXTI_Line7);
}
else if (EXTI_GetITStatus(EXTI_Line8) != RESET)