33 lines
653 B
C
33 lines
653 B
C
//
|
|
// Created by erki on 4.06.22.
|
|
//
|
|
|
|
#ifndef SKL_TUNNEL_RADIO_HARDWARE_INSTANCE_H
|
|
#define SKL_TUNNEL_RADIO_HARDWARE_INSTANCE_H
|
|
|
|
#include "instance/sercom4.h"
|
|
#include "hpl_gpio.h"
|
|
#include "hal_gpio.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SERCOM4 ((Sercom*)0x42001800)
|
|
|
|
#define PB30 GPIO(GPIO_PORTB, 30)
|
|
#define PB31 GPIO(GPIO_PORTB, 31)
|
|
#define PC18 GPIO(GPIO_PORTC, 18)
|
|
#define PC19 GPIO(GPIO_PORTC, 19)
|
|
|
|
#define OUT_RADIO_CS PB31
|
|
#define OUT_RADIO_SLP_TR GPIO(GPIO_PORTA, 20)
|
|
#define OUT_RADIO_RST GPIO(GPIO_PORTB, 15)
|
|
#define IN_RADIO_IRQ GPIO(GPIO_PORTB, 00)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //SKL_TUNNEL_RADIO_HARDWARE_INSTANCE_H
|