mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Add TS80 to build.sh
This commit is contained in:
@@ -43,3 +43,48 @@ make -j16 lang=TR
|
||||
rm -rf Objects/src
|
||||
make -j16 lang=UA
|
||||
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
|
||||
|
||||
@@ -31,11 +31,9 @@ void FRToSI2C::Mem_Read(uint16_t DevAddress, uint16_t MemAddress,
|
||||
if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) {
|
||||
if (HAL_I2C_Mem_Read(i2c, DevAddress, MemAddress, MemAddSize, pData, Size,
|
||||
5000) != HAL_OK) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
xSemaphoreGive(I2CSemaphore);
|
||||
} 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 (HAL_I2C_Mem_Write(i2c, DevAddress, MemAddress, MemAddSize, pData,
|
||||
Size, 5000) != HAL_OK) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
xSemaphoreGive(I2CSemaphore);
|
||||
|
||||
} 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
|
||||
if (xSemaphoreTake(I2CSemaphore, (TickType_t)5000) == pdTRUE) {
|
||||
if (HAL_I2C_Master_Transmit_DMA(i2c, DevAddress, pData, Size) != HAL_OK) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
// xSemaphoreGive(I2CSemaphore);
|
||||
} else {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,27 +12,22 @@ extern TIM_HandleTypeDef htim1; //used for the systick
|
||||
/******************************************************************************/
|
||||
|
||||
void NMI_Handler(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
//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
|
||||
void HardFault_Handler(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
// Memory management unit had an error
|
||||
void MemManage_Handler(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
// Prefetcher or busfault occured
|
||||
void BusFault_Handler(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
void UsageFault_Handler(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
void DebugMon_Handler(void) {
|
||||
|
||||
Reference in New Issue
Block a user