Macros | Functions
init.c File Reference

SAME70-XPLD board init. More...

#include "compiler.h"
#include "board.h"
#include "conf_board.h"
#include "ioport.h"
#include "pio.h"
#include "../../../../../../../src/data_sets.h"
#include "../../../../../../../hw-libs/drivers/d_usartDMA.h"
#include "../../../../drivers/d_time.h"
#include "../../../../spiTouINS.h"
#include "../../../../xbee.h"
#include "../../../../wifi.h"
#include "../../../../globals.h"
#include "../../../../CAN.h"
Include dependency graph for init.c:

Go to the source code of this file.

Macros

#define ioport_set_pin_input_mode(pin, mode, sense)
 Set input mode for one single IOPORT pin. It will configure port mode and disable pin mode (but enable peripheral). The "ioport_enable_pin(pin);" line is necessary to allow tristate. (whj) More...
 
#define ioport_set_pin_peripheral_mode(pin, mode)
 Set peripheral mode for one single IOPORT pin. It will configure port mode and disable pin mode (but enable peripheral). More...
 
#define ioport_set_port_peripheral_mode(port, masks, mode)
 Set peripheral mode for IOPORT pins. It will configure port mode and disable pin mode (but enable peripheral). More...
 

Functions

 __attribute__ ((optimize("O0")))
 
void board_init (void)
 This function initializes the board target resources. More...
 
void board_IO_config (void)
 
void refresh_CFG_LED (void)
 
static void tcm_disable (void)
 TCM memory Disable. More...
 

Detailed Description

SAME70-XPLD board init.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

Definition in file init.c.

Macro Definition Documentation

◆ ioport_set_pin_input_mode

#define ioport_set_pin_input_mode (   pin,
  mode,
  sense 
)
Value:
do {\
ioport_enable_pin(pin);\
ioport_set_pin_dir(pin, IOPORT_DIR_INPUT);\
ioport_set_pin_mode(pin, mode);\
ioport_set_pin_sense_mode(pin, sense);\
} while (0)

Set input mode for one single IOPORT pin. It will configure port mode and disable pin mode (but enable peripheral). The "ioport_enable_pin(pin);" line is necessary to allow tristate. (whj)

Parameters
pinIOPORT pin to configure
modeMode masks to configure for the specified pin (IOPORT Modes)
senseSense for interrupt detection (ioport_sense)

Definition at line 88 of file init.c.

◆ ioport_set_pin_peripheral_mode

#define ioport_set_pin_peripheral_mode (   pin,
  mode 
)
Value:
do {\
ioport_set_pin_mode(pin, mode);\
ioport_disable_pin(pin);\
} while (0)

Set peripheral mode for one single IOPORT pin. It will configure port mode and disable pin mode (but enable peripheral).

Parameters
pinIOPORT pin to configure
modeMode masks to configure for the specified pin (IOPORT Modes)

Definition at line 73 of file init.c.

◆ ioport_set_port_peripheral_mode

#define ioport_set_port_peripheral_mode (   port,
  masks,
  mode 
)
Value:
do {\
ioport_set_port_mode(port, masks, mode);\
ioport_disable_port(port, masks);\
} while (0)

Set peripheral mode for IOPORT pins. It will configure port mode and disable pin mode (but enable peripheral).

Parameters
portIOPORT port to configure
masksIOPORT pin masks to configure
modeMode masks to configure for the specified pin (IOPORT Modes)

Definition at line 61 of file init.c.

Function Documentation

◆ __attribute__()

__attribute__ ( (optimize("O0"))  )

Definition at line 369 of file init.c.

◆ tcm_disable()

static void tcm_disable ( void  )
inlinestatic

TCM memory Disable.

The function enables TCM memories

Definition at line 357 of file init.c.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05