Pico Core
Loading...
Searching...
No Matches
harp_core.h File Reference
#include <stdint.h>
#include <harp_message.h>
#include <core_registers.h>
#include <harp_synchronizer.h>
#include <arm_regs.h>
#include <cstring>
#include <tusb.h>
#include <hardware/structs/timer.h>
#include <pico/divider.h>
#include <hardware/timer.h>
#include <pico/unique_id.h>
#include <pico/bootrom.h>
Include dependency graph for harp_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RegFnPair
 
class  HarpCore
 Harp Core that handles management of common bank registers. Implemented as a singleton to simplify attaching interrupt callbacks (and since you can only have one per device.) More...
 

Macros

#define HARP_VERSION_MAJOR   (0)
 
#define HARP_VERSION_MINOR   (0)
 
#define HARP_VERSION_PATCH   (0)
 
#define NO_PC_INTERVAL_US   (3'000'000UL)
 
#define HEARTBEAT_ACTIVE_INTERVAL_US   (1'000'000UL)
 
#define HEARTBEAT_STANDBY_INTERVAL_US   (3'000'000UL)
 

Typedefs

typedef void(* read_reg_fn) (uint8_t reg)
 
typedef void(* write_reg_fn) (msg_t &msg)
 

Macro Definition Documentation

◆ HARP_VERSION_MAJOR

#define HARP_VERSION_MAJOR   (0)

◆ HARP_VERSION_MINOR

#define HARP_VERSION_MINOR   (0)

◆ HARP_VERSION_PATCH

#define HARP_VERSION_PATCH   (0)

◆ HEARTBEAT_ACTIVE_INTERVAL_US

#define HEARTBEAT_ACTIVE_INTERVAL_US   (1'000'000UL)

◆ HEARTBEAT_STANDBY_INTERVAL_US

#define HEARTBEAT_STANDBY_INTERVAL_US   (3'000'000UL)

◆ NO_PC_INTERVAL_US

#define NO_PC_INTERVAL_US   (3'000'000UL)

Typedef Documentation

◆ read_reg_fn

typedef void(* read_reg_fn) (uint8_t reg)

◆ write_reg_fn

typedef void(* write_reg_fn) (msg_t &msg)