configs/metro-m4: Fix Metro M4 compile and link. This rippled back to more changes in arch/arm/src/samd5e5, like the sercom logic was not in the compile! Also a great opporunity to improve some naming.

This commit is contained in:
Gregory Nutt
2018-07-29 16:29:54 -06:00
parent 41666dafa8
commit 65e102ee6b
13 changed files with 51 additions and 95 deletions
+2 -1
View File
@@ -80,6 +80,7 @@
#include "up_arch.h"
#include "up_internal.h"
#include "sam_port.h"
#include "metro-m4.h"
#include <arch/board/board.h>
@@ -206,7 +207,7 @@ static int led_pm_prepare(struct pm_callback_s *cb, int domain,
void board_autoled_initialize(void)
{
(void)sam_configport(PORT_RED_LED);
(void)sam_portconfig(PORT_RED_LED);
}
/****************************************************************************
+2 -2
View File
@@ -52,7 +52,7 @@
****************************************************************************/
/****************************************************************************
* Name: sam_boardinitialize
* Name: sam_board_initialize
*
* Description:
* All SAMD5/E5 architectures must provide the following entry point.
@@ -62,7 +62,7 @@
*
****************************************************************************/
void sam_boardinitialize(void)
void sam_board_initialize(void)
{
#ifdef CONFIG_ARCH_LEDS
/* Configure on-board LEDs if LED support has been selected. */
+2 -1
View File
@@ -60,6 +60,7 @@
#include <nuttx/power/pm.h>
#include "up_arch.h"
#include "sam_port.h"
#include "metro-m4.h"
@@ -188,7 +189,7 @@ static int led_pm_prepare(struct pm_callback_s *cb, int domain,
void board_userled_initialize(void)
{
(void)sam_configport(PORT_STATUS_LED);
(void)sam_portconfig(PORT_STATUS_LED);
}
/****************************************************************************