- decreased fifo capscity to 16 items
- increased poti samplerate to 20 Hz git-svn-id: http://moon:8086/svn/projects/HendiControl@34 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -91,7 +91,7 @@ int main(void)
|
|||||||
State_t state = StateNormal;
|
State_t state = StateNormal;
|
||||||
State_t state_next = StateNormal;
|
State_t state_next = StateNormal;
|
||||||
|
|
||||||
fifo_init(&messageFifo, 64, sizeof(Msg_t), "Fifo");
|
fifo_init(&messageFifo, 16, sizeof(Msg_t), "Fifo");
|
||||||
|
|
||||||
/* Replace with your application code */
|
/* Replace with your application code */
|
||||||
uart_init(&messageFifo, BAUD_PRESCALE);
|
uart_init(&messageFifo, BAUD_PRESCALE);
|
||||||
@@ -238,7 +238,7 @@ int main(void)
|
|||||||
|
|
||||||
case TIMER_ADC:
|
case TIMER_ADC:
|
||||||
{
|
{
|
||||||
timer_start(timer_id, TIMER_SW_DELAY_MS(100));
|
timer_start(timer_id, TIMER_SW_DELAY_MS(50));
|
||||||
int sw_in = portGet(PwrSwitch_in);
|
int sw_in = portGet(PwrSwitch_in);
|
||||||
if (sw_in != sw_in_last)
|
if (sw_in != sw_in_last)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user