TMPM4G9  V1.0.0.0
main.h File Reference

ISP_BOOT Sample Application. More...

#include "stdio.h"
#include "system_TMPM4Gx.h"
#include "TMPM4Gx.h"
#include "txz_uart.h"
#include "txz_t32a.h"
#include "com_control.h"
#include "Flash_Erase.h"
#include "Flash_Write.h"

Go to the source code of this file.

Macros

#define MAIN_NULL   ((void *)0)
 
#define CGOSCCR_IHOSC1EN_MASK   ((uint32_t)0x00000001)
 
#define CGOSCCR_IHOSC1EN_RW_ENABLE   ((uint32_t)0x00000001)
 

Functions

void StartCom (void)
 
void SendData (uint8_t *pData, uint32_t nLen)
 
uint32_t RecvData (uint8_t *pData, uint32_t nLen)
 
uint8_t Flash_Erase (void)
 Flash Erase Main Function. More...
 
uint8_t Flash_Write (void)
 Flash Write Main Function. More...
 
void BOOT_boot (void)
 
void SendACK (void)
 Send 'ACK' to HOST. More...
 
void SendNAK (void)
 Send 'NAK' to HOST. More...
 

Variables

uint8_t Recvbuf [1+1+1+128+2]
 
uint8_t Sendbuf
 

Detailed Description

ISP_BOOT Sample Application.

Version
V1.1.0.0 $Date:: 2018-11-29

DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LISENCE AGREEMENT.

Copyright(C) Toshiba Electronic Device Solutions Corporation 2019

Macro Definition Documentation

§ CGOSCCR_IHOSC1EN_MASK

#define CGOSCCR_IHOSC1EN_MASK   ((uint32_t)0x00000001)

IHOSC1EN :Mask

§ CGOSCCR_IHOSC1EN_RW_ENABLE

#define CGOSCCR_IHOSC1EN_RW_ENABLE   ((uint32_t)0x00000001)

IHOSC1EN :[R/W] :Enable

§ MAIN_NULL

#define MAIN_NULL   ((void *)0)

NULL.

Function Documentation

§ BOOT_boot()

void BOOT_boot ( void  )

§ Flash_Erase()

uint8_t Flash_Erase ( void  )

Flash Erase Main Function.

Parameters
-
Return values
-
Note
-

§ Flash_Write()

uint8_t Flash_Write ( void  )

Flash Write Main Function.

Parameters
-
Return values
-
Note
-

§ RecvData()

uint32_t RecvData ( uint8_t *  pData,
uint32_t  nLen 
)

§ SendACK()

void SendACK ( void  )

Send 'ACK' to HOST.

Parameters
-
Return values
-
Note
-

§ SendData()

void SendData ( uint8_t *  pData,
uint32_t  nLen 
)

§ SendNAK()

void SendNAK ( void  )

Send 'NAK' to HOST.

Parameters
-
Return values
-
Note
-

§ StartCom()

void StartCom ( void  )

Variable Documentation

§ Recvbuf

uint8_t Recvbuf[1+1+1+128+2]

§ Sendbuf

uint8_t Sendbuf