SAME70-XPLD board init.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
#include "board.h"
#include "conf_board.h"
#include "ioport.h"
#include "pio.h"
Macros | |
#define | ioport_set_pin_input_mode(pin, mode, sense) |
Set input mode for one single IOPORT pin. More... | |
#define | ioport_set_pin_peripheral_mode(pin, mode) |
Set peripheral mode for one single IOPORT pin. More... | |
#define | ioport_set_port_peripheral_mode(port, masks, mode) |
Set peripheral mode for IOPORT pins. More... | |
Functions | |
void | board_init (void) |
This function initializes the board target resources. More... | |
static void | tcm_disable (void) |
TCM memory Disable. More... | |
#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).
pin | IOPORT pin to configure |
mode | Mode masks to configure for the specified pin (IOPORT Modes) |
sense | Sense for interrupt detection (ioport_sense) |
Referenced by board_init().
#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).
pin | IOPORT pin to configure |
mode | Mode masks to configure for the specified pin (IOPORT Modes) |
Referenced by board_init().
#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).
port | IOPORT port to configure |
masks | IOPORT pin masks to configure |
mode | Mode masks to configure for the specified pin (IOPORT Modes) |