oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Typedefs | Enumerations | Functions
bsp.h File Reference
#include "ove_config.h"
#include "ove/board.h"
#include "ove/gpio.h"
#include "ove/led.h"
Include dependency graph for bsp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* ove_gpio_irq_cb) (unsigned int port, unsigned int pin, void *user_data)
 GPIO interrupt callback type (re-exported for BSP-only callers).
 

Enumerations

enum  ove_gpio_irq_mode_t { OVE_GPIO_IRQ_RISING = 0x01 , OVE_GPIO_IRQ_FALLING = 0x02 , OVE_GPIO_IRQ_BOTH = 0x03 }
 GPIO interrupt trigger edge selection (re-exported for BSP-only callers). More...
 

Functions

static int ove_bsp_board_init (void)
 Initialise the board hardware (BSP compatibility wrapper).
 
static void ove_bsp_led_set (unsigned int led, int on)
 Turn a board LED on or off (BSP compatibility wrapper).
 
static void ove_bsp_led_toggle (unsigned int led)
 Toggle the current state of a board LED (BSP compatibility wrapper).
 
static int ove_bsp_gpio_set (unsigned int port, unsigned int pin, int value)
 Set the output level of a GPIO pin (BSP compatibility wrapper).
 
static int ove_bsp_gpio_get (unsigned int port, unsigned int pin)
 Read the current level of a GPIO pin (BSP compatibility wrapper).
 
static int ove_bsp_gpio_irq_register (unsigned int port, unsigned int pin, ove_gpio_irq_mode_t mode, ove_gpio_irq_cb callback, void *user_data)
 Register a GPIO interrupt callback (BSP compatibility wrapper).
 
static int ove_bsp_gpio_irq_enable (unsigned int port, unsigned int pin)
 Enable a registered GPIO interrupt (BSP compatibility wrapper).
 
static int ove_bsp_gpio_irq_disable (unsigned int port, unsigned int pin)
 Disable a GPIO interrupt without unregistering it (BSP compatibility wrapper).
 
static int ove_bsp_gpio_irq_unregister (unsigned int port, unsigned int pin)
 Unregister a GPIO interrupt (BSP compatibility wrapper).