1 /*""FILE COMMENT""******************************************************* 2 * System Name : BSC API for RX62N 3 * File Name : r_pdl_bsc_RX62Nxx.h 4 * Version : 1.02 5 * Contents : BSC API header 6 * Customer : 7 * Model : 8 * Order : 9 * CPU : RX 10 * Compiler : RXC 11 * OS : Nothing 12 * Programmer : 13 * Note : 14 ************************************************************************ 15 * Copyright, 2011. Renesas Electronics Corporation 16 * and Renesas Solutions Corporation 17 ************************************************************************ 18 * History : 2011.04.08 19 * : Ver 1.02 20 * : CS-5 release. 21 *""FILE COMMENT END""**************************************************/ 22 23 #ifndef R_PDL_BSC_RX62Nxx_H 24 #define R_PDL_BSC_RX62Nxx_H 25 26 #define BSC_AREAS 8 27 28 /* Callback function storage */ 29 extern VoidCallBackFunc rpdl_BSC_callback_func; 30 31 /* Library prototypes */ 32 bool R_BSC_CreateAll( 33 const uint32_t, 34 const uint32_t, 35 const uint8_t, 36 VoidCallBackFunc const, 37 const uint8_t 38 ); 39 bool R_BSC_CreateAreaAll( 40 const uint8_t, 41 const uint16_t, 42 const uint8_t, 43 const uint8_t, 44 const uint8_t, 45 const uint8_t, 46 const uint8_t, 47 const uint8_t, 48 const uint8_t, 49 const uint8_t, 50 const uint8_t, 51 const uint8_t, 52 const uint8_t, 53 const uint8_t, 54 const uint8_t 55 ); 56 bool R_BSC_SDRAM_CreateAreaAll( 57 const uint16_t, 58 const uint16_t, 59 const uint8_t, 60 const uint8_t, 61 const uint8_t, 62 const uint8_t, 63 const uint8_t, 64 const uint8_t, 65 const uint8_t, 66 const uint8_t, 67 const uint8_t, 68 const uint16_t 69 ); 70 bool R_BSC_DestroyAll( 71 const uint8_t 72 ); 73 bool R_BSC_ControlAll( 74 const uint16_t 75 ); 76 bool R_BSC_GetStatusAll( 77 volatile uint8_t * const, 78 volatile uint16_t * const, 79 volatile uint8_t * const 80 ); 81 bool ReturnFalse(void); 82 83 /* Macro definitions */ 84 85 #define R_BSC_Create(a, b, c, d, e) \ 86 ( \ 87 ( (e) <= IPL_MAX ) ? \ 88 R_BSC_CreateAll( (a), (b), (c), (d), (e) ) : \ 89 ReturnFalse() \ 90 ) 91 92 #define R_BSC_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) \ 93 ( \ 94 ( (a) < BSC_AREAS ) ? \ 95 R_BSC_CreateAreaAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l), (m), (n), (o) ) : \ 96 ReturnFalse() \ 97 ) 98 99 #if defined (DEVICE_PACKAGE_LQFP_100) || defined (DEVICE_PACKAGE_TFLGA_85) 100 #define R_BSC_SDRAM_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l) \ 101 ( \ 102 ReturnFalse() \ 103 ) 104 #else 105 #define R_BSC_SDRAM_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l) \ 106 ( \ 107 R_BSC_SDRAM_CreateAreaAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l) ) \ 108 ) 109 #endif 110 111 #define R_BSC_Destroy(a) \ 112 ( \ 113 ( (a) < BSC_AREAS ) ? \ 114 R_BSC_DestroyAll( (a) ) : \ 115 ReturnFalse() \ 116 ) 117 118 #define R_BSC_Control(a) \ 119 ( \ 120 R_BSC_ControlAll( (a) ) \ 121 ) 122 123 #define R_BSC_GetStatus(a, b, c) \ 124 ( \ 125 R_BSC_GetStatusAll( (a), (b), (c) ) \ 126 ) 127 128 #endif 129 /* End of file */ 130