Loading...
Searching...
No Matches
board.h File Reference

Board specific definitions for the Ublox C030-U201 board. More...

Detailed Description

Board specific definitions for the Ublox C030-U201 board.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m

Definition in file board.h.

#include <stdint.h>
#include "cpu.h"
#include "stm32_leds.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

LED pin definitions and handlers

#define LED0_PIN_NUM   3
 
#define LED0_PORT   GPIO_PORT_E
 GPIO port of LED 0.
 
#define LED0_PORT_NUM   PORT_E
 
#define LED1_PIN_NUM   4
 
#define LED1_PORT   GPIO_PORT_E
 GPIO port of LED 1.
 
#define LED1_PORT_NUM   PORT_E
 
#define LED2_PIN_NUM   1
 
#define LED2_PORT   GPIO_PORT_E
 GPIO port of LED 2.
 
#define LED2_PORT_NUM   PORT_E
 

User button pin configuration

#define BTN0_PIN   GPIO_PIN(PORT_C, 13)
 User button pin.
 
#define BTN0_MODE   GPIO_IN
 User button pin mode.
 

si7034 temperature sensor configuration

TODO: Check this when support is added in si70xx driver

#define SI70XX_PARAM_I2C_DEV   I2C_DEV(1)
 I2C device used for the temp sensor.
 
#define SI70XX_PARAM_ADDR   (0x70)
 I2C address.
 
#define SI70XX_SAUL_INFO   { .name = "si7034" }
 Saul Alias for the temp sensor.
 

SDCard configuration

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 
#define SDCARD_SPI_PARAM_CS   GPIO_PIN(PORT_E, 11)
 
#define SDCARD_SPI_PARAM_CLK   GPIO_PIN(PORT_E, 2)
 
#define SDCARD_SPI_PARAM_MOSI   GPIO_PIN(PORT_E, 6)
 
#define SDCARD_SPI_PARAM_MISO   GPIO_PIN(PORT_E, 5)
 

Modem/GPS pins

#define UB_PWRON_PIN   GPIO_PIN(PORT_E, 14)
 Power On for the Modem/GPS.
 
#define UB_M_RST_PIN   GPIO_PIN(PORT_B, 5)
 Reset Pin for the Modem/GPS.
 
#define M_GPIO2_PIN   GPIO_PIN(PORT_D, 1)
 GPIO2 Pin of the Modem/GPS.
 
#define M_GPIO3_PIN   GPIO_PIN(PORT_B, 4)
 GPIO3 Pin of the Modem/GPS.
 
#define GPS_RST_PIN   GPIO_PIN(PORT_C, 10)
 Not connected.
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN

User button pin mode.

Definition at line 48 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_C, 13)

User button pin.

Definition at line 47 of file board.h.

◆ GPS_RST_PIN

#define GPS_RST_PIN   GPIO_PIN(PORT_C, 10)

Not connected.

Definition at line 80 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   3

Definition at line 30 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_E

GPIO port of LED 0.

Definition at line 31 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_E

Definition at line 32 of file board.h.

◆ LED1_PIN_NUM

#define LED1_PIN_NUM   4

Definition at line 34 of file board.h.

◆ LED1_PORT

#define LED1_PORT   GPIO_PORT_E

GPIO port of LED 1.

Definition at line 35 of file board.h.

◆ LED1_PORT_NUM

#define LED1_PORT_NUM   PORT_E

Definition at line 36 of file board.h.

◆ LED2_PIN_NUM

#define LED2_PIN_NUM   1

Definition at line 38 of file board.h.

◆ LED2_PORT

#define LED2_PORT   GPIO_PORT_E

GPIO port of LED 2.

Definition at line 39 of file board.h.

◆ LED2_PORT_NUM

#define LED2_PORT_NUM   PORT_E

Definition at line 40 of file board.h.

◆ M_GPIO2_PIN

#define M_GPIO2_PIN   GPIO_PIN(PORT_D, 1)

GPIO2 Pin of the Modem/GPS.

Definition at line 78 of file board.h.

◆ M_GPIO3_PIN

#define M_GPIO3_PIN   GPIO_PIN(PORT_B, 4)

GPIO3 Pin of the Modem/GPS.

Definition at line 79 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   GPIO_PIN(PORT_E, 2)

Definition at line 67 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   GPIO_PIN(PORT_E, 11)

Definition at line 66 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   GPIO_PIN(PORT_E, 5)

Definition at line 69 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   GPIO_PIN(PORT_E, 6)

Definition at line 68 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)

Definition at line 65 of file board.h.

◆ SI70XX_PARAM_ADDR

#define SI70XX_PARAM_ADDR   (0x70)

I2C address.

Definition at line 57 of file board.h.

◆ SI70XX_PARAM_I2C_DEV

#define SI70XX_PARAM_I2C_DEV   I2C_DEV(1)

I2C device used for the temp sensor.

Definition at line 56 of file board.h.

◆ SI70XX_SAUL_INFO

#define SI70XX_SAUL_INFO   { .name = "si7034" }

Saul Alias for the temp sensor.

Definition at line 58 of file board.h.

◆ UB_M_RST_PIN

#define UB_M_RST_PIN   GPIO_PIN(PORT_B, 5)

Reset Pin for the Modem/GPS.

Definition at line 77 of file board.h.

◆ UB_PWRON_PIN

#define UB_PWRON_PIN   GPIO_PIN(PORT_E, 14)

Power On for the Modem/GPS.

Definition at line 76 of file board.h.