74e8f86261
Make use of a few new features in TinyGo: * Functions and globals in header files are supported. * Static functions are supported. This allows us to remove workarounds specifically used for the lack of support for static functions.
15 lines
312 B
Go
15 lines
312 B
Go
//go:build softdevice && s140v6
|
|
// +build softdevice,s140v6
|
|
|
|
package bluetooth
|
|
|
|
/*
|
|
// Add the correct SoftDevice include path to CFLAGS, so #include will work as
|
|
// expected.
|
|
#cgo CFLAGS: -Is140_nrf52_6.1.1/s140_nrf52_6.1.1_API/include
|
|
|
|
#include "nrf_nvic.h"
|
|
nrf_nvic_state_t nrf_nvic_state = {0};
|
|
*/
|
|
import "C"
|