diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d603612 Binary files /dev/null and b/.DS_Store differ diff --git a/part7-bluetooth/bt.c b/part7-bluetooth/bt.c index a8b3add..d43783a 100644 --- a/part7-bluetooth/bt.c +++ b/part7-bluetooth/bt.c @@ -275,7 +275,7 @@ void setLEadvertparameters(unsigned char type, unsigned char linterval_min, unsi } void setLEadvertdata() { - volatile unsigned char command[32] = { + static unsigned char command[32] = { 0x19, 0x02, 0x01, 0x06, 0x03, 0x03, 0xAA, 0xFE, diff --git a/part7-bluetooth/io.h b/part7-bluetooth/io.h index b2f483e..8547cc0 100644 --- a/part7-bluetooth/io.h +++ b/part7-bluetooth/io.h @@ -1,5 +1,4 @@ #define PERIPHERAL_BASE 0xFE000000 -#define SAFE_ADDRESS 0x00210000 // Somewhere safe to store a lot of data void uart_init(); void uart_writeText(char *buffer); diff --git a/part7-bluetooth/kernel.c b/part7-bluetooth/kernel.c index dafe34a..2ee5526 100644 --- a/part7-bluetooth/kernel.c +++ b/part7-bluetooth/kernel.c @@ -257,6 +257,9 @@ void main() for (int c=5;c>=0;c--) debugch(local_addr[c]); debugcrlf(); + // Test out the advertising + // run_eddystone(); + // Test out the scanning run_search(); }