Add user callback function to the Bluetooth host demo to filter out connections from remote devices. Add in ability to reject connections based on their bluetooth device address.
Clean up RelayBoard project code. Make AVRISP project clear the XMEGA target's reset register twice; this does not appear to take affect properly the first time under some circumstances.
This commit is contained in:
parent
fd96b28882
commit
fa1a092901
9 changed files with 57 additions and 39 deletions
|
@ -83,6 +83,7 @@
|
|||
#define EVENT_PIN_CODE_REQUEST 0x16
|
||||
|
||||
#define ERROR_LIMITED_RESOURCES 0x0D
|
||||
#define ERROR_UNACCEPTABLE_BDADDR 0x0F
|
||||
|
||||
/* Type Defines: */
|
||||
typedef struct
|
||||
|
@ -191,6 +192,8 @@
|
|||
/* Function Prototypes: */
|
||||
void Bluetooth_ProcessHCICommands(void);
|
||||
void Bluetooth_ProcessHCIEvents(void);
|
||||
|
||||
bool CALLBACK_Bluetooth_ConnectionRequest(uint8_t* RemoteAddress);
|
||||
|
||||
#if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
|
||||
static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue