1
0
forked from me/IronOS

Add TS80 to build.sh

This commit is contained in:
Ben V. Brown
2018-10-11 15:38:25 +11:00
parent b2e52bcb15
commit 2e210da7a6
3 changed files with 45 additions and 11 deletions

View File

@@ -43,3 +43,48 @@ make -j16 lang=TR
rm -rf Objects/src rm -rf Objects/src
make -j16 lang=UA make -j16 lang=UA
rm -rf Objects/src rm -rf Objects/src
make -j16 lang=EN model=TS80
rm -rf Objects/src
make -j16 lang=BG model=TS80
rm -rf Objects/src
make -j16 lang=CS_CZ model=TS80
rm -rf Objects/src
make -j16 lang=DE model=TS80
rm -rf Objects/src
make -j16 lang=DK model=TS80
rm -rf Objects/src
make -j16 lang=ES model=TS80
rm -rf Objects/src
make -j16 lang=FI model=TS80
rm -rf Objects/src
make -j16 lang=FR model=TS80
rm -rf Objects/src
make -j16 lang=HR model=TS80
rm -rf Objects/src
make -j16 lang=HU model=TS80
rm -rf Objects/src
make -j16 lang=IT model=TS80
rm -rf Objects/src
make -j16 lang=LT model=TS80
rm -rf Objects/src
make -j16 lang=NL model=TS80
rm -rf Objects/src
make -j16 lang=NO model=TS80
rm -rf Objects/src
make -j16 lang=PL model=TS80
rm -rf Objects/src
make -j16 lang=PT model=TS80
rm -rf Objects/src
make -j16 lang=RU model=TS80
rm -rf Objects/src
make -j16 lang=SK model=TS80
rm -rf Objects/src
make -j16 lang=SR model=TS80
rm -rf Objects/src
make -j16 lang=SV model=TS80
rm -rf Objects/src
make -j16 lang=TR model=TS80
rm -rf Objects/src
make -j16 lang=UA model=TS80
rm -rf Objects/src

View File

@@ -31,11 +31,9 @@ void FRToSI2C::Mem_Read(uint16_t DevAddress, uint16_t MemAddress,
if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) { if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) {
if (HAL_I2C_Mem_Read(i2c, DevAddress, MemAddress, MemAddSize, pData, Size, if (HAL_I2C_Mem_Read(i2c, DevAddress, MemAddress, MemAddSize, pData, Size,
5000) != HAL_OK) { 5000) != HAL_OK) {
NVIC_SystemReset();
} }
xSemaphoreGive(I2CSemaphore); xSemaphoreGive(I2CSemaphore);
} else { } else {
NVIC_SystemReset();
} }
} }
} }
@@ -61,12 +59,10 @@ void FRToSI2C::Mem_Write(uint16_t DevAddress, uint16_t MemAddress,
if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) { if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) {
if (HAL_I2C_Mem_Write(i2c, DevAddress, MemAddress, MemAddSize, pData, if (HAL_I2C_Mem_Write(i2c, DevAddress, MemAddress, MemAddSize, pData,
Size, 5000) != HAL_OK) { Size, 5000) != HAL_OK) {
NVIC_SystemReset();
} }
xSemaphoreGive(I2CSemaphore); xSemaphoreGive(I2CSemaphore);
} else { } else {
NVIC_SystemReset();
} }
} }
} }
@@ -81,11 +77,9 @@ void FRToSI2C::Transmit(uint16_t DevAddress, uint8_t* pData, uint16_t Size) {
// Wait up to 1 second for the mutex // Wait up to 1 second for the mutex
if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) { if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) {
if (HAL_I2C_Master_Transmit_DMA(i2c, DevAddress, pData, Size) != HAL_OK) { if (HAL_I2C_Master_Transmit_DMA(i2c, DevAddress, pData, Size) != HAL_OK) {
NVIC_SystemReset();
} }
// xSemaphoreGive(I2CSemaphore); // xSemaphoreGive(I2CSemaphore);
} else { } else {
NVIC_SystemReset();
} }
} }
} }

View File

@@ -12,27 +12,22 @@ extern TIM_HandleTypeDef htim1; //used for the systick
/******************************************************************************/ /******************************************************************************/
void NMI_Handler(void) { void NMI_Handler(void) {
NVIC_SystemReset();
} }
//We have the assembly for a breakpoint trigger here to halt the system when a debugger is connected //We have the assembly for a breakpoint trigger here to halt the system when a debugger is connected
// Hardfault handler, often a screwup in the code // Hardfault handler, often a screwup in the code
void HardFault_Handler(void) { void HardFault_Handler(void) {
NVIC_SystemReset();
} }
// Memory management unit had an error // Memory management unit had an error
void MemManage_Handler(void) { void MemManage_Handler(void) {
NVIC_SystemReset();
} }
// Prefetcher or busfault occured // Prefetcher or busfault occured
void BusFault_Handler(void) { void BusFault_Handler(void) {
NVIC_SystemReset();
} }
void UsageFault_Handler(void) { void UsageFault_Handler(void) {
NVIC_SystemReset();
} }
void DebugMon_Handler(void) { void DebugMon_Handler(void) {