From 2bd2406d134ecd06042bc542f1eb54dba71636fd Mon Sep 17 00:00:00 2001 From: flom84 Date: Mon, 26 Sep 2022 19:39:07 +0200 Subject: [PATCH] Update license info and remove redundant board functions. --- ports/stm/boards/nucleo_f446re/board.c | 15 ++------------- .../stm/peripherals/stm32f4/stm32f446xx/clocks.h | 2 +- ports/stm/peripherals/stm32f4/stm32f446xx/gpio.c | 2 +- .../stm/peripherals/stm32f4/stm32f446xx/periph.c | 2 +- .../stm/peripherals/stm32f4/stm32f446xx/periph.h | 2 +- ports/stm/peripherals/stm32f4/stm32f446xx/pins.c | 2 +- ports/stm/peripherals/stm32f4/stm32f446xx/pins.h | 2 +- 7 files changed, 8 insertions(+), 19 deletions(-) diff --git a/ports/stm/boards/nucleo_f446re/board.c b/ports/stm/boards/nucleo_f446re/board.c index 31329a8d3b..b75dda3061 100644 --- a/ports/stm/boards/nucleo_f446re/board.c +++ b/ports/stm/boards/nucleo_f446re/board.c @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -26,15 +26,4 @@ #include "supervisor/board.h" -void board_init(void) { -} - -bool board_requests_safe_mode(void) { - return false; -} - -void reset_board(void) { -} - -void board_deinit(void) { -} +// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here. diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h b/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h index fc724fc056..2cd4b59c75 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/gpio.c b/ports/stm/peripherals/stm32f4/stm32f446xx/gpio.c index c31c785bf2..624eb319f4 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/gpio.c +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/gpio.c @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/periph.c b/ports/stm/peripherals/stm32f4/stm32f446xx/periph.c index 666b2be2c2..5287a8bdf0 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/periph.c +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/periph.c @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h b/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h index 31ee9be4d4..d34be9d156 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/pins.c b/ports/stm/peripherals/stm32f4/stm32f446xx/pins.c index 23299cb6e8..17176ea72f 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/pins.c +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/pins.c @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h b/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h index 629dda4623..c56412a258 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2022 flom84 for Adafruit Industries + * Copyright (c) 2022 flom84 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal