diff options
| author | Aditya Naik | 2020-04-07 07:16:14 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-04-07 07:16:14 -0400 |
| commit | 5b1730a67ac3712a0d36b22ec00bb336dbfde347 (patch) | |
| tree | c5e2e39e5c00e882ba436bb08854efbe6dedc88d /Src/main-hs.c | |
| parent | 1a0a307dd7ee985a0a2577b1bc9a93c262eb075a (diff) | |
RTOS prep changes
Diffstat (limited to 'Src/main-hs.c')
| -rw-r--r-- | Src/main-hs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Src/main-hs.c b/Src/main-hs.c index 626cb5c..f109cf1 100644 --- a/Src/main-hs.c +++ b/Src/main-hs.c @@ -48,7 +48,7 @@ #define SET_BIT_FROM_IDX(a, b) a[b>>5]|=(1<<(b%32)) #define COUNTOF(__BUFFER__) (sizeof(__BUFFER__) / sizeof(*(__BUFFER__))) -#define I2C_ADDRESS 0x30F +#define I2C_ADDRESS 0x05 #define BUS_DEVICE_LIMIT 128 /* Macro to toggle between master and slave firmware */ @@ -126,7 +126,8 @@ int main(void) #endif /* MASTER */ #endif /* TESTING_ENABLE */ - handshake(I2C_ADDRESS); + for (int i=0; i < 0x10; i++) + handshake(i); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ @@ -313,7 +314,6 @@ int handshake(uint32_t i2c_addr) m2s_MDR_res_CTS MDR_CTS; s2m_MDR_response MDR_res_message; - #if defined(TESTING_ENABLE) || defined(DEBUG_ENABLE) uint8_t debug_buf[128]; #endif @@ -594,7 +594,6 @@ __DEBUG_BLOCK_END: __asm__("nop"); #endif - Error_Handler(); return 1; } |
