diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-05-04 12:10:09 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-05-18 15:59:11 +0200 |
commit | 0820a1d4a6eaf47e414c5077cc8c64d1295ebf3a (patch) | |
tree | a349355224e3424ccd6ebe487b6a3b5797df92f4 /source/gpio_ext.h | |
parent | 6be00a6dd5032d7330d761a33f5b027658bab140 (diff) |
build k20 tester fw with TESTER_BUILD
Tester build includes:
-Disabled CAN,
-No debug interface,
-Most GPIOs configured as input and accesible from linux driver
-Special fw version number (0xFE)
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'source/gpio_ext.h')
-rw-r--r-- | source/gpio_ext.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/gpio_ext.h b/source/gpio_ext.h index df9f323..39a9183 100644 --- a/source/gpio_ext.h +++ b/source/gpio_ext.h @@ -20,6 +20,10 @@ struct gpio_id{ struct gpio_id gpio_list [] = { {PORTA, GPIOA, 3}, {PORTA, GPIOA, 5}, +#ifdef TESTER_BUILD + {PORTA, GPIOA, 12}, + {PORTA, GPIOA, 13}, +#endif {PORTA, GPIOA, 17}, #ifndef BOARD_USES_ADC {PORTB, GPIOB, 0}, @@ -40,6 +44,10 @@ struct gpio_id gpio_list [] = { {PORTC, GPIOC, 4}, {PORTC, GPIOC, 6}, {PORTC, GPIOC, 7}, +#ifdef TESTER_BUILD + {PORTC, GPIOC, 16}, + {PORTC, GPIOC, 17}, +#endif {PORTD, GPIOD, 0}, {PORTD, GPIOD, 1}, {PORTD, GPIOD, 2}, @@ -55,7 +63,7 @@ struct gpio_id gpio_list [] = { {PORTD, GPIOD, 13}, {PORTD, GPIOD, 14}, {PORTD, GPIOD, 15}, -#ifndef SDK_DEBUGCONSOLE +#if !defined(SDK_DEBUGCONSOLE) || defined(TESTER_BUILD) {PORTE, GPIOE, 0}, {PORTE, GPIOE, 1}, #endif |