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:
@@ -72,7 +72,7 @@ static ErrorStatus write(const struct IODevice* self, const char* buffer, size_t
|
||||
{
|
||||
(void)length;
|
||||
|
||||
if (buffer != 0)
|
||||
if (buffer[0] != 0)
|
||||
{
|
||||
return LED_turnOn((struct Led*)self);
|
||||
}
|
||||
|
||||
@@ -202,8 +202,8 @@ ErrorStatus initPlatform(void)
|
||||
keypad->column[3].EXTI_InitStruct.EXTI_LineCmd = ENABLE;
|
||||
EXTI_Init(&keypad->column[3].EXTI_InitStruct);
|
||||
|
||||
IRQ_setInterruptProperties(EXTI4_IRQn, 11, 0, ENABLE);
|
||||
IRQ_setInterruptProperties(EXTI9_5_IRQn, 11, 0, ENABLE);
|
||||
IRQ_setInterruptProperties(EXTI4_IRQn, 12, 12, ENABLE);
|
||||
IRQ_setInterruptProperties(EXTI9_5_IRQn, 12, 12, ENABLE);
|
||||
|
||||
Keypad_getDefaultParameters(keypadParam);
|
||||
Keypad_construct(keypad, keypadParam, KEYPAD_DEBOUNCE_TIME_MS);
|
||||
|
||||
Reference in New Issue
Block a user