This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Kévin Redon gerrit-no-reply at lists.osmocom.orgKévin Redon has uploaded this change for review. ( https://gerrit.osmocom.org/12503 Change subject: add system LED initialisation ...................................................................... add system LED initialisation Change-Id: I79f1b769fc9dd7e1a972bacf0928ff46988f0e36 --- M atmel_start_pins.h M driver_init.c 2 files changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-asf4-dfu refs/changes/03/12503/1 diff --git a/atmel_start_pins.h b/atmel_start_pins.h index dbf9891..23b8d33 100644 --- a/atmel_start_pins.h +++ b/atmel_start_pins.h @@ -27,6 +27,10 @@ #define GPIO_PIN_FUNCTION_M 12 #define GPIO_PIN_FUNCTION_N 13 +/** LED pin to indicate system state (pull low to switch on */ +#define LED_SYSTEM GPIO(GPIO_PORTC, 18) + +/** USB D+/D- pins */ #define PA24 GPIO(GPIO_PORTA, 24) #define PA25 GPIO(GPIO_PORTA, 25) diff --git a/driver_init.c b/driver_init.c index b324be8..0b07cc1 100644 --- a/driver_init.c +++ b/driver_init.c @@ -143,6 +143,11 @@ { init_mcu(); + // configure system LED + gpio_set_pin_level(LED_SYSTEM, true); // switch off LED + gpio_set_pin_direction(LED_SYSTEM, GPIO_DIRECTION_OUT); + gpio_set_pin_function(LED_SYSTEM, GPIO_PIN_FUNCTION_OFF); + USB_DEVICE_INSTANCE_init(); FLASH_0_init(); } -- To view, visit https://gerrit.osmocom.org/12503 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-asf4-dfu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I79f1b769fc9dd7e1a972bacf0928ff46988f0e36 Gerrit-Change-Number: 12503 Gerrit-PatchSet: 1 Gerrit-Owner: Kévin Redon <kredon at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190109/cfa243e7/attachment.htm>