mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user