From 10297a0b6a04449cf6bb8f324a29c3cbd89749f5 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Thu, 10 Sep 2015 13:11:28 -0400 Subject: [PATCH] Nucleo F303RE: add more pins and update copyright notices --- configs/nucleo-f303re/include/board.h | 30 ++++++++++++++++++- configs/nucleo-f303re/scripts/ld.script | 4 ++- configs/nucleo-f303re/src/Makefile | 4 ++- configs/nucleo-f303re/src/nucleo-f303re.h | 6 ++-- .../nucleo-f303re/src/stm32_appinitialize.c | 4 ++- configs/nucleo-f303re/src/stm32_autoleds.c | 4 ++- configs/nucleo-f303re/src/stm32_boot.c | 4 ++- configs/nucleo-f303re/src/stm32_buttons.c | 4 ++- configs/nucleo-f303re/src/stm32_can.c | 4 ++- .../nucleo-f303re/src/stm32_cxxinitialize.c | 4 ++- configs/nucleo-f303re/src/stm32_userleds.c | 4 ++- 11 files changed, 60 insertions(+), 12 deletions(-) diff --git a/configs/nucleo-f303re/include/board.h b/configs/nucleo-f303re/include/board.h index 2a88050164..6c9056aadf 100644 --- a/configs/nucleo-f303re/include/board.h +++ b/configs/nucleo-f303re/include/board.h @@ -3,7 +3,9 @@ * include/arch/board/board.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -226,6 +228,32 @@ #define GPIO_CAN1_RX GPIO_CAN_RX_2 #define GPIO_CAN1_TX GPIO_CAN_TX_2 +/* I2C */ + +#define GPIO_I2C1_SCL GPIO_I2C1_SCL_3 +#define GPIO_I2C1_SDA GPIO_I2C1_SDA_3 + +/* SPI */ + +#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1 +#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1 +#define GPIO_SPI1_SCK GPIO_SPI1_SCK_1 + +/* TIM */ + +#define GPIO_TIM2_CH2OUT GPIO_TIM2_CH2OUT_2 +#define GPIO_TIM2_CH3OUT GPIO_TIM2_CH3OUT_3 + +#define GPIO_TIM3_CH1OUT GPIO_TIM3_CH1OUT_2 +#define GPIO_TIM3_CH2OUT GPIO_TIM3_CH2OUT_4 + +#define GPIO_TIM4_CH1OUT GPIO_TIM4_CH1OUT_2 + +/* USART */ + +#define GPIO_USART2_RX GPIO_USART2_RX_2 +#define GPIO_USART2_TX GPIO_USART2_TX_2 + /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/configs/nucleo-f303re/scripts/ld.script b/configs/nucleo-f303re/scripts/ld.script index 47a4c33fbf..ff2087a631 100644 --- a/configs/nucleo-f303re/scripts/ld.script +++ b/configs/nucleo-f303re/scripts/ld.script @@ -2,7 +2,9 @@ * configs/nucleo-f303re/scripts/ld.script * * Copyright (C) 2013 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/Makefile b/configs/nucleo-f303re/src/Makefile index e3f397717e..fb38ccd10c 100644 --- a/configs/nucleo-f303re/src/Makefile +++ b/configs/nucleo-f303re/src/Makefile @@ -2,7 +2,9 @@ # configs/nucleo-f303re/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. +# Authors: Gregory Nutt +# Paul Alexander Patience # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/nucleo-f303re.h b/configs/nucleo-f303re/src/nucleo-f303re.h index 198fde0417..6aa839f720 100644 --- a/configs/nucleo-f303re/src/nucleo-f303re.h +++ b/configs/nucleo-f303re/src/nucleo-f303re.h @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/nucleo-f303re.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -46,7 +48,7 @@ * Pre-processor Definitions ****************************************************************************/ -/* LED definitions ********************************************************************/ +/* LED definitions **********************************************************/ /* The Nucleo F303RE board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * diff --git a/configs/nucleo-f303re/src/stm32_appinitialize.c b/configs/nucleo-f303re/src/stm32_appinitialize.c index 9e79d821a4..dce4fd5090 100644 --- a/configs/nucleo-f303re/src/stm32_appinitialize.c +++ b/configs/nucleo-f303re/src/stm32_appinitialize.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_appinitialize.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/stm32_autoleds.c b/configs/nucleo-f303re/src/stm32_autoleds.c index f07eae90bb..d9be417ebe 100644 --- a/configs/nucleo-f303re/src/stm32_autoleds.c +++ b/configs/nucleo-f303re/src/stm32_autoleds.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/stm32_boot.c b/configs/nucleo-f303re/src/stm32_boot.c index 13777c67b7..9278ecc78d 100644 --- a/configs/nucleo-f303re/src/stm32_boot.c +++ b/configs/nucleo-f303re/src/stm32_boot.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_boot.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/stm32_buttons.c b/configs/nucleo-f303re/src/stm32_buttons.c index 9f234ef9e4..82e9c9eff2 100644 --- a/configs/nucleo-f303re/src/stm32_buttons.c +++ b/configs/nucleo-f303re/src/stm32_buttons.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_buttons.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/stm32_can.c b/configs/nucleo-f303re/src/stm32_can.c index 37f7911288..430be9c69d 100644 --- a/configs/nucleo-f303re/src/stm32_can.c +++ b/configs/nucleo-f303re/src/stm32_can.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_can.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/stm32_cxxinitialize.c b/configs/nucleo-f303re/src/stm32_cxxinitialize.c index 30607a88fd..a8e0622f6f 100644 --- a/configs/nucleo-f303re/src/stm32_cxxinitialize.c +++ b/configs/nucleo-f303re/src/stm32_cxxinitialize.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_cxxinitialize.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/configs/nucleo-f303re/src/stm32_userleds.c b/configs/nucleo-f303re/src/stm32_userleds.c index 8d27340d8f..67408c75f6 100644 --- a/configs/nucleo-f303re/src/stm32_userleds.c +++ b/configs/nucleo-f303re/src/stm32_userleds.c @@ -2,7 +2,9 @@ * configs/nucleo-f303re/src/stm32_userleds.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. + * Authors: Gregory Nutt + * Paul Alexander Patience * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions